mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
parent
a8cdc20dd3
commit
55fb5532ee
2 changed files with 2 additions and 5 deletions
|
@ -30,16 +30,14 @@ CommunitiesList::CommunitiesList(QWidget *parent)
|
||||||
scrollArea_->setWidgetResizable(true);
|
scrollArea_->setWidgetResizable(true);
|
||||||
scrollArea_->setAlignment(Qt::AlignLeading | Qt::AlignTop | Qt::AlignVCenter);
|
scrollArea_->setAlignment(Qt::AlignLeading | Qt::AlignTop | Qt::AlignVCenter);
|
||||||
|
|
||||||
scrollAreaContents_ = new QWidget();
|
contentsLayout_ = new QVBoxLayout();
|
||||||
|
|
||||||
contentsLayout_ = new QVBoxLayout(scrollAreaContents_);
|
|
||||||
contentsLayout_->setSpacing(0);
|
contentsLayout_->setSpacing(0);
|
||||||
contentsLayout_->setMargin(0);
|
contentsLayout_->setMargin(0);
|
||||||
|
|
||||||
addGlobalItem();
|
addGlobalItem();
|
||||||
contentsLayout_->addStretch(1);
|
contentsLayout_->addStretch(1);
|
||||||
|
|
||||||
scrollArea_->setWidget(scrollAreaContents_);
|
scrollArea_->setLayout(contentsLayout_);
|
||||||
topLayout_->addWidget(scrollArea_);
|
topLayout_->addWidget(scrollArea_);
|
||||||
|
|
||||||
connect(
|
connect(
|
||||||
|
|
|
@ -53,7 +53,6 @@ private:
|
||||||
|
|
||||||
QVBoxLayout *topLayout_;
|
QVBoxLayout *topLayout_;
|
||||||
QVBoxLayout *contentsLayout_;
|
QVBoxLayout *contentsLayout_;
|
||||||
QWidget *scrollAreaContents_;
|
|
||||||
QScrollArea *scrollArea_;
|
QScrollArea *scrollArea_;
|
||||||
|
|
||||||
std::map<QString, QSharedPointer<CommunitiesListItem>> communities_;
|
std::map<QString, QSharedPointer<CommunitiesListItem>> communities_;
|
||||||
|
|
Loading…
Reference in a new issue