author | mickeyl <mickeyl> | 2003-01-24 08:19:32 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-01-24 08:19:32 (UTC) |
commit | 26c23e7fe51181d552bd81877feb8fa1b5ced0e3 (patch) (unidiff) | |
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 @@ | |||
2 | #include "klocale.h" | 2 | #include "klocale.h" |
3 | 3 | ||
4 | #include <qmessagebox.h> | 4 | #include <qmessagebox.h> |
5 | 5 | ||
6 | void KMessageBox::sorry( QWidget *parent, | 6 | void KMessageBox::sorry( QWidget *parent, |
7 | const QString &text, | 7 | const QString &text, |
8 | const QString &caption, bool ) | 8 | const QString &caption, bool ) |
9 | { | 9 | { |
10 | QString cap = caption; | 10 | QString cap = caption; |
11 | 11 | ||
12 | if (cap.isEmpty()) { | 12 | if (cap.isEmpty()) { |
13 | cap = i18n("Sorry"); | 13 | cap = i18n("Sorry"); |
14 | } | 14 | } |
15 | 15 | ||
16 | QMessageBox::warning( parent, cap, text ); | 16 | QMessageBox::warning( parent, cap, text ); |
17 | } | 17 | } |
18 | 18 | ||
19 | int KMessageBox::warningYesNoCancel(QWidget *parent, const QString &text) | 19 | int KMessageBox::warningYesNoCancel(QWidget *parent, const QString &text) |
20 | { | 20 | { |
21 | int result = QMessageBox::warning(parent,i18n("Warning"),text,QMessageBox::Yes, | 21 | int result = QMessageBox::warning(parent,i18n("Warning"),text,QMessageBox::Yes, |
22 | QMessageBox::No, QMessageBox::Cancel); | 22 | QMessageBox::No, QMessageBox::Cancel); |
23 | switch (result) { | 23 | switch (result) { |
24 | case QMessageBox::Yes: return Yes; | 24 | case QMessageBox::Yes: return Yes; |
25 | case QMessageBox::No: return No; | 25 | case QMessageBox::No: return No; |
26 | case QMessageBox::Cancel: return Cancel; | 26 | case QMessageBox::Cancel: return Cancel; |
27 | } | 27 | } |
28 | } | 28 | } |
29 | 29 | ||
30 | int KMessageBox::questionYesNo(QWidget *parent, | 30 | int KMessageBox::questionYesNo(QWidget *parent, |
31 | const QString &text, | 31 | const QString &text, |
32 | const QString &textYes, | 32 | const QString &textYes, |
33 | const QString &textNo, | 33 | const QString &textNo, |
34 | bool notify=true ) | 34 | bool notify ) |
35 | { | 35 | { |
36 | int result =QMessageBox::warning(parent,i18n("Question"),text,textYes,textNo); | 36 | int result =QMessageBox::warning(parent,i18n("Question"),text,textYes,textNo); |
37 | if ( result == 0 ) return KMessageBox::Yes; | 37 | if ( result == 0 ) return KMessageBox::Yes; |
38 | return KMessageBox::No; | 38 | return KMessageBox::No; |
39 | } | 39 | } |
40 | 40 | ||
41 | 41 | ||
42 | 42 | ||
43 | 43 | ||
44 | int KMessageBox::warningContinueCancel( QWidget *parent, | 44 | int KMessageBox::warningContinueCancel( QWidget *parent, |
45 | const QString &text, | 45 | const QString &text, |
46 | const QString &caption, | 46 | const QString &caption, |
47 | const QString &buttonContinue, | 47 | const QString &buttonContinue, |
48 | const QString &dontAskAgainName, | 48 | const QString &dontAskAgainName, |
49 | bool notify ) | 49 | bool notify ) |
50 | { | 50 | { |
51 | QString cap = caption; | 51 | QString cap = caption; |
52 | 52 | ||
53 | if (cap.isEmpty()) { | 53 | if (cap.isEmpty()) { |
54 | cap = i18n("Warning"); | 54 | cap = i18n("Warning"); |
55 | } | 55 | } |
56 | 56 | ||
57 | int result = QMessageBox::warning( parent, cap, text, i18n("Ok"), | 57 | int result = QMessageBox::warning( parent, cap, text, i18n("Ok"), |
58 | i18n("Cancel") ); | 58 | i18n("Cancel") ); |
59 | 59 | ||
60 | if ( result == 0 ) return KMessageBox::Continue; | 60 | if ( result == 0 ) return KMessageBox::Continue; |
61 | return KMessageBox::Cancel; | 61 | return KMessageBox::Cancel; |
62 | } | 62 | } |
63 | 63 | ||
64 | void KMessageBox::error( QWidget *parent, | 64 | void KMessageBox::error( QWidget *parent, |
65 | const QString &text, | 65 | const QString &text, |
66 | const QString &caption, bool notify ) | 66 | const QString &caption, bool notify ) |