Diffstat (limited to 'korganizer/kolocationbox.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/kolocationbox.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/korganizer/kolocationbox.cpp b/korganizer/kolocationbox.cpp index 35a8123..9d5aafc 100644 --- a/korganizer/kolocationbox.cpp +++ b/korganizer/kolocationbox.cpp @@ -29,17 +29,17 @@ #include <qlineedit.h> #include <qapplication.h> KOLocationBox::KOLocationBox( bool rw , QWidget *parent , int _maxItems) : QComboBox( rw , parent ) { maxItems = _maxItems; - maxItems = 50; // sorry - hack from me to set maxitems globally to 30 + //maxItems = 50; // sorry - hack from me to set maxitems globally to 30 setInsertionPolicy(AtTop); setDuplicatesEnabled( FALSE ); setMaxCount( maxItems ); setAutoCompletion( TRUE ); } KOLocationBox::~KOLocationBox() @@ -56,16 +56,19 @@ void KOLocationBox::load(int what) // insertStringList( KOPrefs::instance()->mLocationUserDefaults, 0 ); break; // don't disable case SUMMARYEVENT: insertStringList( KOPrefs::instance()->mEventSummaryUser, 0 ); break; // don't disable case SUMMARYTODO: insertStringList( KOPrefs::instance()->mTodoSummaryUser, 0 ); break; // don't disable + case SUMMARYJOURNAL: + insertStringList( KOPrefs::instance()->mJournalSummaryUser, 0 ); + break; // don't disable } } void KOLocationBox::save(int what) { strlist.clear(); for( int l = 0; l < count() ; l++ ) { strlist << text( l ); @@ -81,16 +84,19 @@ void KOLocationBox::save(int what) // KOPrefs::instance()->mLocationUserDefaults = strlist; break; // don't disable case SUMMARYEVENT: KOPrefs::instance()->mEventSummaryUser = strlist; break; // don't disable case SUMMARYTODO: KOPrefs::instance()->mTodoSummaryUser = strlist; break; // don't disable + case SUMMARYJOURNAL: + KOPrefs::instance()->mJournalSummaryUser = strlist; + break; // don't disable } } void KOLocationBox::clearItems(int what) { clear(); save(what); } |