diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
commit | dc6b8e72fed2586239e3514819238c520636c9d9 (patch) | |
tree | 88b200df0a0b7fab9d6f147596173556f1ed9a13 /kxsldbg/kxsldbgpart/xsldbgoutputview.cpp | |
parent | 6927d4436e54551917f600b706a8d6109e49de1c (diff) | |
download | tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kxsldbg/kxsldbgpart/xsldbgoutputview.cpp')
-rw-r--r-- | kxsldbg/kxsldbgpart/xsldbgoutputview.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/kxsldbg/kxsldbgpart/xsldbgoutputview.cpp b/kxsldbg/kxsldbgpart/xsldbgoutputview.cpp index 6284ddec..72e25fb3 100644 --- a/kxsldbg/kxsldbgpart/xsldbgoutputview.cpp +++ b/kxsldbg/kxsldbgpart/xsldbgoutputview.cpp @@ -21,11 +21,11 @@ #include <klocale.h> -#include <qlayout.h> -#include <qmessagebox.h> -#include <qdialog.h> -#include <qpushbutton.h> -#include <qlabel.h> +#include <tqlayout.h> +#include <tqmessagebox.h> +#include <tqdialog.h> +#include <tqpushbutton.h> +#include <tqlabel.h> #if QT_VERSION >= 300 #include "xsldbgmsgdialogimpl.h" @@ -34,9 +34,9 @@ #endif -XsldbgMsgDialogImpl::XsldbgMsgDialogImpl(QWidget *parent, - QMessageBox::Icon icon, - const QString &title, const QString &msg) +XsldbgMsgDialogImpl::XsldbgMsgDialogImpl(TQWidget *parent, + TQMessageBox::Icon icon, + const TQString &title, const TQString &msg) #if QT_VERSION >= 300 : XsldbgMsgDialog(parent, "XsldbgMsgDialogImpl" , TRUE ) #else @@ -45,13 +45,13 @@ XsldbgMsgDialogImpl::XsldbgMsgDialogImpl(QWidget *parent, { setCaption(title); - QMessageBox tmpMsg; + TQMessageBox tmpMsg; tmpMsg.setIcon(icon); msgTextEdit->setText(msg); iconLbl->setPixmap(*tmpMsg.iconPixmap()); } -void XsldbgMsgDialogImpl::append(const QString &text) +void XsldbgMsgDialogImpl::append(const TQString &text) { msgTextEdit->append(text); } @@ -62,12 +62,12 @@ void XsldbgMsgDialogImpl::append(const QString &text) #include "xsldbgoutputview.h" -XsldbgOutputView::XsldbgOutputView(QWidget * parent) - : QTextEdit(parent, "outputview") +XsldbgOutputView::XsldbgOutputView(TQWidget * parent) + : TQTextEdit(parent, "outputview") { - new QBoxLayout(this, QBoxLayout::TopToBottom); - setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred)); - setMinimumSize(QSize(500, 80)); + new TQBoxLayout(this, TQBoxLayout::TopToBottom); + setSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Preferred)); + setMinimumSize(TQSize(500, 80)); setCaption(i18n("xsldbg Output")); setText(i18n("\t\txsldbg output capture ready\n\n")); dlg = 0L; @@ -79,12 +79,12 @@ XsldbgOutputView::XsldbgOutputView(QWidget * parent) #include "xsldbgoutputview2.h" -XsldbgOutputView::XsldbgOutputView(QWidget * parent) - : QTextView(parent, "outputview") +XsldbgOutputView::XsldbgOutputView(TQWidget * parent) + : TQTextView(parent, "outputview") { - new QBoxLayout(this, QBoxLayout::TopToBottom); - setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred)); - setMinimumSize(QSize(500,80)); + new TQBoxLayout(this, TQBoxLayout::TopToBottom); + setSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Preferred)); + setMinimumSize(TQSize(500,80)); setCaption(i18n("xsldbg Output")); setText(i18n("\t\txsldbg output capture ready\n\n")); dlg = 0L; @@ -92,15 +92,15 @@ XsldbgOutputView::XsldbgOutputView(QWidget * parent) } #endif // QT_VERSION -void XsldbgOutputView::slotProcShowMessage(QString msg) +void XsldbgOutputView::slotProcShowMessage(TQString msg) { bool processed = FALSE; // Is this a result of an evaluate command - if ((msg[0] == QChar('=')) && (msg[1] == QChar(' '))){ - int endPosition = msg.find(QChar('\n')); + if ((msg[0] == TQChar('=')) && (msg[1] == TQChar(' '))){ + int endPosition = msg.find(TQChar('\n')); if (endPosition >= 0){ processed = TRUE; - showDialog(QMessageBox::Information, i18n("Result of evaluation"), + showDialog(TQMessageBox::Information, i18n("Result of evaluation"), msg.mid(endPosition + 1)); } }else /* Is there some sort of error message in msg */ @@ -117,7 +117,7 @@ void XsldbgOutputView::slotProcShowMessage(QString msg) (msg.find("Error: No XML data file supplied") == -1) && (msg.find("Load of source deferred") == -1) && (msg.find("Load of data deferred") == -1) ) - showDialog(QMessageBox::Warning, i18n("Request Failed "), + showDialog(TQMessageBox::Warning, i18n("Request Failed "), msg); processed = TRUE; } @@ -133,8 +133,8 @@ void XsldbgOutputView::slotClearView() { } -void XsldbgOutputView::showDialog(QMessageBox::Icon icon, QString title, - QString msg) +void XsldbgOutputView::showDialog(TQMessageBox::Icon icon, TQString title, + TQString msg) { if ( dlg ){ |