summaryrefslogtreecommitdiffstats
path: root/kmail/headerlistquicksearch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/headerlistquicksearch.cpp')
-rw-r--r--kmail/headerlistquicksearch.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/kmail/headerlistquicksearch.cpp b/kmail/headerlistquicksearch.cpp
index d735386d1..9f20b7e80 100644
--- a/kmail/headerlistquicksearch.cpp
+++ b/kmail/headerlistquicksearch.cpp
@@ -29,11 +29,11 @@
*/
#include "headerlistquicksearch.h"
-#include <qapplication.h>
-#include <qlabel.h>
-#include <qcombobox.h>
-#include <qvaluevector.h>
-#include <qtimer.h>
+#include <tqapplication.h>
+#include <tqlabel.h>
+#include <tqcombobox.h>
+#include <tqvaluevector.h>
+#include <tqtimer.h>
#include <kaction.h>
#include <kiconloader.h>
@@ -47,18 +47,18 @@
namespace KMail {
-HeaderListQuickSearch::HeaderListQuickSearch( QWidget *parent,
+HeaderListQuickSearch::HeaderListQuickSearch( TQWidget *parent,
KListView *listView,
KActionCollection *actionCollection,
const char *name )
: KListViewSearchLine(parent, listView, name), mStatusCombo(0), mStatus(0), statusList()
{
KAction *resetQuickSearch = new KAction( i18n( "Reset Quick Search" ),
- QApplication::reverseLayout()
+ TQApplication::reverseLayout()
? "clear_left"
: "locationbar_erase",
0, this,
- SLOT( reset() ),
+ TQT_SLOT( reset() ),
actionCollection,
"reset_quicksearch" );
resetQuickSearch->plug( parent );
@@ -66,9 +66,9 @@ HeaderListQuickSearch::HeaderListQuickSearch( QWidget *parent,
"Resets the quick search so that "
"all messages are shown again." ) );
- QLabel *label = new QLabel( i18n("Stat&us:"), parent, "kde toolbar widget" );
+ TQLabel *label = new TQLabel( i18n("Stat&us:"), parent, "kde toolbar widget" );
- mStatusCombo = new QComboBox( parent, "quick search status combo box" );
+ mStatusCombo = new TQComboBox( parent, "quick search status combo box" );
mStatusCombo->insertItem( SmallIcon( "run" ), i18n("Any Status") );
insertStatus( StatusUnread );
@@ -82,24 +82,24 @@ HeaderListQuickSearch::HeaderListQuickSearch( QWidget *parent,
insertStatus( StatusIgnored );
mStatusCombo->setCurrentItem( 0 );
mStatusCombo->installEventFilter( this );
- connect( mStatusCombo, SIGNAL ( activated( int ) ),
- this, SLOT( slotStatusChanged( int ) ) );
+ connect( mStatusCombo, TQT_SIGNAL ( activated( int ) ),
+ this, TQT_SLOT( slotStatusChanged( int ) ) );
label->setBuddy( mStatusCombo );
KToolBarButton * btn = new KToolBarButton( "mail_find", 0, parent,
0, i18n( "Open Full Search" ) );
- connect( btn, SIGNAL( clicked() ), SIGNAL( requestFullSearch() ) );
+ connect( btn, TQT_SIGNAL( clicked() ), TQT_SIGNAL( requestFullSearch() ) );
/* Disable the signal connected by KListViewSearchLine since it will call
* itemAdded during KMHeaders::readSortOrder() which will in turn result
* in getMsgBaseForItem( item ) wanting to access items which are no longer
* there. Rather rely on KMHeaders::msgAdded and its signal. */
- disconnect(listView, SIGNAL(itemAdded(QListViewItem *)),
- this, SLOT(itemAdded(QListViewItem *)));
+ disconnect(listView, TQT_SIGNAL(itemAdded(TQListViewItem *)),
+ this, TQT_SLOT(itemAdded(TQListViewItem *)));
KMHeaders *headers = static_cast<KMHeaders*>( listView );
- connect( headers, SIGNAL( msgAddedToListView( QListViewItem* ) ),
- this, SLOT( itemAdded( QListViewItem* ) ) );
+ connect( headers, TQT_SIGNAL( msgAddedToListView( TQListViewItem* ) ),
+ this, TQT_SLOT( itemAdded( TQListViewItem* ) ) );
}
@@ -108,13 +108,13 @@ HeaderListQuickSearch::~HeaderListQuickSearch()
}
-bool HeaderListQuickSearch::eventFilter( QObject *watched, QEvent *event )
+bool HeaderListQuickSearch::eventFilter( TQObject *watched, TQEvent *event )
{
if ( watched == mStatusCombo ) {
KMMainWidget *mainWidget = 0;
// Travel up the parents list until we find the main widget
- for ( QWidget *curWidget = parentWidget(); curWidget; curWidget = curWidget->parentWidget() ) {
+ for ( TQWidget *curWidget = parentWidget(); curWidget; curWidget = curWidget->parentWidget() ) {
mainWidget = ::qt_cast<KMMainWidget *>( curWidget );
if ( mainWidget )
break;
@@ -122,10 +122,10 @@ bool HeaderListQuickSearch::eventFilter( QObject *watched, QEvent *event )
if ( mainWidget ) {
switch ( event->type() ) {
- case QEvent::FocusIn:
+ case TQEvent::FocusIn:
mainWidget->setAccelsEnabled( false );
break;
- case QEvent::FocusOut:
+ case TQEvent::FocusOut:
mainWidget->setAccelsEnabled( true );
break;
default:
@@ -140,7 +140,7 @@ bool HeaderListQuickSearch::eventFilter( QObject *watched, QEvent *event )
}
-bool HeaderListQuickSearch::itemMatches(const QListViewItem *item, const QString &s) const
+bool HeaderListQuickSearch::itemMatches(const TQListViewItem *item, const TQString &s) const
{
mCurrentSearchTerm = s; // bit of a hack, but works
if ( mStatus != 0 ) {
@@ -177,7 +177,7 @@ void HeaderListQuickSearch::insertStatus(KMail::StatusValueTypes which)
}
-QString HeaderListQuickSearch::currentSearchTerm() const
+TQString HeaderListQuickSearch::currentSearchTerm() const
{
return mCurrentSearchTerm;
}