Port away from overloaded KCModule signal
Test Plan: Compiles Reviewers: #kwin, apol, zzag Reviewed By: #kwin, apol, zzag Subscribers: zzag, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D25666
This commit is contained in:
parent
7f587d1147
commit
f45ad69c78
6 changed files with 7 additions and 7 deletions
|
@ -87,8 +87,8 @@ DesktopGridEffectConfig::DesktopGridEffectConfig(QWidget* parent, const QVariant
|
|||
DesktopGridConfig::instance(KWIN_CONFIG);
|
||||
addConfig(DesktopGridConfig::self(), m_ui);
|
||||
connect(m_ui->kcfg_LayoutMode, qOverload<int>(&KComboBox::currentIndexChanged), this, &DesktopGridEffectConfig::layoutSelectionChanged);
|
||||
connect(m_ui->desktopNameAlignmentCombo, qOverload<int>(&KComboBox::currentIndexChanged), this, qOverload<>(&DesktopGridEffectConfig::changed));
|
||||
connect(m_ui->shortcutEditor, &KShortcutsEditor::keyChange, this, qOverload<>(&DesktopGridEffectConfig::changed));
|
||||
connect(m_ui->desktopNameAlignmentCombo, qOverload<int>(&KComboBox::currentIndexChanged), this, &DesktopGridEffectConfig::markAsChanged);
|
||||
connect(m_ui->shortcutEditor, &KShortcutsEditor::keyChange, this, &DesktopGridEffectConfig::markAsChanged);
|
||||
|
||||
load();
|
||||
layoutSelectionChanged();
|
||||
|
|
|
@ -54,7 +54,7 @@ MouseClickEffectConfig::MouseClickEffectConfig(QWidget* parent, const QVariantLi
|
|||
QVBoxLayout* layout = new QVBoxLayout(this);
|
||||
layout->addWidget(m_ui);
|
||||
|
||||
connect(m_ui->editor, &KShortcutsEditor::keyChange, this, qOverload<>(&MouseClickEffectConfig::changed));
|
||||
connect(m_ui->editor, &KShortcutsEditor::keyChange, this, &MouseClickEffectConfig::markAsChanged);
|
||||
|
||||
// Shortcut config. The shortcut belongs to the component "kwin"!
|
||||
m_actionCollection = new KActionCollection(this, QStringLiteral("kwin"));
|
||||
|
|
|
@ -83,7 +83,7 @@ PresentWindowsEffectConfig::PresentWindowsEffectConfig(QWidget* parent, const QV
|
|||
|
||||
m_ui->shortcutEditor->addCollection(m_actionCollection);
|
||||
|
||||
connect(m_ui->shortcutEditor, &KShortcutsEditor::keyChange, this, qOverload<>(&PresentWindowsEffectConfig::changed));
|
||||
connect(m_ui->shortcutEditor, &KShortcutsEditor::keyChange, this, &PresentWindowsEffectConfig::markAsChanged);
|
||||
|
||||
PresentWindowsConfig::instance(KWIN_CONFIG);
|
||||
addConfig(PresentWindowsConfig::self(), m_ui);
|
||||
|
|
|
@ -57,7 +57,7 @@ ThumbnailAsideEffectConfig::ThumbnailAsideEffectConfig(QWidget* parent, const QV
|
|||
|
||||
layout->addWidget(m_ui);
|
||||
|
||||
connect(m_ui->editor, &KShortcutsEditor::keyChange, this, qOverload<>(&ThumbnailAsideEffectConfig::changed));
|
||||
connect(m_ui->editor, &KShortcutsEditor::keyChange, this, &ThumbnailAsideEffectConfig::markAsChanged);
|
||||
|
||||
ThumbnailAsideConfig::instance(KWIN_CONFIG);
|
||||
addConfig(ThumbnailAsideConfig::self(), this);
|
||||
|
|
|
@ -58,7 +58,7 @@ ZoomEffectConfig::ZoomEffectConfig(QWidget* parent, const QVariantList& args) :
|
|||
|
||||
addConfig(ZoomConfig::self(), m_ui);
|
||||
|
||||
connect(m_ui->editor, &KShortcutsEditor::keyChange, this, qOverload<>(&ZoomEffectConfig::changed));
|
||||
connect(m_ui->editor, &KShortcutsEditor::keyChange, this, &ZoomEffectConfig::markAsChanged);
|
||||
|
||||
// Shortcut config. The shortcut belongs to the component "kwin"!
|
||||
KActionCollection *actionCollection = new KActionCollection(this, QStringLiteral("kwin"));
|
||||
|
|
|
@ -76,7 +76,7 @@ void KWinCompositingSettings::init()
|
|||
using namespace KWin::Compositing;
|
||||
auto currentIndexChangedSignal = static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged);
|
||||
|
||||
connect(m_compositing, &Compositing::changed, this, static_cast<void(KCModule::*)()>(&KWinCompositingSettings::changed));
|
||||
connect(m_compositing, &Compositing::changed, this, &KWinCompositingSettings::markAsChanged);
|
||||
|
||||
// enabled check box
|
||||
m_form.compositingEnabled->setChecked(m_compositing->compositingEnabled());
|
||||
|
|
Loading…
Reference in a new issue