diff options
Diffstat (limited to 'src/translators/xsltexporter.cpp')
-rw-r--r-- | src/translators/xsltexporter.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/translators/xsltexporter.cpp b/src/translators/xsltexporter.cpp index 54ca8aa..09636f2 100644 --- a/src/translators/xsltexporter.cpp +++ b/src/translators/xsltexporter.cpp @@ -19,12 +19,12 @@ #include <klocale.h> #include <kurlrequester.h> -#include <qlabel.h> -#include <qgroupbox.h> -#include <qlayout.h> -#include <qhbox.h> -#include <qdom.h> -#include <qwhatsthis.h> +#include <tqlabel.h> +#include <tqgroupbox.h> +#include <tqlayout.h> +#include <tqhbox.h> +#include <tqdom.h> +#include <tqwhatsthis.h> using Tellico::Export::XSLTExporter; @@ -33,11 +33,11 @@ XSLTExporter::XSLTExporter() : Export::Exporter(), m_URLRequester(0) { } -QString XSLTExporter::formatString() const { +TQString XSLTExporter::formatString() const { return i18n("XSLT"); } -QString XSLTExporter::fileFilter() const { +TQString XSLTExporter::fileFilter() const { return i18n("*|All Files"); } @@ -45,7 +45,7 @@ QString XSLTExporter::fileFilter() const { bool XSLTExporter::exec() { KURL u = m_URLRequester->url(); if(u.isEmpty() || !u.isValid()) { - return QString::null; + return TQString(); } // XSLTHandler handler(FileHandler::readXMLFile(url)); XSLTHandler handler(u); @@ -53,27 +53,27 @@ bool XSLTExporter::exec() { TellicoXMLExporter exporter; exporter.setEntries(entries()); exporter.setOptions(options()); - QDomDocument dom = exporter.exportXML(); + TQDomDocument dom = exporter.exportXML(); return FileHandler::writeTextURL(url(), handler.applyStylesheet(dom.toString()), options() & ExportUTF8, options() & Export::ExportForce); } -QWidget* XSLTExporter::widget(QWidget* parent_, const char* name_/*=0*/) { - if(m_widget && m_widget->parent() == parent_) { +TQWidget* XSLTExporter::widget(TQWidget* tqparent_, const char* name_/*=0*/) { + if(m_widget && TQT_BASE_OBJECT(m_widget->tqparent()) == TQT_BASE_OBJECT(tqparent_)) { return m_widget; } - 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* group = new QGroupBox(1, Qt::Horizontal, i18n("XSLT Options"), m_widget); + TQGroupBox* group = new TQGroupBox(1, Qt::Horizontal, i18n("XSLT Options"), m_widget); l->addWidget(group); - QHBox* box = new QHBox(group); + TQHBox* box = new TQHBox(group); box->setSpacing(4); - (void) new QLabel(i18n("XSLT file:"), box); + (void) new TQLabel(i18n("XSLT file:"), box); m_URLRequester = new KURLRequester(box); - QWhatsThis::add(m_URLRequester, i18n("Choose the XSLT file used to transform the Tellico XML data.")); + TQWhatsThis::add(m_URLRequester, i18n("Choose the XSLT file used to transform the Tellico XML data.")); l->addStretch(1); return m_widget; |