kcms/decoration: Connect model signals for theme property
The theme property depends on the contents of the model, so signal a change if the model has items added/removed or got reset. BUG: 470778
This commit is contained in:
parent
559d55f64f
commit
8d571b0d1d
1 changed files with 4 additions and 0 deletions
|
@ -52,6 +52,10 @@ KCMKWinDecoration::KCMKWinDecoration(QObject *parent, const KPluginMetaData &met
|
||||||
m_proxyThemesModel->setSortCaseSensitivity(Qt::CaseInsensitive);
|
m_proxyThemesModel->setSortCaseSensitivity(Qt::CaseInsensitive);
|
||||||
m_proxyThemesModel->sort(0);
|
m_proxyThemesModel->sort(0);
|
||||||
|
|
||||||
|
connect(m_proxyThemesModel, &QSortFilterProxyModel::rowsInserted, this, &KCMKWinDecoration::themeChanged);
|
||||||
|
connect(m_proxyThemesModel, &QSortFilterProxyModel::rowsRemoved, this, &KCMKWinDecoration::themeChanged);
|
||||||
|
connect(m_proxyThemesModel, &QSortFilterProxyModel::modelReset, this, &KCMKWinDecoration::themeChanged);
|
||||||
|
|
||||||
connect(m_data->settings(), &KWinDecorationSettings::themeChanged, this, &KCMKWinDecoration::themeChanged);
|
connect(m_data->settings(), &KWinDecorationSettings::themeChanged, this, &KCMKWinDecoration::themeChanged);
|
||||||
connect(m_data->settings(), &KWinDecorationSettings::borderSizeChanged, this, &KCMKWinDecoration::borderSizeChanged);
|
connect(m_data->settings(), &KWinDecorationSettings::borderSizeChanged, this, &KCMKWinDecoration::borderSizeChanged);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue