summaryrefslogtreecommitdiffstats
path: root/kmail/headerlistquicksearch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/headerlistquicksearch.cpp')
-rw-r--r--kmail/headerlistquicksearch.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kmail/headerlistquicksearch.cpp b/kmail/headerlistquicksearch.cpp
index 4d5669a1a..5fe00e022 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