From aeda5d05178f635c05ce4556e3a0b7f9be7d6401 Mon Sep 17 00:00:00 2001
From: drw <drw>
Date: Mon, 07 Feb 2005 20:32:21 +0000
Subject: Minor addition

---
(limited to 'libopie2/opiepim/ui')

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
@@ -294,6 +294,11 @@ 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();
 
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
@@ -134,6 +134,7 @@ protected:
     void setItemDeleteEnabled( bool enable );
     void setItemBeamEnabled( bool enable );
     void setConfigureEnabled( bool enable );
+    void setShowCategories( bool show );
 
 private slots:
     void appMessage( const QCString&, const QByteArray& );
--
cgit v0.9.0.2