Merge branch 'master' of git://anongit.kde.org/kdelibs
This commit is contained in:
commit
aeb6408fad
@ -1857,7 +1857,6 @@ void Applet::showConfigurationInterface()
|
|||||||
d->script->showConfigurationInterface();
|
d->script->showConfigurationInterface();
|
||||||
} else {
|
} else {
|
||||||
KConfigDialog *dialog = d->generateGenericConfigDialog();
|
KConfigDialog *dialog = d->generateGenericConfigDialog();
|
||||||
//createConfigurationInterface(dialog);
|
|
||||||
d->addStandardConfigurationPages(dialog);
|
d->addStandardConfigurationPages(dialog);
|
||||||
showConfigurationInterface(dialog);
|
showConfigurationInterface(dialog);
|
||||||
}
|
}
|
||||||
@ -1922,8 +1921,6 @@ KConfigDialog *AppletPrivate::generateGenericConfigDialog()
|
|||||||
dialog->setWindowTitle(configWindowTitle());
|
dialog->setWindowTitle(configWindowTitle());
|
||||||
dialog->setAttribute(Qt::WA_DeleteOnClose, true);
|
dialog->setAttribute(Qt::WA_DeleteOnClose, true);
|
||||||
q->createConfigurationInterface(dialog);
|
q->createConfigurationInterface(dialog);
|
||||||
//TODO: Apply button does not correctly work for now, so do not show it
|
|
||||||
dialog->showButton(KDialog::Apply, false);
|
|
||||||
dialog->showButton(KDialog::Default, false);
|
dialog->showButton(KDialog::Default, false);
|
||||||
QObject::connect(dialog, SIGNAL(applyClicked()), q, SLOT(configDialogFinished()));
|
QObject::connect(dialog, SIGNAL(applyClicked()), q, SLOT(configDialogFinished()));
|
||||||
QObject::connect(dialog, SIGNAL(okClicked()), q, SLOT(configDialogFinished()));
|
QObject::connect(dialog, SIGNAL(okClicked()), q, SLOT(configDialogFinished()));
|
||||||
@ -1956,8 +1953,6 @@ void AppletPrivate::addGlobalShortcutsPage(KConfigDialog *dialog)
|
|||||||
layout->addStretch();
|
layout->addStretch();
|
||||||
dialog->addPage(page, i18n("Keyboard Shortcut"), "preferences-desktop-keyboard");
|
dialog->addPage(page, i18n("Keyboard Shortcut"), "preferences-desktop-keyboard");
|
||||||
|
|
||||||
//TODO: Apply button does not correctly work for now, so do not show it
|
|
||||||
dialog->showButton(KDialog::Apply, false);
|
|
||||||
QObject::connect(dialog, SIGNAL(applyClicked()), q, SLOT(configDialogFinished()), Qt::UniqueConnection);
|
QObject::connect(dialog, SIGNAL(applyClicked()), q, SLOT(configDialogFinished()), Qt::UniqueConnection);
|
||||||
QObject::connect(dialog, SIGNAL(okClicked()), q, SLOT(configDialogFinished()), Qt::UniqueConnection);
|
QObject::connect(dialog, SIGNAL(okClicked()), q, SLOT(configDialogFinished()), Qt::UniqueConnection);
|
||||||
}
|
}
|
||||||
@ -2041,6 +2036,9 @@ void AppletPrivate::configDialogFinished()
|
|||||||
if (!configLoader) {
|
if (!configLoader) {
|
||||||
// the config loader will trigger this for us, so we don't need to.
|
// the config loader will trigger this for us, so we don't need to.
|
||||||
q->configChanged();
|
q->configChanged();
|
||||||
|
if (KConfigDialog *dialog = qobject_cast<KConfigDialog *>(q->sender())) {
|
||||||
|
dialog->enableButton(KDialog::Apply, false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user