summaryrefslogtreecommitdiffstats
path: root/part/kxespecprocinstrdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'part/kxespecprocinstrdialog.cpp')
-rw-r--r--part/kxespecprocinstrdialog.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/part/kxespecprocinstrdialog.cpp b/part/kxespecprocinstrdialog.cpp
index e2a81b5..299b9e7 100644
--- a/part/kxespecprocinstrdialog.cpp
+++ b/part/kxespecprocinstrdialog.cpp
@@ -21,17 +21,17 @@
#include "kxeconfiguration.h"
#include "kxenewfilesettings.h"
-#include <qstring.h>
-#include <qcombobox.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
-#include <qregexp.h>
-#include <qframe.h>
-#include <qcheckbox.h>
+#include <tqstring.h>
+#include <tqcombobox.h>
+#include <tqlineedit.h>
+#include <tqpushbutton.h>
+#include <tqregexp.h>
+#include <tqframe.h>
+#include <tqcheckbox.h>
#include <kdebug.h>
-KXESpecProcInstrDialog::KXESpecProcInstrDialog(QWidget *parent, const char *name )
+KXESpecProcInstrDialog::KXESpecProcInstrDialog(TQWidget *parent, const char *name )
: KXESpecProcInstrDialogBase(parent,name)
{
m_pComboBoxEncoding->insertStringList( KXMLEditorFactory::configuration()->newfile()->encodings() );
@@ -49,10 +49,10 @@ KXESpecProcInstrDialog::~KXESpecProcInstrDialog()
{
}
-void KXESpecProcInstrDialog::fillDialog( const QString strData )
+void KXESpecProcInstrDialog::fillDialog( const TQString strData )
{
- QString strVersion;
- QString strEncoding;
+ TQString strVersion;
+ TQString strEncoding;
int iStart, iEnd;
@@ -63,9 +63,9 @@ void KXESpecProcInstrDialog::fillDialog( const QString strData )
iStart += 7; // skip version
// search " or ' after encoding
- if((iStart = strData.find(QRegExp("[\"']"), iStart)) > 0)
+ if((iStart = strData.find(TQRegExp("[\"']"), iStart)) > 0)
{
- QChar ch = strData[iStart];
+ TQChar ch = strData[iStart];
iStart++; // skip ch
if((iEnd = strData.find(ch, iStart)) > 0)
strVersion = strData.mid(iStart, iEnd - iStart);
@@ -81,9 +81,9 @@ void KXESpecProcInstrDialog::fillDialog( const QString strData )
iStart += 8; // skip encoding
// search " or ' after encoding
- if((iStart = strData.find(QRegExp("[\"']"), iStart)) > 0)
+ if((iStart = strData.find(TQRegExp("[\"']"), iStart)) > 0)
{
- QChar ch = strData[iStart];
+ TQChar ch = strData[iStart];
iStart++; // skip ch
if((iEnd = strData.find(ch, iStart)) > 0)
strEncoding = strData.mid(iStart, iEnd - iStart);
@@ -117,7 +117,7 @@ void KXESpecProcInstrDialog::slotAccept()
@param version XML file version
@param encoding encoding type for the XML file
*/
-void KXESpecProcInstrDialog::fillDialog(const QString& version, const QString& encoding)
+void KXESpecProcInstrDialog::fillDialog(const TQString& version, const TQString& encoding)
{
m_pLineEditVersion->setText(version);
@@ -128,9 +128,9 @@ void KXESpecProcInstrDialog::fillDialog(const QString& version, const QString& e
/*!
Returns content of the dialog as an string of format: '"version = '...' encoding = '...' ".
*/
-QString KXESpecProcInstrDialog::getData()
+TQString KXESpecProcInstrDialog::getData()
{
- return QString("version = '")+m_pLineEditVersion->text()+
+ return TQString("version = '")+m_pLineEditVersion->text()+
"' encoding = '"+m_pComboBoxEncoding->currentText()+"' ";
}