From 38dca4b75c471ddf950e2f9f03801c550d7d26fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 26 Mar 2016 12:35:35 +0100 Subject: Initial TQt conversion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- part/kxeprocinstrdialog.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'part/kxeprocinstrdialog.cpp') 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 -#include -#include -#include +#include +#include +#include +#include #include #include #include #include -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); -- cgit v1.2.1