summaryrefslogtreecommitdiffstats
path: root/kmail/headerlistquicksearch.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
commitf4fae92b6768541e2952173c3d4b09040f95bf7e (patch)
treed8c5d93232235cd635f3310b4d95490df181ba2d /kmail/headerlistquicksearch.cpp
parent125c0a08265b75a133644d3b55f47e37c919f45d (diff)
downloadtdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.tar.gz
tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.zip
Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 69ac5b1f7..a2262744f 100644
--- a/kmail/headerlistquicksearch.cpp
+++ b/kmail/headerlistquicksearch.cpp
@@ -72,20 +72,20 @@ HeaderListQuickSearch::HeaderListQuickSearch( TQWidget *parent,
mStatusCombo->setSizeLimit( 12 );
mStatusCombo->insertItem( SmallIcon( "run" ), i18n("Any Status") );
- insertStatus( StatusUnread );
- insertStatus( StatusNew );
- insertStatus( StatusImportant );
- insertStatus( StatusReplied );
- insertStatus( StatusForwarded );
- insertStatus( StatusToDo );
- insertStatus( StatusHasAttachment );
- insertStatus( StatusInvitation );
- insertStatus( StatusWatched );
- insertStatus( 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 ) ),
- this, TQT_SLOT( slotStatusChanged( int ) ) );
+ this, TQT_SLOT( sloStatusChanged( int ) ) );
label->setBuddy( mStatusCombo );
@@ -116,7 +116,7 @@ bool HeaderListQuickSearch::eventFilter( TQObject *watched, TQEvent *event )
KMMainWidget *mainWidget = 0;
// Travel up the parents list until we find the main widget
- for ( TQWidget *curWidget = parentWidget(); curWidget; curWidget = curWidget->parentWidget() ) {
+ for ( TQWidget *curWidget = tqparentWidget(); curWidget; curWidget = curWidget->tqparentWidget() ) {
mainWidget = ::qt_cast<KMMainWidget *>( curWidget );
if ( mainWidget )
break;
@@ -155,10 +155,10 @@ bool HeaderListQuickSearch::itemMatches(const TQListViewItem *item, const TQStri
// The full email address is not visible, but we still want it to be searchable.
// KListViewSearchLine::itemMatches() only searches in visible columns.
const HeaderItem *headerItem = static_cast<const HeaderItem*>( item );
- if ( headerItem->from().lower().contains( s.lower() ) ) {
+ if ( headerItem->from().lower().tqcontains( s.lower() ) ) {
return true;
}
- if ( headerItem->to().lower().contains( s.lower() ) ) {
+ if ( headerItem->to().lower().tqcontains( s.lower() ) ) {
return true;
}
@@ -170,10 +170,10 @@ void HeaderListQuickSearch::reset()
{
clear();
mStatusCombo->setCurrentItem( 0 );
- slotStatusChanged( 0 );
+ sloStatusChanged( 0 );
}
-void HeaderListQuickSearch::slotStatusChanged( int index )
+void HeaderListQuickSearch::sloStatusChanged( int index )
{
if ( index == 0 )
mStatus = 0;
@@ -182,7 +182,7 @@ void HeaderListQuickSearch::slotStatusChanged( int index )
updateSearch();
}
-void HeaderListQuickSearch::insertStatus(KMail::StatusValueTypes which)
+void HeaderListQuickSearch::inserStatus(KMail::StatusValueTypes which)
{
mStatusCombo->insertItem( SmallIcon( KMail::StatusValues[which].icon ),
i18n( KMail::StatusValues[ which ].text ) );
@@ -196,7 +196,7 @@ TQString HeaderListQuickSearch::currentSearchTerm() const
}
-int HeaderListQuickSearch::currentStatus() const
+int HeaderListQuickSearch::currenStatus() const
{
return mStatus;
}