summaryrefslogtreecommitdiffstats
path: root/kaddressbook/incsearchwidget.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kaddressbook/incsearchwidget.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kaddressbook/incsearchwidget.cpp')
-rw-r--r--kaddressbook/incsearchwidget.cpp78
1 files changed, 39 insertions, 39 deletions
diff --git a/kaddressbook/incsearchwidget.cpp b/kaddressbook/incsearchwidget.cpp
index e435d100f..479f79c73 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 <qapplication.h>
-#include <qcombobox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qtimer.h>
-#include <qtoolbutton.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
+#include <tqapplication.h>
+#include <tqcombobox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqtimer.h>
+#include <tqtoolbutton.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
#include <kdialog.h>
#include <kiconloader.h>
@@ -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<p>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<p>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();