summaryrefslogtreecommitdiffstats
path: root/ksirc/charSelector.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /ksirc/charSelector.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksirc/charSelector.cpp')
-rw-r--r--ksirc/charSelector.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/ksirc/charSelector.cpp b/ksirc/charSelector.cpp
index 6cfe09a4..8ad8526f 100644
--- a/ksirc/charSelector.cpp
+++ b/ksirc/charSelector.cpp
@@ -3,32 +3,32 @@
#include "charSelector.h"
#include "charSelector.moc"
-#include <qlayout.h>
-#include <qpushbutton.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
#include <klocale.h>
-charSelector::charSelector(QWidget *parent, const char* name)
+charSelector::charSelector(TQWidget *parent, const char* name)
: KDialog(parent, name, false)
{
- testLayout = new QVBoxLayout(this);
+ testLayout = new TQVBoxLayout(this);
testLayout->setSpacing( spacingHint() );
testLayout->setMargin( marginHint() );
- charSelect = new KCharSelect(this, QCString(name) + "_kcharselector", "", 0);
+ charSelect = new KCharSelect(this, TQCString(name) + "_kcharselector", "", 0);
testLayout->addWidget(charSelect);
charSelect->installEventFilter(this);
- connect(charSelect, SIGNAL(doubleClicked()), SLOT(insertText()));
+ connect(charSelect, TQT_SIGNAL(doubleClicked()), TQT_SLOT(insertText()));
- QHBoxLayout *buttonLayout = new QHBoxLayout;
+ TQHBoxLayout *buttonLayout = new QHBoxLayout;
buttonLayout->setSpacing( spacingHint() );
- insertButton = new QPushButton(i18n("&Insert Char"), this);
- connect(insertButton, SIGNAL(clicked()), SLOT(insertText()));
+ insertButton = new TQPushButton(i18n("&Insert Char"), this);
+ connect(insertButton, TQT_SIGNAL(clicked()), TQT_SLOT(insertText()));
buttonLayout->addWidget(insertButton);
- QSpacerItem *spacer = new QSpacerItem(50, 20, QSizePolicy::Expanding, QSizePolicy::Expanding);
+ TQSpacerItem *spacer = new TQSpacerItem(50, 20, TQSizePolicy::Expanding, TQSizePolicy::Expanding);
buttonLayout->addItem(spacer);
testLayout->addLayout(buttonLayout);
@@ -45,7 +45,7 @@ void charSelector::insertText()
emit clicked();
}
-void charSelector::setFont( const QString &font )
+void charSelector::setFont( const TQString &font )
{
charSelect->setFont(font);
}
@@ -56,16 +56,16 @@ void charSelector::reject()
close();
}
-void charSelector::keyPressEvent(QKeyEvent *e)
+void charSelector::keyPressEvent(TQKeyEvent *e)
{
KDialog::keyPressEvent(e);
}
-bool charSelector::eventFilter ( QObject *, QEvent * e )
+bool charSelector::eventFilter ( TQObject *, TQEvent * e )
{
- if ( e->type() == QEvent::AccelOverride ) {
+ if ( e->type() == TQEvent::AccelOverride ) {
// special processing for key press
- QKeyEvent *k = (QKeyEvent *)e;
+ TQKeyEvent *k = (TQKeyEvent *)e;
if(k->key() == Key_Escape){
keyPressEvent(k);
return TRUE; // eat event