Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
visual_deck_storage_sort_widget.h
Go to the documentation of this file.
1
5
6#ifndef VISUAL_DECK_STORAGE_SORT_WIDGET_H
7#define VISUAL_DECK_STORAGE_SORT_WIDGET_H
8
10
11#include <QWidget>
12#include <qtmetamacros.h>
13
15class QComboBox;
16class QHBoxLayout;
17
18class VisualDeckStorageSortWidget : public QWidget
19{
20 Q_OBJECT
21
22public:
24 void retranslateUi();
25
30
31signals:
36
37private slots:
38 void updateSortOrder();
39
40private:
41 QHBoxLayout *layout;
42 QComboBox *sortComboBox;
43};
44
45#endif // VISUAL_DECK_STORAGE_SORT_WIDGET_H
SortOrder
The order in which decks are sorted. Values must match the entries of the sort widget's combo box and...
Definition visual_deck_storage_sort_filter_proxy_model.h:37
void updateSortOrder()
Definition visual_deck_storage_sort_widget.cpp:62
VisualDeckStorageSortFilterProxyModel::SortOrder currentSortOrder() const
The currently selected sort order.
Definition visual_deck_storage_sort_widget.cpp:57
QComboBox * sortComboBox
Definition visual_deck_storage_sort_widget.h:42
void sortOrderChanged()
Emitted when the user picks a different sort order.
void retranslateUi()
Definition visual_deck_storage_sort_widget.cpp:33
QHBoxLayout * layout
Definition visual_deck_storage_sort_widget.h:41
VisualDeckStorageSortWidget(VisualDeckStorageWidget *parent)
Definition visual_deck_storage_sort_widget.cpp:11
Definition visual_deck_storage_widget.h:32
Sorting and filtering proxy on top of VisualDeckStorageModel.