diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:50:21 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:50:21 -0600 |
commit | 3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12 (patch) | |
tree | 89de88213bd261e4ccaade899ab2d6ec34b3a5a7 /kmail/headerlistquicksearch.cpp | |
parent | 1dad5f662a09dfc5cc041caffe0f674044a4dcec (diff) | |
download | tdepim-3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.tar.gz tdepim-3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kmail/headerlistquicksearch.cpp')
-rw-r--r-- | kmail/headerlistquicksearch.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kmail/headerlistquicksearch.cpp b/kmail/headerlistquicksearch.cpp index 4d5669a1..5fe00e02 100644 --- a/kmail/headerlistquicksearch.cpp +++ b/kmail/headerlistquicksearch.cpp @@ -51,7 +51,7 @@ HeaderListQuickSearch::HeaderListQuickSearch( TQWidget *parent, KListView *listView, KActionCollection *actionCollection, const char *name ) - : KListViewSearchLine(parent, listView, name), mStatusCombo(0), mtqStatus(0), statusList() + : KListViewSearchLine(parent, listView, name), mStatusCombo(0), mStatus(0), statusList() { KAction *resetQuickSearch = new KAction( i18n( "Reset Quick Search" ), TQApplication::reverseLayout() @@ -72,16 +72,16 @@ HeaderListQuickSearch::HeaderListQuickSearch( TQWidget *parent, mStatusCombo->setSizeLimit( 12 ); mStatusCombo->insertItem( SmallIcon( "run" ), i18n("Any Status") ); - insertqStatus( StatusUnread ); - insertqStatus( StatusNew ); - insertqStatus( StatusImportant ); - insertqStatus( StatusReplied ); - insertqStatus( StatusForwarded ); - insertqStatus( StatusToDo ); - insertqStatus( StatusHasAttachment ); - insertqStatus( StatusInvitation ); - insertqStatus( StatusWatched ); - insertqStatus( StatusIgnored ); + inserStatus( StatusUnread ); + inserStatus( StatusNew ); + inserStatus( StatusImportant ); + inserStatus( StatusReplied ); + inserStatus( StatusForwarded ); + inserStatus( StatusToDo ); + inserStatus( StatusHasAttachment ); + inserStatus( StatusInvitation ); + inserStatus( StatusWatched ); + inserStatus( StatusIgnored ); mStatusCombo->setCurrentItem( 0 ); mStatusCombo->installEventFilter( this ); connect( mStatusCombo, TQT_SIGNAL ( activated( int ) ), @@ -145,10 +145,10 @@ bool HeaderListQuickSearch::eventFilter( TQObject *watched, TQEvent *event ) bool HeaderListQuickSearch::itemMatches(const TQListViewItem *item, const TQString &s) const { mCurrentSearchTerm = s; // bit of a hack, but works - if ( mtqStatus != 0 ) { + if ( mStatus != 0 ) { KMHeaders *headers = static_cast<KMHeaders*>( item->listView() ); const KMMsgBase *msg = headers->getMsgBaseForItem( item ); - if ( !msg || ! ( msg->status() & mtqStatus ) ) + if ( !msg || ! ( msg->status() & mStatus ) ) return false; } @@ -176,13 +176,13 @@ void HeaderListQuickSearch::reset() void HeaderListQuickSearch::sloStatusChanged( int index ) { if ( index == 0 ) - mtqStatus = 0; + mStatus = 0; else - mtqStatus = KMSearchRuletqStatus::statusFromEnglishName( statusList[index - 1] ); + mStatus = KMSearchRuleStatus::statusFromEnglishName( statusList[index - 1] ); updateSearch(); } -void HeaderListQuickSearch::insertqStatus(KMail::StatusValueTypes which) +void HeaderListQuickSearch::inserStatus(KMail::StatusValueTypes which) { mStatusCombo->insertItem( SmallIcon( KMail::StatusValues[which].icon ), i18n( KMail::StatusValues[ which ].text ) ); @@ -196,9 +196,9 @@ TQString HeaderListQuickSearch::currentSearchTerm() const } -int HeaderListQuickSearch::currentqStatus() const +int HeaderListQuickSearch::currenStatus() const { - return mtqStatus; + return mStatus; } } // namespace KMail |