author | zautrix <zautrix> | 2005-01-27 17:15:25 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-01-27 17:15:25 (UTC) |
commit | 1c32caad4bf20d169203d05f9dbcac1d90402969 (patch) (side-by-side diff) | |
tree | 8960a18919924f62cc3483e01b686d26bf359d66 /kaddressbook | |
parent | 5daf7a5bcdd729862de5bbe95ab2c88ed6de2b78 (diff) | |
download | kdepimpi-1c32caad4bf20d169203d05f9dbcac1d90402969.zip kdepimpi-1c32caad4bf20d169203d05f9dbcac1d90402969.tar.gz kdepimpi-1c32caad4bf20d169203d05f9dbcac1d90402969.tar.bz2 |
another fix
-rw-r--r-- | kaddressbook/kabcore.cpp | 8 | ||||
-rw-r--r-- | kaddressbook/kabcore.h | 1 |
2 files changed, 7 insertions, 2 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index e34a7d3..e2e3a66 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp @@ -1405,25 +1405,29 @@ void KABCore::undo() // Refresh the view mViewManager->refreshView(); } void KABCore::redo() { RedoStack::instance()->redo(); // Refresh the view mViewManager->refreshView(); } - +void KABCore::setJumpButtonBar( bool visible ) +{ + setJumpButtonBarVisible(visible ); + saveSettings(); +} void KABCore::setJumpButtonBarVisible( bool visible ) { if (mMultipleViewsAtOnce) { if ( visible ) mJumpButtonBar->show(); else mJumpButtonBar->hide(); } else { // show the jumpbar only if "the details are hidden" == "viewmanager are shown" @@ -1995,25 +1999,25 @@ void KABCore::initActions() mActionConfigureToolbars->setEnabled( false ); #endif //KAB_EMBEDDED } else { mActionConfigKAddressbook = KStdAction::preferences( this, SLOT( openConfigDialog() ), actionCollection() ); //US not implemented yet //mActionKeyBindings = KStdAction::keyBindings( this, SLOT( configureKeyBindings() ), actionCollection() ); } mActionJumpBar = new KToggleAction( i18n( "Show Jump Bar" ), 0, 0, actionCollection(), "options_show_jump_bar" ); - connect( mActionJumpBar, SIGNAL( toggled( bool ) ), SLOT( setJumpButtonBarVisible( bool ) ) ); + connect( mActionJumpBar, SIGNAL( toggled( bool ) ), SLOT( setJumpButtonBar( bool ) ) ); mActionDetails = new KToggleAction( i18n( "Show Details" ), "listview", 0, actionCollection(), "options_show_details" ); connect( mActionDetails, SIGNAL( toggled( bool ) ), SLOT( setDetailsVisible( bool ) ) ); mActionBR = new KToggleAction( i18n( "Beam receive enabled" ), "beam", 0, this, SLOT( toggleBeamReceive() ), actionCollection(), "kaddressbook_beam_rec" ); // misc diff --git a/kaddressbook/kabcore.h b/kaddressbook/kabcore.h index 786549a..c185117 100644 --- a/kaddressbook/kabcore.h +++ b/kaddressbook/kabcore.h @@ -357,24 +357,25 @@ class KABCore : public QWidget, public KSyncInterface void setDetailsVisible( bool visible ); void setDetailsToState(); void saveSettings(); private slots: void updateToolBar(); void updateMainWindow(); void receive( const QCString& cmsg, const QByteArray& data ); void toggleBeamReceive( ); void disableBR(bool); void setJumpButtonBarVisible( bool visible ); + void setJumpButtonBar( bool visible ); void setCaptionBack(); void importFromOL(); void extensionModified( const KABC::Addressee::List &list ); void extensionChanged( int id ); void clipboardDataChanged(); void updateActionMenu(); void configureKeyBindings(); void removeVoice(); void setFormattedName(); #ifdef KAB_EMBEDDED void configureResources(); #endif //KAB_EMBEDDED |