]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/qt-console/batstack.cpp
dhb forgot to remove a couple of debugging printf's
[bacula/bacula] / bacula / src / qt-console / batstack.cpp
index d144ea4b32a557371a69321ba59c989742507ee8..bbf9ad5a85ae61c8a569fa5efb72aa142d5ecaad 100644 (file)
@@ -48,7 +48,6 @@ void BatStack::AddTostack()
 void BatStack::RemoveFromstack()
 {
    /* Change from a stacked widget to a normal window */
-   /* FIXME Will need to make it so that window cannot be closed */
    m_parent->removeWidget(this);
    setWindowFlags(Qt::Window);
    showNormal();
@@ -64,3 +63,33 @@ void BatStack::Togglestack()
       AddTostack();
    }
 }
+
+void BatStack::SetBSTreeWidgetItem(QTreeWidgetItem *treeItem)
+{
+   m_treeItem=treeItem;
+}
+
+bool BatStack::isStacked()
+{
+   return m_stacked;
+}
+
+void BatStack::closeEvent(QCloseEvent* event){
+   /* Avoid a warning */
+   event->type();
+   /* A Widget was closed, lets toggle it back into the window, and set it in front. */
+   AddTostack();
+   /* FIXME Really having problems getting it to the front, toggles back into the stack fine though */
+   /*int stackindex=m_parent->indexOf( this );
+   if( stackindex >= 0 ){
+      show();
+      m_parent->setCurrentIndex(stackindex);
+
+   }*/
+}
+
+void BatStack::PgSeltreeWidgetClicked(){
+}
+
+void BatStack::PgSeltreeWidgetDoubleClicked(){
+}