]> git.sur5r.net Git - bacula/bacula/commitdiff
This fixes the HAVE_QWT issues that were made aware to me on the mailing list
authorDirk H Bartley <dbartley@schupan.com>
Sun, 3 Aug 2008 17:11:20 +0000 (17:11 +0000)
committerDirk H Bartley <dbartley@schupan.com>
Sun, 3 Aug 2008 17:11:20 +0000 (17:11 +0000)
by Erik P. Olsen <epodata@gmail.com>.

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.4@7461 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/qt-console/joblist/joblist.cpp
bacula/src/qt-console/joblist/joblist.h
bacula/src/qt-console/mainwin.cpp
bacula/src/qt-console/mainwin.h

index 4dc426fe6988c3b92ebb0ea365fb3e54eede84b3..1538b98228e7593d0bbc254699fa783f662f7c53 100644 (file)
@@ -580,9 +580,9 @@ void JobList::consoleCancelJob()
 /*
  * Graph this table
  */
-#ifdef HAVE_QWT
 void JobList::graphTable()
 {
+#ifdef HAVE_QWT
    JobPlotPass pass;
    pass.recordLimitCheck = limitCheckBox->checkState();
    pass.daysLimitCheck = daysCheckBox->checkState();
@@ -598,8 +598,8 @@ void JobList::graphTable()
    pass.use = true;
    QTreeWidgetItem* pageSelectorTreeWidgetItem = mainWin->getFromHash(this);
    new JobPlot(pageSelectorTreeWidgetItem, pass);
-}
 #endif
+}
 
 /*
  * Save user settings associated with this page
index 2a7f9346ce13f2f4fe12c856548d903d19140d26..8b47899424d0cadffc03bcbb4b76db7e5e316e75 100644 (file)
@@ -67,9 +67,7 @@ private slots:
    void preRestoreFromTime();
    void showLogForJob();
    void consoleCancelJob();
-#ifdef HAVE_QWT
    void graphTable();
-#endif
 
 private:
    void createConnections();
index 343ebd01c16f1622b8cf26aeb3aae5a52baa37ff..7e81c7c0a71a8bf99c9c90f239d7e66ba784f5fb 100644 (file)
@@ -441,14 +441,14 @@ void MainWin::restoreButtonClicked()
    new prerestorePage();
 }
 
-#ifdef HAVE_QWT
 void MainWin::jobPlotButtonClicked()
 {
+#ifdef HAVE_QWT
    JobPlotPass pass;
    pass.use = false;
    new JobPlot(NULL, pass);
-}
 #endif
+}
 
 /*
  * The user just finished typing a line in the command line edit box
index db376ee588edffaf5bcb7cb8f1a34db8ca10a41d..d05e7afe604c4655a35b8813cc31b8275867e360 100644 (file)
@@ -107,9 +107,7 @@ public slots:
    void runButtonClicked();
    void estimateButtonClicked();
    void browseButtonClicked();
-#ifdef HAVE_QWT
    void jobPlotButtonClicked();
-#endif
    void restoreButtonClicked();
    void undockWindowButton();
    void treeItemChanged(QTreeWidgetItem *, QTreeWidgetItem *);