Add label to page selection.

This commit is contained in:
Brübach, Lukas 2025-11-27 10:53:47 +01:00
parent e0f14ed28d
commit c4d1b7064b
2 changed files with 5 additions and 0 deletions

View file

@ -206,6 +206,8 @@ TabArchidekt::TabArchidekt(TabSupervisor *_tabSupervisor) : Tab(_tabSupervisor)
minDeckSizeSpin->setValue(1);
// Page number
pageLabel = new QLabel(navigationContainer);
pageSpin = new QSpinBox(navigationContainer);
pageSpin->setRange(1, 9999);
pageSpin->setValue(1);
@ -264,6 +266,7 @@ TabArchidekt::TabArchidekt(TabSupervisor *_tabSupervisor) : Tab(_tabSupervisor)
navigationLayout->addWidget(minDeckSizeSpin);
// Page number
navigationLayout->addWidget(pageLabel);
navigationLayout->addWidget(pageSpin);
mainLayout->addWidget(navigationContainer);
@ -285,6 +288,7 @@ void TabArchidekt::retranslateUi()
searchPushButton->setText(tr("Search"));
formatLabel->setText(tr("Formats"));
minDeckSizeLabel->setText(tr("Min. # of Cards:"));
pageLabel->setText(tr("Page:"));
}
QString TabArchidekt::buildSearchUrl()

View file

@ -233,6 +233,7 @@ private:
// Pagination
// ---------------------------------------------------------------------
QLabel *pageLabel; ///< Label for current page selection
QSpinBox *pageSpin; ///< Spinner to select the page number for results
// ---------------------------------------------------------------------