summaryrefslogtreecommitdiffstats
path: root/kdeui/krestrictedline.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdeui/krestrictedline.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeui/krestrictedline.cpp')
-rw-r--r--kdeui/krestrictedline.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kdeui/krestrictedline.cpp b/kdeui/krestrictedline.cpp
index 1847017d5..85c52d54c 100644
--- a/kdeui/krestrictedline.cpp
+++ b/kdeui/krestrictedline.cpp
@@ -21,13 +21,13 @@
*
*/
-#include <qkeycode.h>
+#include <tqkeycode.h>
#include "krestrictedline.h"
-KRestrictedLine::KRestrictedLine( QWidget *parent,
+KRestrictedLine::KRestrictedLine( TQWidget *parent,
const char *name,
- const QString& valid )
+ const TQString& valid )
: KLineEdit( parent, name )
{
qsValidChars = valid;
@@ -39,13 +39,13 @@ KRestrictedLine::~KRestrictedLine()
}
-void KRestrictedLine::keyPressEvent( QKeyEvent *e )
+void KRestrictedLine::keyPressEvent( TQKeyEvent *e )
{
- // let QLineEdit process "special" keys and return/enter
+ // let TQLineEdit process "special" keys and return/enter
// so that we still can use the default key binding
if (e->key() == Key_Enter || e->key() == Key_Return || e->key() == Key_Delete || e->ascii() < 32)
{
- QLineEdit::keyPressEvent(e);
+ TQLineEdit::keyPressEvent(e);
return;
}
@@ -58,19 +58,19 @@ void KRestrictedLine::keyPressEvent( QKeyEvent *e )
return;
}
else
- // valid char: let QLineEdit process this key as usual
- QLineEdit::keyPressEvent(e);
+ // valid char: let TQLineEdit process this key as usual
+ TQLineEdit::keyPressEvent(e);
return;
}
-void KRestrictedLine::setValidChars( const QString& valid)
+void KRestrictedLine::setValidChars( const TQString& valid)
{
qsValidChars = valid;
}
-QString KRestrictedLine::validChars() const
+TQString KRestrictedLine::validChars() const
{
return qsValidChars;
}