Member variable.

This commit is contained in:
Lukas Brübach 2024-12-29 18:06:03 +01:00
parent ae636986ae
commit e2efb6e9a8
2 changed files with 3 additions and 1 deletions

View file

@ -18,7 +18,7 @@ VisualDeckStorageWidget::VisualDeckStorageWidget(QWidget *parent) : QWidget(pare
setLayout(layout);
// ComboBox for sorting options
auto *sortComboBox = new QComboBox(this);
sortComboBox = new QComboBox(this);
sortComboBox->addItem("Sort Alphabetically (Filename)", Alphabetical);
sortComboBox->addItem("Sort by Last Modified", ByLastModified);

View file

@ -8,6 +8,7 @@
#include "../cards/card_size_widget.h"
#include "visual_deck_storage_search_widget.h"
#include <QComboBox>
#include <QFileSystemModel>
class VisualDeckStorageSearchWidget;
@ -41,6 +42,7 @@ private:
QMap<QString, DeckViewCardContainer *> cardContainers;
SortOrder sortOrder; // Current sorting option
QComboBox *sortComboBox;
VisualDeckStorageSearchWidget *searchWidget;
CardSizeWidget *cardSizeWidget;
};