summaryrefslogtreecommitdiffstats
path: root/kalarm/lib/messagebox.h
diff options
context:
space:
mode:
Diffstat (limited to 'kalarm/lib/messagebox.h')
-rw-r--r--kalarm/lib/messagebox.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/kalarm/lib/messagebox.h b/kalarm/lib/messagebox.h
index 32e0d732..6d65b093 100644
--- a/kalarm/lib/messagebox.h
+++ b/kalarm/lib/messagebox.h
@@ -50,13 +50,13 @@ class MessageBox : public KMessageBox
* "don't ask again" name.
* @param dontAskAgainName The identifier controlling whether the message box is suppressed.
*/
- static ButtonCode getContinueDefault(const QString& dontAskAgainName);
+ static ButtonCode getContinueDefault(const TQString& dontAskAgainName);
/** Sets the default button for the Continue/Cancel message box with the specified
* "don't ask again" name.
* @param dontAskAgainName The identifier controlling whether the message box is suppressed.
* @param defaultButton The default button for the message box. Valid values are Continue or Cancel.
*/
- static void setContinueDefault(const QString& dontAskAgainName, ButtonCode defaultButton);
+ static void setContinueDefault(const TQString& dontAskAgainName, ButtonCode defaultButton);
/** Displays a Continue/Cancel message box with the option as to which button is the default.
* @param parent Parent widget
* @param defaultButton The default button for the message box. Valid values are Continue or Cancel.
@@ -66,10 +66,10 @@ class MessageBox : public KMessageBox
* @param dontAskAgainName If specified, the message box will only be suppressed
* if the user chose Continue last time.
*/
- static int warningContinueCancel(QWidget* parent, ButtonCode defaultButton, const QString& text,
- const QString& caption = QString::null,
+ static int warningContinueCancel(TQWidget* parent, ButtonCode defaultButton, const TQString& text,
+ const TQString& caption = TQString::null,
const KGuiItem& buttonContinue = KStdGuiItem::cont(),
- const QString& dontAskAgainName = QString::null);
+ const TQString& dontAskAgainName = TQString::null);
/** Displays a Continue/Cancel message box.
* @param parent Parent widget
* @param text Message string
@@ -81,9 +81,9 @@ class MessageBox : public KMessageBox
* @p dontAskAgainName value. If neither method has been used to set a default button,
* Continue is the default.
*/
- static int warningContinueCancel(QWidget* parent, const QString& text, const QString& caption = QString::null,
+ static int warningContinueCancel(TQWidget* parent, const TQString& text, const TQString& caption = TQString::null,
const KGuiItem& buttonContinue = KStdGuiItem::cont(),
- const QString& dontAskAgainName = QString::null);
+ const TQString& dontAskAgainName = TQString::null);
/** If there is no current setting for whether a non-Yes/No message box should be
* shown, sets it to @p defaultShow.
* If a Continue/Cancel message box has Cancel as the default button, either
@@ -91,20 +91,20 @@ class MessageBox : public KMessageBox
* previously to set this for the specified @p dontShowAgainName value.
* @return true if @p defaultShow was written.
*/
- static bool setDefaultShouldBeShownContinue(const QString& dontShowAgainName, bool defaultShow);
+ static bool setDefaultShouldBeShownContinue(const TQString& dontShowAgainName, bool defaultShow);
/** Returns whether a non-Yes/No message box should be shown.
* If the message box has Cancel as the default button, either setContinueDefault()
* or warningContinueCancel() must have been called previously to set this for the
* specified @p dontShowAgainName value.
* @param dontShowAgainName The identifier controlling whether the message box is suppressed.
*/
- static bool shouldBeShownContinue(const QString& dontShowAgainName);
+ static bool shouldBeShownContinue(const TQString& dontShowAgainName);
/** Stores whether the Yes/No message box should or should not be shown again.
* @param dontShowAgainName The identifier controlling whether the message box is suppressed.
* @param dontShow If true, the message box will be suppressed and will return @p result.
* @param result The button code to return if the message box is suppressed.
*/
- static void saveDontShowAgainYesNo(const QString& dontShowAgainName, bool dontShow = true, ButtonCode result = No);
+ static void saveDontShowAgainYesNo(const TQString& dontShowAgainName, bool dontShow = true, ButtonCode result = No);
/** Stores whether a non-Yes/No message box should or should not be shown again.
* If the message box has Cancel as the default button, either setContinueDefault()
* or warningContinueCancel() must have been called previously to set this for the
@@ -112,14 +112,14 @@ class MessageBox : public KMessageBox
* @param dontShowAgainName The identifier controlling whether the message box is suppressed.
* @param dontShow If true, the message box will be suppressed and will return Continue.
*/
- static void saveDontShowAgainContinue(const QString& dontShowAgainName, bool dontShow = true);
+ static void saveDontShowAgainContinue(const TQString& dontShowAgainName, bool dontShow = true);
/** Sets the KConfig object to be used by the MessageBox class. */
static void setDontShowAskAgainConfig(KConfig* cfg) { mConfig = cfg; }
private:
- static void saveDontShowAgain(const QString& dontShowAgainName, bool yesno, bool dontShow, const char* yesnoResult = 0);
+ static void saveDontShowAgain(const TQString& dontShowAgainName, bool yesno, bool dontShow, const char* yesnoResult = 0);
static KConfig* mConfig;
- static QMap<QString, ButtonCode> mContinueDefaults;
+ static TQMap<TQString, ButtonCode> mContinueDefaults;
};
#endif