diff options
Diffstat (limited to 'part/kxeprocinstrdialog.cpp')
-rw-r--r-- | part/kxeprocinstrdialog.cpp | 30 |
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); |