mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-13 05:20:00 -08:00
Use shared multi-select Essence dropdown in Visual Database filters
This commit is contained in:
parent
fa86dbc09b
commit
39eb983fe9
1 changed files with 3 additions and 1 deletions
|
|
@ -18,6 +18,7 @@
|
|||
class FilterTreeModel;
|
||||
class QComboBox;
|
||||
class QHBoxLayout;
|
||||
class EssenceFilterPicker;
|
||||
|
||||
class VisualDatabaseDisplayColorFilterCircleWidget : public QWidget
|
||||
{
|
||||
|
|
@ -63,7 +64,7 @@ private slots:
|
|||
void addFilter(QChar color);
|
||||
void removeFilter(QChar color);
|
||||
void updateFilterMode();
|
||||
void setManaSymbolActive(QChar color, bool active);
|
||||
void setEssenceActive(QChar essence, bool active);
|
||||
QList<QChar> getActiveColors();
|
||||
void syncWithFilterModel();
|
||||
|
||||
|
|
@ -71,6 +72,7 @@ private:
|
|||
FilterTreeModel *filterModel;
|
||||
QHBoxLayout *layout;
|
||||
QComboBox *modeComboBox;
|
||||
EssenceFilterPicker *essencePicker = nullptr;
|
||||
FilterMode currentMode = FilterMode::Includes; // Default mode
|
||||
QtUtils::Debouncer syncDebouncer{100};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue