mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 17:44:01 -07:00
Add label to page selection.
This commit is contained in:
parent
e0f14ed28d
commit
c4d1b7064b
2 changed files with 5 additions and 0 deletions
|
|
@ -206,6 +206,8 @@ TabArchidekt::TabArchidekt(TabSupervisor *_tabSupervisor) : Tab(_tabSupervisor)
|
||||||
minDeckSizeSpin->setValue(1);
|
minDeckSizeSpin->setValue(1);
|
||||||
|
|
||||||
// Page number
|
// Page number
|
||||||
|
pageLabel = new QLabel(navigationContainer);
|
||||||
|
|
||||||
pageSpin = new QSpinBox(navigationContainer);
|
pageSpin = new QSpinBox(navigationContainer);
|
||||||
pageSpin->setRange(1, 9999);
|
pageSpin->setRange(1, 9999);
|
||||||
pageSpin->setValue(1);
|
pageSpin->setValue(1);
|
||||||
|
|
@ -264,6 +266,7 @@ TabArchidekt::TabArchidekt(TabSupervisor *_tabSupervisor) : Tab(_tabSupervisor)
|
||||||
navigationLayout->addWidget(minDeckSizeSpin);
|
navigationLayout->addWidget(minDeckSizeSpin);
|
||||||
|
|
||||||
// Page number
|
// Page number
|
||||||
|
navigationLayout->addWidget(pageLabel);
|
||||||
navigationLayout->addWidget(pageSpin);
|
navigationLayout->addWidget(pageSpin);
|
||||||
|
|
||||||
mainLayout->addWidget(navigationContainer);
|
mainLayout->addWidget(navigationContainer);
|
||||||
|
|
@ -285,6 +288,7 @@ void TabArchidekt::retranslateUi()
|
||||||
searchPushButton->setText(tr("Search"));
|
searchPushButton->setText(tr("Search"));
|
||||||
formatLabel->setText(tr("Formats"));
|
formatLabel->setText(tr("Formats"));
|
||||||
minDeckSizeLabel->setText(tr("Min. # of Cards:"));
|
minDeckSizeLabel->setText(tr("Min. # of Cards:"));
|
||||||
|
pageLabel->setText(tr("Page:"));
|
||||||
}
|
}
|
||||||
|
|
||||||
QString TabArchidekt::buildSearchUrl()
|
QString TabArchidekt::buildSearchUrl()
|
||||||
|
|
|
||||||
|
|
@ -233,6 +233,7 @@ private:
|
||||||
// Pagination
|
// Pagination
|
||||||
// ---------------------------------------------------------------------
|
// ---------------------------------------------------------------------
|
||||||
|
|
||||||
|
QLabel *pageLabel; ///< Label for current page selection
|
||||||
QSpinBox *pageSpin; ///< Spinner to select the page number for results
|
QSpinBox *pageSpin; ///< Spinner to select the page number for results
|
||||||
|
|
||||||
// ---------------------------------------------------------------------
|
// ---------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue