mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-21 01:42:15 -07:00
Release Date DESC default
This commit is contained in:
parent
89f0d50f20
commit
cbb72d3b6f
1 changed files with 3 additions and 2 deletions
|
|
@ -31,12 +31,13 @@ PrintingSelector::PrintingSelector(QWidget *parent,
|
||||||
|
|
||||||
sortOptionsSelector = new QComboBox(this);
|
sortOptionsSelector = new QComboBox(this);
|
||||||
sortOptionsSelector->addItems(SORT_OPTIONS);
|
sortOptionsSelector->addItems(SORT_OPTIONS);
|
||||||
|
sortOptionsSelector->setCurrentIndex(2);
|
||||||
connect(sortOptionsSelector, &QComboBox::currentTextChanged, this, &PrintingSelector::updateDisplay);
|
connect(sortOptionsSelector, &QComboBox::currentTextChanged, this, &PrintingSelector::updateDisplay);
|
||||||
sortToolBar->addWidget(sortOptionsSelector);
|
sortToolBar->addWidget(sortOptionsSelector);
|
||||||
|
|
||||||
toggleSortOrder = new QPushButton(this);
|
toggleSortOrder = new QPushButton(this);
|
||||||
toggleSortOrder->setText(tr("Ascending"));
|
toggleSortOrder->setText(tr("Descending"));
|
||||||
descendingSort = false;
|
descendingSort = true;
|
||||||
connect(toggleSortOrder, &QPushButton::clicked, this, &PrintingSelector::updateSortOrder);
|
connect(toggleSortOrder, &QPushButton::clicked, this, &PrintingSelector::updateSortOrder);
|
||||||
sortToolBar->addWidget(toggleSortOrder);
|
sortToolBar->addWidget(toggleSortOrder);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue