From 47c8a359c5276062c4bc17f0e82410f29081b502 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:48:06 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- ksirc/charSelector.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'ksirc/charSelector.cpp') 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 -#include +#include +#include #include -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 -- cgit v1.2.1