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 c6505ad..ce40dfa 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 42dfbb7..f27b018 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 16e4ebd..e57763c 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>