-rw-r--r-- | libopie2/opiepim/ui/opimmainwindow.cpp | 5 | ||||
-rw-r--r-- | libopie2/opiepim/ui/opimmainwindow.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/libopie2/opiepim/ui/opimmainwindow.cpp b/libopie2/opiepim/ui/opimmainwindow.cpp index cf05329..bdf20a9 100644 --- a/libopie2/opiepim/ui/opimmainwindow.cpp +++ b/libopie2/opiepim/ui/opimmainwindow.cpp @@ -285,24 +285,29 @@ void OPimMainWindow::setItemDuplicateEnabled( bool enable ) { void OPimMainWindow::setItemDeleteEnabled( bool enable ) { m_itemDeleteAction->setEnabled( enable ); } void OPimMainWindow::setItemBeamEnabled( bool enable ) { m_itemBeamAction->setEnabled( enable ); } void OPimMainWindow::setConfigureEnabled( bool enable ) { m_configureAction->setEnabled( enable ); } +void OPimMainWindow::setShowCategories( bool show ) { + show ? m_catSelect->show() + : m_catSelect->hide(); +} + void OPimMainWindow::initBars( const QString &itemName ) { QString itemStr = itemName.lower(); setToolBarsMovable( false ); // Create application menu bar QToolBar *mbHold = new QToolBar( this ); mbHold->setHorizontalStretchable( true ); QMenuBar *menubar = new QMenuBar( mbHold ); menubar->setMargin( 0 ); // Create application menu bar diff --git a/libopie2/opiepim/ui/opimmainwindow.h b/libopie2/opiepim/ui/opimmainwindow.h index 9aa0ded..fa7a730 100644 --- a/libopie2/opiepim/ui/opimmainwindow.h +++ b/libopie2/opiepim/ui/opimmainwindow.h @@ -125,24 +125,25 @@ protected: void insertItemMenuItems( QActionGroup *items ); void insertViewMenuItems( QActionGroup *items ); void setViewCategory( const QString &category ); void reloadCategories(); void setItemNewEnabled( bool enable ); void setItemEditEnabled( bool enable ); void setItemDuplicateEnabled( bool enable ); void setItemDeleteEnabled( bool enable ); void setItemBeamEnabled( bool enable ); void setConfigureEnabled( bool enable ); + void setShowCategories( bool show ); private slots: void appMessage( const QCString&, const QByteArray& ); void setDocument( const QString& ); private: class Private; Private* d; int m_rtti; QCopChannel* m_channel; QString m_service; |