Diffstat (limited to 'core/pim/addressbook/abconfig.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/addressbook/abconfig.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/pim/addressbook/abconfig.cpp b/core/pim/addressbook/abconfig.cpp index a3fd222..2583327 100644 --- a/core/pim/addressbook/abconfig.cpp +++ b/core/pim/addressbook/abconfig.cpp @@ -68,2 +68,7 @@ AbConfig::LPSearchMode AbConfig::letterPickerSearch() const +const QString &AbConfig::category() const +{ + return m_category; +} + void AbConfig::setUseRegExp( bool v ) @@ -123,2 +128,7 @@ void AbConfig::setLetterPickerSearch( const AbConfig::LPSearchMode mode ) +void AbConfig::setCategory( const QString &cat ) +{ + m_category = cat; +} + void AbConfig::load() @@ -128,2 +138,5 @@ void AbConfig::load() + cfg.setGroup( "View" ); + m_category = cfg.readEntry( "Category", "All" ); + cfg.setGroup("Font"); @@ -168,2 +181,5 @@ void AbConfig::save() Config cfg("AddressBook"); + cfg.setGroup( "View" ); + cfg.writeEntry( "Category", m_category ); + cfg.setGroup("Font"); |