author | eilers <eilers> | 2003-03-27 11:56:44 (UTC) |
---|---|---|
committer | eilers <eilers> | 2003-03-27 11:56:44 (UTC) |
commit | ff43585778968407bb08473e45ddd1d942f8d8c8 (patch) (side-by-side diff) | |
tree | 7f9b364543337ee14c93175b7a0d02d9a61d8608 /core/pim/addressbook/abconfig.cpp | |
parent | 7a7370388ef30efd303c3ffb4f84b8e8f6830db9 (diff) | |
download | opie-ff43585778968407bb08473e45ddd1d942f8d8c8.zip opie-ff43585778968407bb08473e45ddd1d942f8d8c8.tar.gz opie-ff43585778968407bb08473e45ddd1d942f8d8c8.tar.bz2 |
Bugfix: If menu-button is pressed, the mainmenu will now open as expected
To have the same look and feel as the other pim applications,
the moveable toolbar is disabled. This behaviour is changeable in the configuration.
Diffstat (limited to 'core/pim/addressbook/abconfig.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/addressbook/abconfig.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/core/pim/addressbook/abconfig.cpp b/core/pim/addressbook/abconfig.cpp index e58fa76..0b61614 100644 --- a/core/pim/addressbook/abconfig.cpp +++ b/core/pim/addressbook/abconfig.cpp @@ -13,2 +13,3 @@ AbConfig::AbConfig( ): m_barPos( QMainWindow::Top ), + m_fixedBars( true ), m_changed( false ) @@ -56,2 +57,6 @@ QMainWindow::ToolBarDock AbConfig::getToolBarPos() const +bool AbConfig::fixedBars() const +{ + return m_fixedBars; +} @@ -100,2 +105,8 @@ void AbConfig::setToolBarDock( const QMainWindow::ToolBarDock v ) +void AbConfig::setFixedBars( const bool fixed ) +{ + m_fixedBars = fixed; + m_changed = true; +} + void AbConfig::load() @@ -135,2 +146,3 @@ void AbConfig::load() m_barPos = cfg.readNumEntry( "Position", QMainWindow::Top ); + m_fixedBars= cfg.readBoolEntry( "fixedBars", true ); @@ -162,2 +174,3 @@ void AbConfig::save() cfg.writeEntry( "Position", m_barPos ); + cfg.writeEntry( "fixedBars", m_fixedBars ); @@ -182,2 +195,3 @@ void AbConfig::operator= ( const AbConfig& cnf ) m_barPos = cnf.m_barPos; + m_fixedBars = cnf.m_fixedBars; } |