mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-16 06:08:12 -05:00
Add Add support for widget caching to FilterSelectionWidget
This commit is contained in:
@@ -289,6 +289,13 @@ void FilterSelectionWidget::SetFilter(const SourceSelection &source,
|
||||
_currentSelection = filter;
|
||||
}
|
||||
|
||||
void FilterSelectionWidget::showEvent(QShowEvent *event)
|
||||
{
|
||||
FilterComboBox::showEvent(event);
|
||||
const QSignalBlocker b(this);
|
||||
Reset();
|
||||
}
|
||||
|
||||
void FilterSelectionWidget::SourceChanged(const SourceSelection &source)
|
||||
{
|
||||
if (source == _source) {
|
||||
|
||||
@@ -45,6 +45,9 @@ public:
|
||||
bool addVariables = true);
|
||||
void SetFilter(const SourceSelection &, const FilterSelection &);
|
||||
|
||||
protected:
|
||||
void showEvent(QShowEvent *event) override;
|
||||
|
||||
signals:
|
||||
void FilterChanged(const FilterSelection &);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user