Move the "important" entry to the top of the combobox of stati in both

the quicksearch as well as the search/filter dialog. It's used often, I
guess, so it should be easily accessible.

svn path=/trunk/kdepim/; revision=324832
wilder-work
Till Adam 22 years ago
parent d89a781151
commit 952f6c7072
  1. 4
      kmsearchpattern.cpp
  2. 2
      kmsearchpattern.h

@ -583,6 +583,8 @@ KMMsgStatus KMSearchRuleStatus::statusFromEnglishName(
const QString & aStatusString )
{
KMMsgStatus status = 0;
if ( ! aStatusString.compare("important") )
status = KMMsgStatusFlag;
if ( ! aStatusString.compare("new") )
status = KMMsgStatusNew;
if ( ! aStatusString.compare("unread") )
@ -601,8 +603,6 @@ KMMsgStatus KMSearchRuleStatus::statusFromEnglishName(
status = KMMsgStatusQueued;
if ( ! aStatusString.compare("sent") )
status = KMMsgStatusSent;
if ( ! aStatusString.compare("important") )
status = KMMsgStatusFlag;
if ( ! aStatusString.compare("watched") )
status = KMMsgStatusWatched;
if ( ! aStatusString.compare("ignored") )

@ -214,6 +214,7 @@ public:
namespace KMail {
// The below are used in several places and here so they are accessible.
static const char * const StatusValues[] = {
I18N_NOOP( "important" ),
I18N_NOOP( "new" ),
I18N_NOOP( "unread" ),
I18N_NOOP( "read" ),
@ -223,7 +224,6 @@ namespace KMail {
I18N_NOOP( "forwarded" ),
I18N_NOOP( "queued" ),
I18N_NOOP( "sent" ),
I18N_NOOP( "important" ),
I18N_NOOP( "watched" ),
I18N_NOOP( "ignored" ),
I18N_NOOP( "spam" ),

Loading…
Cancel
Save