summaryrefslogtreecommitdiffstats
path: root/part/kxeprocinstrdialog.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2016-03-26 12:35:35 +0100
committerSlávek Banko <[email protected]>2016-03-26 14:10:15 +0100
commit38dca4b75c471ddf950e2f9f03801c550d7d26fd (patch)
treef5923ce5d84971f1f394baf7411146f078c02fab /part/kxeprocinstrdialog.cpp
parente28665ce3b2e9ec6f09b4c021db7443cac3c4128 (diff)
downloadkxmleditor-38dca4b75c471ddf950e2f9f03801c550d7d26fd.tar.gz
kxmleditor-38dca4b75c471ddf950e2f9f03801c550d7d26fd.zip
Initial TQt conversion
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'part/kxeprocinstrdialog.cpp')
-rw-r--r--part/kxeprocinstrdialog.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/part/kxeprocinstrdialog.cpp b/part/kxeprocinstrdialog.cpp
index 00529b8..1210beb 100644
--- a/part/kxeprocinstrdialog.cpp
+++ b/part/kxeprocinstrdialog.cpp
@@ -17,23 +17,23 @@
#include "kxeprocinstrdialog.h"
-#include <qlabel.h>
-#include <qcombobox.h>
-#include <qpushbutton.h>
-#include <qtextedit.h>
+#include <tqlabel.h>
+#include <tqcombobox.h>
+#include <tqpushbutton.h>
+#include <tqtextedit.h>
#include <klineedit.h>
#include <kdebug.h>
#include <klocale.h>
#include <kmessagebox.h>
-KXEProcInstrDialog::KXEProcInstrDialog( QWidget * pParent, const char * pszName, bool fModal, WFlags fl )
+KXEProcInstrDialog::KXEProcInstrDialog( TQWidget * pParent, const char * pszName, bool fModal, WFlags fl )
: KXEProcInstrDialogBase( pParent, pszName, fModal, fl )
{
// signals and slots connections
connect( m_pBtnOK, SIGNAL( clicked() ), this, SLOT( slotAccept() ) );
connect( m_pEditData, SIGNAL(textChanged()), this, SLOT(slotDataChanged()) );
- connect( m_pEditTarget, SIGNAL(textChanged(const QString &)), this, SLOT(slotTargetChanged(const QString &)) );
+ connect( m_pEditTarget, SIGNAL(textChanged(const TQString &)), this, SLOT(slotTargetChanged(const TQString &)) );
}
@@ -101,7 +101,7 @@ int KXEProcInstrDialog::exec()
void KXEProcInstrDialog::slotDataChanged()
{
- QString strMessage = checkData(m_pEditData->text());
+ TQString strMessage = checkData(m_pEditData->text());
if(strMessage.isEmpty())
strMessage = checkTarget(m_pEditTarget->text());
@@ -116,9 +116,9 @@ void KXEProcInstrDialog::slotDataChanged()
m_pBtnOK->setEnabled(true);
}
-void KXEProcInstrDialog::slotTargetChanged(const QString &strNewTarget)
+void KXEProcInstrDialog::slotTargetChanged(const TQString &strNewTarget)
{
- QString strMessage = checkTarget(strNewTarget);
+ TQString strMessage = checkTarget(strNewTarget);
if(strMessage.isEmpty())
strMessage = checkData(m_pEditData->text());
@@ -145,16 +145,16 @@ void KXEProcInstrDialog::slotAccept()
}
// Check, if XML proc. instr. target is OK
-QString KXEProcInstrDialog::checkTarget(const QString strTarget)
+TQString KXEProcInstrDialog::checkTarget(const TQString strTarget)
{
if(strTarget.length() == 0)
return "";
// Forbidden characters
- QString strForbiddenChars("<>");
+ TQString strForbiddenChars("<>");
for(unsigned int i = 0; i < strForbiddenChars.length(); i++)
{
- QChar ch = strForbiddenChars[i];
+ TQChar ch = strForbiddenChars[i];
if(strTarget.find(ch) >= 0)
return i18n("Target cannot contain character: %1 !").arg(ch);
@@ -164,16 +164,16 @@ QString KXEProcInstrDialog::checkTarget(const QString strTarget)
}
// Check, if XML proc. instr. data is OK
-QString KXEProcInstrDialog::checkData(const QString strData)
+TQString KXEProcInstrDialog::checkData(const TQString strData)
{
if(strData.length() == 0)
return "";
// Forbidden characters
- QString strForbiddenChars("<>");
+ TQString strForbiddenChars("<>");
for(unsigned int i = 0; i < strForbiddenChars.length(); i++)
{
- QChar ch = strForbiddenChars[i];
+ TQChar ch = strForbiddenChars[i];
if(strData.find(ch) >= 0)
return i18n("Contents cannot contain character: %1 !").arg(ch);