diff options
Diffstat (limited to 'kexi/core/kexiguimsghandler.cpp')
-rw-r--r-- | kexi/core/kexiguimsghandler.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/kexi/core/kexiguimsghandler.cpp b/kexi/core/kexiguimsghandler.cpp index af5f3a6e..5b8bb8f5 100644 --- a/kexi/core/kexiguimsghandler.cpp +++ b/kexi/core/kexiguimsghandler.cpp @@ -26,8 +26,8 @@ #include <kmessagebox.h> #include <kdialogbase.h> -KexiGUIMessageHandler::KexiGUIMessageHandler(QWidget *parent) -: KexiDB::MessageHandler(parent) +KexiGUIMessageHandler::KexiGUIMessageHandler(TQWidget *tqparent) +: KexiDB::MessageHandler(tqparent) { } @@ -38,66 +38,66 @@ KexiGUIMessageHandler::~KexiGUIMessageHandler() /*virtual*/ void KexiGUIMessageHandler::showErrorMessage(KexiDB::Object *obj, - const QString& msg) + const TQString& msg) { - QString _msg(msg); + TQString _msg(msg); if (!obj) { showErrorMessage(_msg); return; } - QString details; + TQString details; KexiDB::getHTMLErrorMesage(obj, _msg, details); showErrorMessage(_msg, details); } /*virtual*/ void -KexiGUIMessageHandler::showErrorMessage(const QString &title, const QString &details) +KexiGUIMessageHandler::showErrorMessage(const TQString &title, const TQString &details) { showMessage(Error, title, details); } void -KexiGUIMessageHandler::showSorryMessage(const QString &title, const QString &details) +KexiGUIMessageHandler::showSorryMessage(const TQString &title, const TQString &details) { showMessage(Sorry, title, details); } -void KexiGUIMessageHandler::showErrorMessage(const QString &msg, const QString &details, +void KexiGUIMessageHandler::showErrorMessage(const TQString &msg, const TQString &details, KexiDB::Object *obj) { - QString _msg(msg); + TQString _msg(msg); if (!obj) { showErrorMessage(_msg, details); return; } - QString _details(details); + TQString _details(details); KexiDB::getHTMLErrorMesage(obj, _msg, _details); showErrorMessage(_msg, _details); } void -KexiGUIMessageHandler::showErrorMessage(Kexi::ObjectStatus *status) +KexiGUIMessageHandler::showErrorMessage(Kexi::ObjecttqStatus *status) { showErrorMessage("", status); } void -KexiGUIMessageHandler::showErrorMessage(const QString &message, Kexi::ObjectStatus *status) +KexiGUIMessageHandler::showErrorMessage(const TQString &message, Kexi::ObjecttqStatus *status) { if (status && status->error()) { - QString msg(message); + TQString msg(message); if (msg.isEmpty() || msg==status->message) { msg = status->message; status->message = status->description; status->description = ""; } - QString desc; + TQString desc; if (!status->message.isEmpty()) { if (status->description.isEmpty()) { desc = status->message; } else { - msg += (QString("<br><br>") + status->message); + msg += (TQString("<br><br>") + status->message); desc = status->description; } } @@ -106,12 +106,12 @@ KexiGUIMessageHandler::showErrorMessage(const QString &message, Kexi::ObjectStat else { showErrorMessage(message); } - status->clearStatus(); + status->cleartqStatus(); } void KexiGUIMessageHandler::showMessage(MessageType type, - const QString &title, const QString &details, const QString& dontShowAgainName) + const TQString &title, const TQString &details, const TQString& dontShowAgainName) { if (!m_enableMessages) return; @@ -119,7 +119,7 @@ KexiGUIMessageHandler::showMessage(MessageType type, //'wait' cursor is a nonsense now KexiUtils::removeWaitCursor(); - QString msg(title); + TQString msg(title); if (title.isEmpty()) msg = i18n("Unknown error"); msg = "<qt><p>"+msg+"</p>"; @@ -141,8 +141,8 @@ KexiGUIMessageHandler::showMessage(MessageType type, } } -void KexiGUIMessageHandler::showWarningContinueMessage(const QString &title, const QString &details, - const QString& dontShowAgainName) +void KexiGUIMessageHandler::showWarningContinueMessage(const TQString &title, const TQString &details, + const TQString& dontShowAgainName) { if (!KMessageBox::shouldBeShownContinue(dontShowAgainName)) return; @@ -150,27 +150,27 @@ void KexiGUIMessageHandler::showWarningContinueMessage(const QString &title, con i18n("Warning"), KDialogBase::Yes, KDialogBase::Yes, KDialogBase::No, m_messageHandlerParentWidget, "warningContinue", true, true, KStdGuiItem::cont() ); bool checkboxResult = false; - KMessageBox::createKMessageBox(dialog, QMessageBox::Warning, - title + (details.isEmpty() ? QString::null : (QString("\n")+details)), QStringList(), - dontShowAgainName.isEmpty() ? QString::null : i18n("Do not show this message again"), + KMessageBox::createKMessageBox(dialog, TQMessageBox::Warning, + title + (details.isEmpty() ? TQString() : (TQString("\n")+details)), TQStringList(), + dontShowAgainName.isEmpty() ? TQString() : i18n("Do not show this message again"), &checkboxResult, 0); if (checkboxResult) KMessageBox::saveDontShowAgainContinue(dontShowAgainName); } -int KexiGUIMessageHandler::askQuestion( const QString& message, +int KexiGUIMessageHandler::askQuestion( const TQString& message, KMessageBox::DialogType dlgType, KMessageBox::ButtonCode defaultResult, const KGuiItem &buttonYes, const KGuiItem &buttonNo, - const QString &dontShowAskAgainName, + const TQString &dontShowAskAgainName, int options ) { Q_UNUSED(defaultResult); if (KMessageBox::WarningContinueCancel == dlgType) return KMessageBox::warningContinueCancel(m_messageHandlerParentWidget, - message, QString::null, buttonYes, dontShowAskAgainName, options); + message, TQString(), buttonYes, dontShowAskAgainName, options); else return KMessageBox::messageBox(m_messageHandlerParentWidget, - dlgType, message, QString::null, buttonYes, buttonNo, dontShowAskAgainName, options); + dlgType, message, TQString(), buttonYes, buttonNo, dontShowAskAgainName, options); } |