mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
tweaked page button
This commit is contained in:
parent
a3a0ee3923
commit
1a88b079e2
|
@ -64,6 +64,9 @@ EmoticonsWidget::EmoticonsWidget(QWidget *parent) :
|
||||||
page->setLayout(pageLayout);
|
page->setLayout(pageLayout);
|
||||||
stack.addWidget(page);
|
stack.addWidget(page);
|
||||||
|
|
||||||
|
// page buttons are only needed if there is more than 1 page
|
||||||
|
if (pageCount > 1)
|
||||||
|
{
|
||||||
QRadioButton* pageButton = new QRadioButton;
|
QRadioButton* pageButton = new QRadioButton;
|
||||||
pageButton->setProperty("pageIndex", i);
|
pageButton->setProperty("pageIndex", i);
|
||||||
pageButton->setChecked(i == 0);
|
pageButton->setChecked(i == 0);
|
||||||
|
@ -71,6 +74,7 @@ EmoticonsWidget::EmoticonsWidget(QWidget *parent) :
|
||||||
|
|
||||||
connect(pageButton, &QRadioButton::clicked, this, &EmoticonsWidget::onPageButtonClicked);
|
connect(pageButton, &QRadioButton::clicked, this, &EmoticonsWidget::onPageButtonClicked);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
buttonLayout->addStretch();
|
buttonLayout->addStretch();
|
||||||
|
|
||||||
for (const QStringList& set : emoticons)
|
for (const QStringList& set : emoticons)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user