diff options
Diffstat (limited to 'part/kxeattributedialog.cpp')
-rw-r--r-- | part/kxeattributedialog.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/part/kxeattributedialog.cpp b/part/kxeattributedialog.cpp index 93bf9a7..80f66ed 100644 --- a/part/kxeattributedialog.cpp +++ b/part/kxeattributedialog.cpp @@ -21,15 +21,15 @@ #include <kdebug.h> #include <klocale.h> -#include <qpushbutton.h> -#include <qlabel.h> +#include <tqpushbutton.h> +#include <tqlabel.h> -KXEAttributeDialog::KXEAttributeDialog( QWidget * pParent, const char * pszName, bool fModal, WFlags fl ) +KXEAttributeDialog::KXEAttributeDialog( TQWidget * pParent, const char * pszName, bool fModal, WFlags fl ) : KXEAttributeDialogBase( pParent, pszName, fModal, fl ) { - connect( m_pEditNamespace, SIGNAL(textChanged(const QString &)), this, SLOT(slotNamespaceChanged(const QString &)) ); - connect( m_pEditQName, SIGNAL(textChanged(const QString &)), this, SLOT(slotNameChanged(const QString &)) ); - connect( m_pEditValue, SIGNAL(textChanged(const QString &)), this, SLOT(slotValueChanged(const QString &)) ); + connect( m_pEditNamespace, SIGNAL(textChanged(const TQString &)), this, SLOT(slotNamespaceChanged(const TQString &)) ); + connect( m_pEditQName, SIGNAL(textChanged(const TQString &)), this, SLOT(slotNameChanged(const TQString &)) ); + connect( m_pEditValue, SIGNAL(textChanged(const TQString &)), this, SLOT(slotValueChanged(const TQString &)) ); } void KXEAttributeDialog::clearDialog() @@ -59,9 +59,9 @@ int KXEAttributeDialog::exec() return iReturn; } -void KXEAttributeDialog::slotNameChanged(const QString & strNewName) +void KXEAttributeDialog::slotNameChanged(const TQString & strNewName) { - QString strMessage = checkName(strNewName); + TQString strMessage = checkName(strNewName); if(strMessage.isEmpty()) { strMessage = checkNamespace(m_pEditNamespace->text()); @@ -77,9 +77,9 @@ void KXEAttributeDialog::slotNameChanged(const QString & strNewName) m_pBtnOK->setEnabled(true); } -void KXEAttributeDialog::slotValueChanged(const QString & strNewValue) +void KXEAttributeDialog::slotValueChanged(const TQString & strNewValue) { - QString strMessage = checkName(m_pEditQName->text()); + TQString strMessage = checkName(m_pEditQName->text()); if(strMessage.isEmpty()) { strMessage = checkNamespace(m_pEditNamespace->text()); @@ -95,9 +95,9 @@ void KXEAttributeDialog::slotValueChanged(const QString & strNewValue) m_pBtnOK->setEnabled(true); } -void KXEAttributeDialog::slotNamespaceChanged(const QString & strNewNamespace) +void KXEAttributeDialog::slotNamespaceChanged(const TQString & strNewNamespace) { - QString strMessage = checkName(m_pEditQName->text()); + TQString strMessage = checkName(m_pEditQName->text()); if(strMessage.isEmpty()) { strMessage = checkNamespace(strNewNamespace); @@ -114,7 +114,7 @@ void KXEAttributeDialog::slotNamespaceChanged(const QString & strNewNamespace) } // Check, if XML attribute name is OK -QString KXEAttributeDialog::checkNamespace(const QString strAtttributeName) +TQString KXEAttributeDialog::checkNamespace(const TQString strAtttributeName) { if(strAtttributeName.length() == 0) return ""; @@ -124,10 +124,10 @@ QString KXEAttributeDialog::checkNamespace(const QString strAtttributeName) return i18n("Atttribute namespace cannot contain space !"); // Forbidden characters - QString strForbiddenChars("<>\"'"); + TQString strForbiddenChars("<>\"'"); for(unsigned int i = 0; i < strForbiddenChars.length(); i++) { - QChar ch = strForbiddenChars[i]; + TQChar ch = strForbiddenChars[i]; if(strAtttributeName.find(ch) >= 0) return i18n("Atttribute namespace cannot contain character: %1 !").arg(ch); @@ -137,7 +137,7 @@ QString KXEAttributeDialog::checkNamespace(const QString strAtttributeName) } // Check, if XML attribute name is OK -QString KXEAttributeDialog::checkName(const QString strAtttributeName) +TQString KXEAttributeDialog::checkName(const TQString strAtttributeName) { if(strAtttributeName.length() == 0) return ""; @@ -147,10 +147,10 @@ QString KXEAttributeDialog::checkName(const QString strAtttributeName) return i18n("Atttribute name cannot contain space !"); // Forbidden characters - QString strForbiddenChars("&@#$%^()%+?=:<>;\"'*"); + TQString strForbiddenChars("&@#$%^()%+?=:<>;\"'*"); for(unsigned int i = 0; i < strForbiddenChars.length(); i++) { - QChar ch = strForbiddenChars[i]; + TQChar ch = strForbiddenChars[i]; if(strAtttributeName.find(ch) >= 0) return i18n("Atttribute name cannot contain character: %1 !").arg(ch); @@ -160,16 +160,16 @@ QString KXEAttributeDialog::checkName(const QString strAtttributeName) } // Check, if XML attribute value is OK -QString KXEAttributeDialog::checkValue(const QString strData) +TQString KXEAttributeDialog::checkValue(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("Attribute value cannot contain character: %1 !").arg(ch); |