summaryrefslogtreecommitdiffstats
path: root/part/kxeelementdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'part/kxeelementdialog.cpp')
-rw-r--r--part/kxeelementdialog.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/part/kxeelementdialog.cpp b/part/kxeelementdialog.cpp
index e2fc14a..ef807c0 100644
--- a/part/kxeelementdialog.cpp
+++ b/part/kxeelementdialog.cpp
@@ -17,19 +17,19 @@
#include "kxeelementdialog.h"
-#include <qlabel.h>
-#include <qcombobox.h>
-#include <qpushbutton.h>
+#include <tqlabel.h>
+#include <tqcombobox.h>
+#include <tqpushbutton.h>
#include <klineedit.h>
#include <kdebug.h>
#include <klocale.h>
-KXEElementDialog::KXEElementDialog( QWidget * pParent, const char * pszName, bool fModal, WFlags fl )
+KXEElementDialog::KXEElementDialog( TQWidget * pParent, const char * pszName, bool fModal, WFlags fl )
: KXEElementDialogBase( pParent, pszName, fModal, fl )
{
- connect( m_pEditNsURI, SIGNAL(textChanged(const QString&)), this, SLOT(slotNsURIChanged(const QString&)) );
- connect( m_pEditName, SIGNAL(textChanged(const QString&)), this, SLOT(slotNameChanged(const QString&)) );
+ connect( m_pEditNsURI, SIGNAL(textChanged(const TQString&)), this, SLOT(slotNsURIChanged(const TQString&)) );
+ connect( m_pEditName, SIGNAL(textChanged(const TQString&)), this, SLOT(slotNameChanged(const TQString&)) );
}
void KXEElementDialog::clearDialog()
@@ -133,7 +133,7 @@ int KXEElementDialog::exec()
return KXEElementDialogBase::exec();
}
-void KXEElementDialog::slotNsURIChanged( const QString & strNewNsURI )
+void KXEElementDialog::slotNsURIChanged( const TQString & strNewNsURI )
{
if ( strNewNsURI.isEmpty() )
m_pEditPrefix->setEnabled(false);
@@ -141,9 +141,9 @@ void KXEElementDialog::slotNsURIChanged( const QString & strNewNsURI )
m_pEditPrefix->setEnabled(true);
}
-void KXEElementDialog::slotNameChanged( const QString & strNewName )
+void KXEElementDialog::slotNameChanged( const TQString & strNewName )
{
- QString strMessage = checkName(strNewName);
+ TQString strMessage = checkName(strNewName);
m_pTextLabelMessage->setText(strMessage);
@@ -154,7 +154,7 @@ void KXEElementDialog::slotNameChanged( const QString & strNewName )
}
// Check, if XML element name is OK
-QString KXEElementDialog::checkName(const QString strElementName)
+TQString KXEElementDialog::checkName(const TQString strElementName)
{
if(strElementName.length() == 0)
return "";
@@ -168,17 +168,17 @@ QString KXEElementDialog::checkName(const QString strElementName)
return i18n("Element name cannot start with 'xml' or 'XML' !");
// check first character
- QChar firstChar(strElementName[0]);
+ TQChar firstChar(strElementName[0]);
if((firstChar != '_') && !firstChar.isLetter())
{
return i18n("Element name must start with an underscore or a letter !");
}
// Forbidden characters
- QString strForbiddenChars("&@#$%^()%+?=:<>;\"'*");
+ TQString strForbiddenChars("&@#$%^()%+?=:<>;\"'*");
for(unsigned int i = 0; i < strForbiddenChars.length(); i++)
{
- QChar ch = strForbiddenChars[i];
+ TQChar ch = strForbiddenChars[i];
if(strElementName.find(ch) >= 0)
return i18n("Element name cannot contain character: %1 !").arg(ch);