Release Date DESC default

This commit is contained in:
Zach Halpern 2024-11-25 09:25:42 -05:00 committed by ZeldaZach
parent 89f0d50f20
commit cbb72d3b6f
No known key found for this signature in database

View file

@ -31,12 +31,13 @@ PrintingSelector::PrintingSelector(QWidget *parent,
sortOptionsSelector = new QComboBox(this);
sortOptionsSelector->addItems(SORT_OPTIONS);
sortOptionsSelector->setCurrentIndex(2);
connect(sortOptionsSelector, &QComboBox::currentTextChanged, this, &PrintingSelector::updateDisplay);
sortToolBar->addWidget(sortOptionsSelector);
toggleSortOrder = new QPushButton(this);
toggleSortOrder->setText(tr("Ascending"));
descendingSort = false;
toggleSortOrder->setText(tr("Descending"));
descendingSort = true;
connect(toggleSortOrder, &QPushButton::clicked, this, &PrintingSelector::updateSortOrder);
sortToolBar->addWidget(toggleSortOrder);