summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/jabber/libiris/cutestuff/util/showtextdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/jabber/libiris/cutestuff/util/showtextdlg.cpp')
-rw-r--r--kopete/protocols/jabber/libiris/cutestuff/util/showtextdlg.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kopete/protocols/jabber/libiris/cutestuff/util/showtextdlg.cpp b/kopete/protocols/jabber/libiris/cutestuff/util/showtextdlg.cpp
index fa446d58..0c8b46df 100644
--- a/kopete/protocols/jabber/libiris/cutestuff/util/showtextdlg.cpp
+++ b/kopete/protocols/jabber/libiris/cutestuff/util/showtextdlg.cpp
@@ -20,38 +20,38 @@
#include"showtextdlg.h"
-#include<qlayout.h>
-#include<qtextedit.h>
-#include<qpushbutton.h>
-#include<qfile.h>
-#include<qtextstream.h>
+#include<tqlayout.h>
+#include<tqtextedit.h>
+#include<tqpushbutton.h>
+#include<tqfile.h>
+#include<tqtextstream.h>
-ShowTextDlg::ShowTextDlg(const QString &fname, bool rich, QWidget *parent, const char *name)
-:QDialog(parent, name, FALSE, WDestructiveClose)
+ShowTextDlg::ShowTextDlg(const TQString &fname, bool rich, TQWidget *parent, const char *name)
+:TQDialog(parent, name, FALSE, WDestructiveClose)
{
- QString text;
+ TQString text;
- QFile f(fname);
+ TQFile f(fname);
if(f.open(IO_ReadOnly)) {
- QTextStream t(&f);
+ TQTextStream t(&f);
while(!t.eof())
text += t.readLine() + '\n';
f.close();
}
- QVBoxLayout *vb1 = new QVBoxLayout(this, 8);
- QTextEdit *te = new QTextEdit(this);
+ TQVBoxLayout *vb1 = new TQVBoxLayout(this, 8);
+ TQTextEdit *te = new TQTextEdit(this);
te->setReadOnly(TRUE);
- te->setTextFormat(rich ? QTextEdit::RichText : QTextEdit::PlainText);
+ te->setTextFormat(rich ? TQTextEdit::RichText : TQTextEdit::PlainText);
te->setText(text);
vb1->addWidget(te);
- QHBoxLayout *hb1 = new QHBoxLayout(vb1);
+ TQHBoxLayout *hb1 = new TQHBoxLayout(vb1);
hb1->addStretch(1);
- QPushButton *pb = new QPushButton(tr("&OK"), this);
- connect(pb, SIGNAL(clicked()), SLOT(accept()));
+ TQPushButton *pb = new TQPushButton(tr("&OK"), this);
+ connect(pb, TQT_SIGNAL(clicked()), TQT_SLOT(accept()));
hb1->addWidget(pb);
hb1->addStretch(1);