Use the new Singal and Slot syntax, now we are able to check

for errors at the build time.
This commit is contained in:
Antonis Tsiapaliokas 2013-09-10 13:31:13 +03:00 committed by Martin Gräßlin
parent f4e412f244
commit 159bccc2d5

View file

@ -58,7 +58,7 @@ void EffectConfig::openConfig(const QString &effectName)
buttons->setCenterButtons(true); buttons->setCenterButtons(true);
//Here we connect our buttons with the dialog //Here we connect our buttons with the dialog
connect(buttons, SIGNAL(accepted()), &dialog, SLOT(accept())); connect(buttons, SIGNAL(QDialogButtonBox::accepted), &dialog, SLOT(QDialog::accept));
connect(buttons, SIGNAL(rejected()), &dialog, SLOT(reject())); connect(buttons, SIGNAL(rejected()), &dialog, SLOT(reject()));
KService::List offers = KServiceTypeTrader::self()->query("KWin/Effect"); KService::List offers = KServiceTypeTrader::self()->query("KWin/Effect");