summaryrefslogtreecommitdiff
path: root/libopie2
Side-by-side diff
Diffstat (limited to 'libopie2') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiepim/ui/opimmainwindow.cpp5
-rw-r--r--libopie2/opiepim/ui/opimmainwindow.h1
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
@@ -296,2 +296,7 @@ void OPimMainWindow::setConfigureEnabled( bool enable ) {
+void OPimMainWindow::setShowCategories( bool show ) {
+ show ? m_catSelect->show()
+ : m_catSelect->hide();
+}
+
void OPimMainWindow::initBars( const QString &itemName ) {
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
@@ -136,2 +136,3 @@ protected:
void setConfigureEnabled( bool enable );
+ void setShowCategories( bool show );