author | mickeyl <mickeyl> | 2003-01-24 08:19:32 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-01-24 08:19:32 (UTC) |
commit | 26c23e7fe51181d552bd81877feb8fa1b5ced0e3 (patch) (side-by-side diff) | |
tree | 4b00433f1d3e3901d64ed0135b6ed2b31c6ec96a | |
parent | f4dee585d608db812b5973dfc5e631a2ca4fa279 (diff) | |
download | opie-26c23e7fe51181d552bd81877feb8fa1b5ced0e3.zip opie-26c23e7fe51181d552bd81877feb8fa1b5ced0e3.tar.gz opie-26c23e7fe51181d552bd81877feb8fa1b5ced0e3.tar.bz2 |
trivial ISO compliance fix for gcc 3.2
-rw-r--r-- | noncore/apps/tinykate/libkate/microkde/kmessagebox.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/tinykate/libkate/microkde/kmessagebox.cpp b/noncore/apps/tinykate/libkate/microkde/kmessagebox.cpp index fd305cd..94b9b5d 100644 --- a/noncore/apps/tinykate/libkate/microkde/kmessagebox.cpp +++ b/noncore/apps/tinykate/libkate/microkde/kmessagebox.cpp @@ -2,65 +2,65 @@ #include "klocale.h" #include <qmessagebox.h> void KMessageBox::sorry( QWidget *parent, const QString &text, const QString &caption, bool ) { QString cap = caption; if (cap.isEmpty()) { cap = i18n("Sorry"); } QMessageBox::warning( parent, cap, text ); } int KMessageBox::warningYesNoCancel(QWidget *parent, const QString &text) { int result = QMessageBox::warning(parent,i18n("Warning"),text,QMessageBox::Yes, QMessageBox::No, QMessageBox::Cancel); switch (result) { case QMessageBox::Yes: return Yes; case QMessageBox::No: return No; case QMessageBox::Cancel: return Cancel; } } int KMessageBox::questionYesNo(QWidget *parent, const QString &text, const QString &textYes, const QString &textNo, - bool notify=true ) + bool notify ) { int result =QMessageBox::warning(parent,i18n("Question"),text,textYes,textNo); if ( result == 0 ) return KMessageBox::Yes; return KMessageBox::No; } int KMessageBox::warningContinueCancel( QWidget *parent, const QString &text, const QString &caption, const QString &buttonContinue, const QString &dontAskAgainName, bool notify ) { QString cap = caption; if (cap.isEmpty()) { cap = i18n("Warning"); } int result = QMessageBox::warning( parent, cap, text, i18n("Ok"), i18n("Cancel") ); if ( result == 0 ) return KMessageBox::Continue; return KMessageBox::Cancel; } void KMessageBox::error( QWidget *parent, const QString &text, const QString &caption, bool notify ) |