From 2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 2 Jul 2011 06:40:27 +0000 Subject: 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 --- src/translators/xsltimporter.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/translators/xsltimporter.cpp') 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 #include -#include -#include -#include -#include +#include +#include +#include +#include #include @@ -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); -- cgit v1.2.1