diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-07-12 14:54:16 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-07-12 14:54:16 +0200 |
commit | 1245eb6343f272b6aeb096b0d41407c5ea6bc5cd (patch) | |
tree | 477d942d092cbb3e916c300bb27ccc49d22ab04e | |
parent | 24618ee80029a2a22bfd288faba4b211aa6dac2a (diff) | |
download | nextpnr-1245eb6343f272b6aeb096b0d41407c5ea6bc5cd.tar.gz nextpnr-1245eb6343f272b6aeb096b0d41407c5ea6bc5cd.tar.bz2 nextpnr-1245eb6343f272b6aeb096b0d41407c5ea6bc5cd.zip |
added progress bar for future use
-rw-r--r-- | gui/basewindow.cc | 6 | ||||
-rw-r--r-- | gui/basewindow.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gui/basewindow.cc b/gui/basewindow.cc index 2463027a..5a53e9cf 100644 --- a/gui/basewindow.cc +++ b/gui/basewindow.cc @@ -145,6 +145,12 @@ void BaseMainWindow::createMenusAndBars() addToolBar(Qt::TopToolBarArea, mainToolBar);
statusBar = new QStatusBar();
+ progressBar = new QProgressBar(statusBar);
+ progressBar->setAlignment(Qt::AlignRight);
+ progressBar->setMaximumSize(180, 19);
+ statusBar->addPermanentWidget(progressBar);
+ progressBar->setValue(0);
+ progressBar->setEnabled(false);
setStatusBar(statusBar);
menu_File->addAction(actionNew);
diff --git a/gui/basewindow.h b/gui/basewindow.h index 5c06fa6e..c98a0356 100644 --- a/gui/basewindow.h +++ b/gui/basewindow.h @@ -29,6 +29,7 @@ #include <QStatusBar>
#include <QTabWidget>
#include <QToolBar>
+#include <QProgressBar>
Q_DECLARE_METATYPE(std::string)
@@ -68,6 +69,7 @@ class BaseMainWindow : public QMainWindow QStatusBar *statusBar;
QAction *actionNew;
QAction *actionOpen;
+ QProgressBar *progressBar;
};
NEXTPNR_NAMESPACE_END
|