From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kaddressbook/incsearchwidget.cpp | 78 ++++++++++++++++++++-------------------- 1 file changed, 39 insertions(+), 39 deletions(-) (limited to 'kaddressbook/incsearchwidget.cpp') diff --git a/kaddressbook/incsearchwidget.cpp b/kaddressbook/incsearchwidget.cpp index e435d100..479f79c7 100644 --- a/kaddressbook/incsearchwidget.cpp +++ b/kaddressbook/incsearchwidget.cpp @@ -21,14 +21,14 @@ without including the source code for Qt in the source distribution. */ -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include @@ -37,54 +37,54 @@ #include "incsearchwidget.h" -IncSearchWidget::IncSearchWidget( QWidget *parent, const char *name ) - : QWidget( parent, name ) +IncSearchWidget::IncSearchWidget( TQWidget *parent, const char *name ) + : TQWidget( parent, name ) { - QHBoxLayout *layout = new QHBoxLayout( this, 2, KDialog::spacingHint() ); + TQHBoxLayout *layout = new TQHBoxLayout( this, 2, KDialog::spacingHint() ); - QToolButton *button = new QToolButton( this ); - button->setSizePolicy( QSizePolicy::Minimum, QSizePolicy::Minimum ); - button->setPixmap( SmallIcon( QApplication::reverseLayout() ? "clear_left" : "locationbar_erase" ) ); - button->setAccel( QKeySequence( CTRL+ALT+Key_S ) ); + TQToolButton *button = new TQToolButton( this ); + button->setSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum ); + button->setPixmap( SmallIcon( TQApplication::reverseLayout() ? "clear_left" : "locationbar_erase" ) ); + button->setAccel( TQKeySequence( CTRL+ALT+Key_S ) ); button->setAutoRaise( true ); - QToolTip::add( button, i18n( "Reset" ) ); + TQToolTip::add( button, i18n( "Reset" ) ); layout->addWidget( button ); - QLabel *label = new QLabel( i18n( "Search:" ), this, "kde toolbar widget" ); - label->setAlignment( QLabel::AlignVCenter | QLabel::AlignRight ); + TQLabel *label = new TQLabel( i18n( "Search:" ), this, "kde toolbar widget" ); + label->setAlignment( TQLabel::AlignVCenter | TQLabel::AlignRight ); layout->addWidget( label ); mSearchText = new KLineEdit( this ); - mSearchText->setSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::Preferred ); - QWhatsThis::add( mSearchText, i18n( "The incremental search

Enter some text here will start the search for the contact, which matches the search pattern best. The part of the contact, which will be used for matching, depends on the field selection." ) ); + mSearchText->setSizePolicy( TQSizePolicy::MinimumExpanding, TQSizePolicy::Preferred ); + TQWhatsThis::add( mSearchText, i18n( "The incremental search

Enter some text here will start the search for the contact, which matches the search pattern best. The part of the contact, which will be used for matching, depends on the field selection." ) ); label->setBuddy( mSearchText ); layout->addWidget( mSearchText ); - label = new QLabel( i18n( "as in 'Search in:'", "&in:" ), this, "kde toolbar widget" ); - label->setAlignment( QLabel::AlignVCenter | QLabel::AlignRight ); + label = new TQLabel( i18n( "as in 'Search in:'", "&in:" ), this, "kde toolbar widget" ); + label->setAlignment( TQLabel::AlignVCenter | TQLabel::AlignRight ); layout->addWidget( label ); - mFieldCombo = new QComboBox( false, this ); + mFieldCombo = new TQComboBox( false, this ); layout->addWidget( mFieldCombo ); label->setBuddy(mFieldCombo); - QToolTip::add( mFieldCombo, i18n( "Select incremental search field" ) ); - QWhatsThis::add( mFieldCombo, i18n( "Here you can choose the field, which shall be used for incremental search." ) ); + TQToolTip::add( mFieldCombo, i18n( "Select incremental search field" ) ); + TQWhatsThis::add( mFieldCombo, i18n( "Here you can choose the field, which shall be used for incremental search." ) ); - mInputTimer = new QTimer( this ); + mInputTimer = new TQTimer( this ); - connect( mInputTimer, SIGNAL( timeout() ), - SLOT( timeout() ) ); - connect( mSearchText, SIGNAL( textChanged( const QString& ) ), - SLOT( announceDoSearch() ) ); - connect( mSearchText, SIGNAL( returnPressed() ), - SLOT( announceDoSearch() ) ); - connect( mFieldCombo, SIGNAL( activated( const QString& ) ), - SLOT( announceDoSearch() ) ); - connect( button, SIGNAL( clicked() ), - mSearchText, SLOT( clear() ) ); - connect( button, SIGNAL( clicked() ), - SLOT( announceDoSearch() ) ); + connect( mInputTimer, TQT_SIGNAL( timeout() ), + TQT_SLOT( timeout() ) ); + connect( mSearchText, TQT_SIGNAL( textChanged( const TQString& ) ), + TQT_SLOT( announceDoSearch() ) ); + connect( mSearchText, TQT_SIGNAL( returnPressed() ), + TQT_SLOT( announceDoSearch() ) ); + connect( mFieldCombo, TQT_SIGNAL( activated( const TQString& ) ), + TQT_SLOT( announceDoSearch() ) ); + connect( button, TQT_SIGNAL( clicked() ), + mSearchText, TQT_SLOT( clear() ) ); + connect( button, TQT_SIGNAL( clicked() ), + TQT_SLOT( announceDoSearch() ) ); initFields(); @@ -157,7 +157,7 @@ void IncSearchWidget::clear() mSearchText->clear(); } -void IncSearchWidget::keyPressEvent( QKeyEvent *event ) +void IncSearchWidget::keyPressEvent( TQKeyEvent *event ) { if ( event->key() == Qt::Key_Up ) { event->accept(); -- cgit v1.2.3