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,12 +64,16 @@ EmoticonsWidget::EmoticonsWidget(QWidget *parent) :
|
|||
page->setLayout(pageLayout);
|
||||
stack.addWidget(page);
|
||||
|
||||
QRadioButton* pageButton = new QRadioButton;
|
||||
pageButton->setProperty("pageIndex", i);
|
||||
pageButton->setChecked(i == 0);
|
||||
buttonLayout->addWidget(pageButton);
|
||||
// page buttons are only needed if there is more than 1 page
|
||||
if (pageCount > 1)
|
||||
{
|
||||
QRadioButton* pageButton = new QRadioButton;
|
||||
pageButton->setProperty("pageIndex", i);
|
||||
pageButton->setChecked(i == 0);
|
||||
buttonLayout->addWidget(pageButton);
|
||||
|
||||
connect(pageButton, &QRadioButton::clicked, this, &EmoticonsWidget::onPageButtonClicked);
|
||||
connect(pageButton, &QRadioButton::clicked, this, &EmoticonsWidget::onPageButtonClicked);
|
||||
}
|
||||
}
|
||||
buttonLayout->addStretch();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user