|
|
@ -65,6 +65,20 @@ KMessageWidget *GenericDialog::initMessageWidget()
|
|
|
|
return messagewidget;
|
|
|
|
return messagewidget;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void GenericDialog::deleteInlineMessages()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
//QVBoxLayout *vlayout = qobject_cast<QVBoxLayout *>(layout());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (int i=0; i<children().count(); ++i) {
|
|
|
|
|
|
|
|
QObject *child = children()[i];
|
|
|
|
|
|
|
|
KMessageWidget *messagewidget = qobject_cast<KMessageWidget *>(child);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(messagewidget) {
|
|
|
|
|
|
|
|
delete messagewidget;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
KMessageBox::ButtonCode GenericDialog::saveChangesConfirmation(const QString &text)
|
|
|
|
KMessageBox::ButtonCode GenericDialog::saveChangesConfirmation(const QString &text)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
QString dialogtext = text.isEmpty() ? i18n("The settings have changed.<br/>Do you want to apply the changes or discard them?") : text;
|
|
|
|
QString dialogtext = text.isEmpty() ? i18n("The settings have changed.<br/>Do you want to apply the changes or discard them?") : text;
|
|
|
|