From: Dirk H Bartley Date: Mon, 26 Mar 2007 01:56:41 +0000 (+0000) Subject: dhb Add button on toolbar to pull window out. X-Git-Tag: Release-7.0.0~6703 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d035d28c9468618c611c09bc29c4b46fde4f94eb;p=bacula%2Fbacula dhb Add button on toolbar to pull window out. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4422 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/qt-console/main.ui b/bacula/src/qt-console/main.ui index 8f0ccded8b..46be6b9a18 100644 --- a/bacula/src/qt-console/main.ui +++ b/bacula/src/qt-console/main.ui @@ -71,7 +71,7 @@ 0 0 882 - 24 + 28 @@ -118,8 +118,8 @@ - 50 - 38 + 51 + 39 @@ -136,6 +136,7 @@ + @@ -445,6 +446,14 @@ &Select Font ... + + + images/up.png + + + Pull Window Out + + diff --git a/bacula/src/qt-console/mainwin.cpp b/bacula/src/qt-console/mainwin.cpp index 9722cc69a6..f321f6ea84 100644 --- a/bacula/src/qt-console/mainwin.cpp +++ b/bacula/src/qt-console/mainwin.cpp @@ -184,6 +184,7 @@ void MainWin::createConnections() connect(actionLabel, SIGNAL(triggered()), this, SLOT(labelDialogClicked())); connect(actionRun, SIGNAL(triggered()), this, SLOT(runDialogClicked())); connect(actionRestore, SIGNAL(triggered()), this, SLOT(restoreDialogClicked())); + connect(actionPullWindowOut, SIGNAL(triggered()), this, SLOT(pullWindowOutButton())); } /* @@ -329,3 +330,18 @@ void MainWin::pullWindowOut() { m_bstackpophold->Togglestack(); } + +void MainWin::pullWindowOutButton() +{ + int curindex = stackedWidget->currentIndex(); + QList::iterator bstackItem; + bstackItem = m_bstacklist.begin(); + bool done=false; + while ( (bstackItem != m_bstacklist.end()) && not(done) ){ + if ( curindex == stackedWidget->indexOf( *bstackItem ) ){ + (*bstackItem)->Togglestack(); + done=true; + } + ++bstackItem; + } +} diff --git a/bacula/src/qt-console/mainwin.h b/bacula/src/qt-console/mainwin.h index 72f0744312..13ee72acdc 100644 --- a/bacula/src/qt-console/mainwin.h +++ b/bacula/src/qt-console/mainwin.h @@ -70,6 +70,7 @@ public slots: void runDialogClicked(); void restoreDialogClicked(); void pullWindowOut(); + void pullWindowOutButton(); protected: void closeEvent(QCloseEvent *event);