implemented NOW tab
[toast/confclerk.git] / src / mvc / treeview.cpp
index 8b3b64715051480ffdc6abf25af641fc79ebdc02..8e32690ef9541ed0be51d504e8f8890cfd6b2b4f 100644 (file)
@@ -132,3 +132,11 @@ void TreeView::handleItemClicked(const QModelIndex &index)
     }
 }
 
+void TreeView::setAllExpanded(bool aExpanded)
+{
+    for(int i=0; i<model()->rowCount(QModelIndex()); i++)
+    {
+        setExpanded(model()->index(i,0,QModelIndex()),aExpanded);
+    }
+}
+