diff --git a/main/CourseTab/coursestablemanager.cpp b/main/CourseTab/coursestablemanager.cpp
index f0dff3a..20fef1e 100644
--- a/main/CourseTab/coursestablemanager.cpp
+++ b/main/CourseTab/coursestablemanager.cpp
@@ -229,7 +229,8 @@ void coursesTableManager::showGraph()
{
if (gp != NULL)
{
- this->graph->showGraph(gp);
+ qDebug() << "Graph Dialog Opened. gp != NULL";
+ this->graph->showGraph(gp);
}
}
diff --git a/main/mainscreen.cpp b/main/mainscreen.cpp
index eb94e3d..e32ddc3 100644
--- a/main/mainscreen.cpp
+++ b/main/mainscreen.cpp
@@ -49,6 +49,9 @@ MainScreen::MainScreen(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainSc
ui->statusBar->repaint();
qDebug() << Q_FUNC_INFO << "Ready.";
+ //set the progress bar to be invisible (It will show only if value !=0 or !=100)
+ ui->progressBar->setVisible(false);
+
}
MainScreen::~MainScreen()
{
@@ -238,6 +241,7 @@ void MainScreen::on_clearTableButton_clicked()
void MainScreen::on_graphButton_clicked()
{
+ qDebug() << "Show Graph button clicked";
courseTableMgr->showGraph();
}
@@ -388,3 +392,15 @@ void MainScreen::on_labelMadeBy_linkActivated(const QString &link)
}
+
+/**
+ * @brief Every time the value changes this method will be called
+ * @param value = the value of the progress Bar
+ */
+void MainScreen::on_progressBar_valueChanged(int value)
+{
+ if(value == 0 || value == 100)
+ ui->progressBar->setVisible(false);
+ else
+ ui->progressBar->setVisible(true);
+}
diff --git a/main/mainscreen.h b/main/mainscreen.h
index b04691c..62da771 100644
--- a/main/mainscreen.h
+++ b/main/mainscreen.h
@@ -69,6 +69,8 @@ private slots:
void on_graphButton_clicked();
+ void on_progressBar_valueChanged(int value);
+
private:
void checkLocale();
diff --git a/main/mainscreen.ui b/main/mainscreen.ui
index 52c6a1a..4f6482c 100644
--- a/main/mainscreen.ui
+++ b/main/mainscreen.ui
@@ -690,7 +690,7 @@ background: qlineargradient(x1: 0, y1: 0.5, x2: 1, y2: 0.5, stop: 0 green, stop:
0
0
1133
- 21
+ 23