Implemented stub for expand/collape all.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Mon, 12 Dec 2011 22:51:40 +0000 (22:51 +0000)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Mon, 12 Dec 2011 22:51:40 +0000 (22:51 +0000)
src/gui/mainwindow.cpp
src/gui/mainwindow.h
src/gui/mainwindow.ui

index c6505ad490c484b81a9208daf206256f5e1bf2ab..ce40dfaed17d7363b242e85aeb3e082e4a1e7d98 100644 (file)
@@ -166,6 +166,16 @@ void MainWindow::on_searchAction_triggered() {
 }
 
 
+void MainWindow::on_expandAllAction_triggered() {
+
+}
+
+
+void MainWindow::on_collapseAllAction_triggered() {
+
+}
+
+
 void MainWindow::onEventChanged(int aEventId, bool favouriteChanged) {
     dayTabContainer->redisplayEvent(aEventId);
     if (favouriteChanged) favsTabContainer->redisplayDate(dayNavigator->curDate());
index 42dfbb764d19d897d78c73e0b96f4a620a851f0d..f27b01872857d01e249d777b0678fb29e48a1ecb 100644 (file)
@@ -47,6 +47,8 @@ private slots:
     void on_reloadAction_triggered();
     void on_nowAction_triggered();
     void on_searchAction_triggered();
+    void on_expandAllAction_triggered();
+    void on_collapseAllAction_triggered();
 
     void onEventChanged(int aEventId, bool favouriteChanged);
     void onSearchResultChanged();
index 16e4ebd020d17f84f2c83115b5bd2ff247604fc0..e57763c5752f4ed2c6e805eb6c4d31ef1826fed8 100644 (file)
    <addaction name="reloadAction"/>
    <addaction name="nowAction"/>
    <addaction name="searchAction"/>
+   <addaction name="expandAllAction"/>
+   <addaction name="collapseAllAction"/>
   </widget>
   <action name="conferencesAction">
    <property name="text">
     <string>Ctrl+F</string>
    </property>
   </action>
+  <action name="expandAllAction">
+   <property name="icon">
+    <iconset resource="../icons.qrc">
+     <normaloff>:/icons/add.png</normaloff>:/icons/add.png</iconset>
+   </property>
+   <property name="text">
+    <string>Expand all</string>
+   </property>
+  </action>
+  <action name="collapseAllAction">
+   <property name="icon">
+    <iconset resource="../icons.qrc">
+     <normaloff>:/icons/remove.png</normaloff>:/icons/remove.png</iconset>
+   </property>
+   <property name="text">
+    <string>Collapse all</string>
+   </property>
+  </action>
  </widget>
  <customwidgets>
   <customwidget>