summaryrefslogtreecommitdiffstats
path: root/src/translators/xsltimporter.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 06:40:27 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 06:40:27 +0000
commit2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 (patch)
tree18a8f0f4ac5a86dacfa74c3537551ec39bc85e75 /src/translators/xsltimporter.cpp
parent1d90725a4001fab9d3922b2cbcceeee5e2d1686f (diff)
downloadtellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.tar.gz
tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.zip
TQt4 port tellico
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1239054 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/translators/xsltimporter.cpp')
-rw-r--r--src/translators/xsltimporter.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/translators/xsltimporter.cpp b/src/translators/xsltimporter.cpp
index 67f1fd2..62f7255 100644
--- a/src/translators/xsltimporter.cpp
+++ b/src/translators/xsltimporter.cpp
@@ -20,10 +20,10 @@
#include <klocale.h>
#include <kurlrequester.h>
-#include <qhbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qgroupbox.h>
+#include <tqhbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqgroupbox.h>
#include <memory>
@@ -39,9 +39,9 @@ static bool isUTF8(const KURL& url_) {
}
ref->open();
- QTextStream stream(ref->file());
- QString line = stream.readLine().lower();
- return line.find(QString::fromLatin1("utf-8")) > 0;
+ TQTextStream stream(ref->file());
+ TQString line = stream.readLine().lower();
+ return line.tqfind(TQString::tqfromLatin1("utf-8")) > 0;
}
}
@@ -77,7 +77,7 @@ Tellico::Data::CollPtr XSLTImporter::collection() {
return 0;
}
// kdDebug() << text() << endl;
- QString str = handler.applyStylesheet(text());
+ TQString str = handler.applyStylesheet(text());
// kdDebug() << str << endl;
Import::TellicoImporter imp(str);
@@ -86,22 +86,22 @@ Tellico::Data::CollPtr XSLTImporter::collection() {
return m_coll;
}
-QWidget* XSLTImporter::widget(QWidget* parent_, const char* name_) {
+TQWidget* XSLTImporter::widget(TQWidget* tqparent_, const char* name_) {
// if the url has already been set, then there's no widget
if(!m_xsltURL.isEmpty()) {
return 0;
}
- m_widget = new QWidget(parent_, name_);
- QVBoxLayout* l = new QVBoxLayout(m_widget);
+ m_widget = new TQWidget(tqparent_, name_);
+ TQVBoxLayout* l = new TQVBoxLayout(m_widget);
- QGroupBox* box = new QGroupBox(1, Qt::Vertical, i18n("XSLT Options"), m_widget);
+ TQGroupBox* box = new TQGroupBox(1, Qt::Vertical, i18n("XSLT Options"), m_widget);
l->addWidget(box);
- (void) new QLabel(i18n("XSLT file:"), box);
+ (void) new TQLabel(i18n("XSLT file:"), box);
m_URLRequester = new KURLRequester(box);
- QString filter = i18n("*.xsl|XSL Files (*.xsl)") + QChar('\n');
+ TQString filter = i18n("*.xsl|XSL Files (*.xsl)") + TQChar('\n');
filter += i18n("*|All Files");
m_URLRequester->setFilter(filter);