summaryrefslogtreecommitdiffstats
path: root/part/kxetexteditordialog.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-03-26 12:35:35 +0100
committerSlávek Banko <slavek.banko@axis.cz>2016-03-26 14:10:15 +0100
commit38dca4b75c471ddf950e2f9f03801c550d7d26fd (patch)
treef5923ce5d84971f1f394baf7411146f078c02fab /part/kxetexteditordialog.cpp
parente28665ce3b2e9ec6f09b4c021db7443cac3c4128 (diff)
downloadkxmleditor-38dca4b75c471ddf950e2f9f03801c550d7d26fd.tar.gz
kxmleditor-38dca4b75c471ddf950e2f9f03801c550d7d26fd.zip
Initial TQt conversion
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'part/kxetexteditordialog.cpp')
-rw-r--r--part/kxetexteditordialog.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/part/kxetexteditordialog.cpp b/part/kxetexteditordialog.cpp
index c7c74fc..6e3fa39 100644
--- a/part/kxetexteditordialog.cpp
+++ b/part/kxetexteditordialog.cpp
@@ -21,15 +21,15 @@
#include "kxeconfiguration.h"
#include "kxetextviewsettings.h"
-#include <qdom.h>
-#include <qpushbutton.h>
+#include <tqdom.h>
+#include <tqpushbutton.h>
#include <kmessagebox.h>
#include <ktextedit.h>
#include <klocale.h>
#include <kdebug.h>
-KXETextEditorDialog::KXETextEditorDialog(QWidget *parent, const char *name)
+KXETextEditorDialog::KXETextEditorDialog(TQWidget *parent, const char *name)
: KXETextEditorDialogBase(parent,name)
{
m_pSyntaxHighlighter = new KXESyntaxHighlighter(m_pTextEditor);
@@ -68,12 +68,12 @@ void KXETextEditorDialog::accept()
bool KXETextEditorDialog::validateXml(bool bInfoIfOK)
{
- QString strXML = "<root>" + editorText() + "</root>";
+ TQString strXML = "<root>" + editorText() + "</root>";
// create XML documemt from text
- QString strErrorMsg;
+ TQString strErrorMsg;
int iErrorLine, iErrorColumn;
- QDomDocument doc;
+ TQDomDocument doc;
if(!doc.setContent(strXML, true, &strErrorMsg, &iErrorLine, &iErrorColumn) )
{ kdDebug() << "KXETextEditorDialog::validateXml: Failed parsing the file." << endl;
@@ -112,8 +112,8 @@ void KXETextEditorDialog::slotTextViewSettingsChanged()
if(KXMLEditorFactory::configuration()->textview()->isWrapOn())
{
- m_pTextEditor->setHScrollBarMode(QScrollView::AlwaysOff);
- m_pTextEditor->setWordWrap(QTextEdit::WidgetWidth);
+ m_pTextEditor->setHScrollBarMode(TQScrollView::AlwaysOff);
+ m_pTextEditor->setWordWrap(TQTextEdit::WidgetWidth);
}
m_pSyntaxHighlighter->rehighlight();