From ab8f923367d4fc09d738d924f4105ab15903ba3c Mon Sep 17 00:00:00 2001 From: Dirk H Bartley Date: Sun, 3 Aug 2008 17:11:20 +0000 Subject: [PATCH] This fixes the HAVE_QWT issues that were made aware to me on the mailing list by Erik P. Olsen . 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 | 4 ++-- bacula/src/qt-console/joblist/joblist.h | 2 -- bacula/src/qt-console/mainwin.cpp | 4 ++-- bacula/src/qt-console/mainwin.h | 2 -- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/bacula/src/qt-console/joblist/joblist.cpp b/bacula/src/qt-console/joblist/joblist.cpp index 4dc426fe69..1538b98228 100644 --- a/bacula/src/qt-console/joblist/joblist.cpp +++ b/bacula/src/qt-console/joblist/joblist.cpp @@ -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 diff --git a/bacula/src/qt-console/joblist/joblist.h b/bacula/src/qt-console/joblist/joblist.h index 2a7f9346ce..8b47899424 100644 --- a/bacula/src/qt-console/joblist/joblist.h +++ b/bacula/src/qt-console/joblist/joblist.h @@ -67,9 +67,7 @@ private slots: void preRestoreFromTime(); void showLogForJob(); void consoleCancelJob(); -#ifdef HAVE_QWT void graphTable(); -#endif private: void createConnections(); diff --git a/bacula/src/qt-console/mainwin.cpp b/bacula/src/qt-console/mainwin.cpp index 343ebd01c1..7e81c7c0a7 100644 --- a/bacula/src/qt-console/mainwin.cpp +++ b/bacula/src/qt-console/mainwin.cpp @@ -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 diff --git a/bacula/src/qt-console/mainwin.h b/bacula/src/qt-console/mainwin.h index db376ee588..d05e7afe60 100644 --- a/bacula/src/qt-console/mainwin.h +++ b/bacula/src/qt-console/mainwin.h @@ -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 *); -- 2.39.5