summaryrefslogtreecommitdiffstats
path: root/kxsldbg/kxsldbgpart/xsldbgoutputview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kxsldbg/kxsldbgpart/xsldbgoutputview.cpp')
-rw-r--r--kxsldbg/kxsldbgpart/xsldbgoutputview.cpp54
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 ){