Commit de92f928 authored by David Jarvie's avatar David Jarvie
Browse files

Whitespace adjustments

parent 6a1ea619
......@@ -1336,7 +1336,7 @@ bool EditEmailAlarmDlg::type_validate(bool trial)
}
}
if (trial && MessageBox::warningContinueCancel(this, i18nc("@info", "Do you really want to send the email now to the specified recipient(s)?"),
i18nc("@action:button", "Confirm Email"), KGuiItem(i18nc("@action:button", "Send"))) != KMessageBox::Continue)
i18nc("@action:button", "Confirm Email"), KGuiItem(i18nc("@action:button", "Send"))) != KMessageBox::Continue)
return false;
return true;
}
......
......@@ -1633,13 +1633,13 @@ void outputAlarmWarnings(QWidget* parent, const KAEvent* event)
if (event && event->action() == KAEvent::EMAIL
&& Preferences::emailAddress().isEmpty())
MessageBox::information(parent, i18nc("@info Please set the 'From' email address...",
"<para>%1</para><para>Please set it in the Configuration dialog.</para>", KAMail::i18n_NeedFromEmailAddress()));
"<para>%1</para><para>Please set it in the Configuration dialog.</para>", KAMail::i18n_NeedFromEmailAddress()));
if (!theApp()->alarmsEnabled())
{
if (MessageBox::warningYesNo(parent, i18nc("@info", "<para>Alarms are currently disabled.</para><para>Do you want to enable alarms now?</para>"),
QString(), KGuiItem(i18nc("@action:button", "Enable")), KGuiItem(i18nc("@action:button", "Keep Disabled")),
QLatin1String("EditEnableAlarms"))
QString(), KGuiItem(i18nc("@action:button", "Enable")), KGuiItem(i18nc("@action:button", "Keep Disabled")),
QLatin1String("EditEnableAlarms"))
== KMessageBox::Yes)
theApp()->setAlarmsEnabled(true);
}
......
......@@ -103,37 +103,37 @@ class MessageBox : public KMessageBox
* @param dontShow If true, the message box will be suppressed and will return Continue.
*/
static void saveDontShowAgainContinue(const QString& dontShowAgainName, bool dontShow = true);
/** Same as KMessageBox::detailedError() except that it defaults to window-modal,
* not application-modal. */
static void detailedError(QWidget* parent, const QString& text, const QString& details,
const QString& caption = QString(), Options options = Options(Notify|WindowModal))
{ KMessageBox::detailedError(parent, text, details, caption, options); }
/** Same as KMessageBox::detailedSorry() except that it defaults to window-modal,
* not application-modal. */
static void detailedSorry(QWidget* parent, const QString& text, const QString& details,
const QString& caption = QString(), Options options = Options(Notify|WindowModal))
{ KMessageBox::detailedSorry(parent, text, details, caption, options); }
/** Same as KMessageBox::error() except that it defaults to window-modal,
* not application-modal. */
static void error(QWidget* parent, const QString& text, const QString& caption = QString(),
Options options = Options(Notify|WindowModal))
{ KMessageBox::error(parent, text, caption, options); }
/** Same as KMessageBox::information() except that it defaults to window-modal,
* not application-modal. */
static void information(QWidget* parent, const QString& text, const QString& caption = QString(),
const QString& dontShowAgainName = QString(), Options options = Options(Notify|WindowModal))
{ KMessageBox::information(parent, text, caption, dontShowAgainName, options); }
/** Same as KMessageBox::sorry() except that it defaults to window-modal,
* not application-modal. */
static void sorry(QWidget* parent, const QString& text, const QString& caption = QString(),
Options options = Options(Notify|WindowModal))
{ KMessageBox::sorry(parent, text, caption, options); }
/** Same as KMessageBox::questionYesNo() except that it defaults to window-modal,
* not application-modal. */
static int questionYesNo(QWidget* parent, const QString& text, const QString& caption = QString(),
......@@ -141,7 +141,7 @@ class MessageBox : public KMessageBox
const KGuiItem& buttonNo = KStandardGuiItem::no(),
const QString& dontAskAgainName = QString(), Options options = Options(Notify|WindowModal))
{ return KMessageBox::questionYesNo(parent, text, caption, buttonYes, buttonNo, dontAskAgainName, options); }
/** Same as KMessageBox::questionYesNoCancel() except that it defaults
* to window-modal, not application-modal. */
static int questionYesNoCancel(QWidget* parent, const QString& text, const QString& caption = QString(),
......@@ -150,7 +150,7 @@ class MessageBox : public KMessageBox
const KGuiItem &buttonCancel = KStandardGuiItem::cancel(),
const QString& dontAskAgainName = QString(), Options options = Options(Notify|WindowModal))
{ return KMessageBox::questionYesNoCancel(parent, text, caption, buttonYes, buttonNo, buttonCancel, dontAskAgainName, options); }
/** Same as KMessageBox::warningContinueCancel() except that it defaults to window-modal,
* not application-modal. */
static int warningContinueCancel(QWidget* parent, const QString& text, const QString& caption = QString(),
......@@ -158,7 +158,7 @@ class MessageBox : public KMessageBox
const KGuiItem& buttonCancel = KStandardGuiItem::cancel(),
const QString& dontAskAgainName = QString(), Options options = Options(Notify|WindowModal))
{ return KMessageBox::warningContinueCancel(parent, text, caption, buttonContinue, buttonCancel, dontAskAgainName, options); }
/** Same as KMessageBox::warningYesNo() except that it defaults to window-modal,
* not application-modal. */
static int warningYesNo(QWidget* parent, const QString& text, const QString& caption = QString(),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment