diff options
author | Eddie Hung <eddieh@ece.ubc.ca> | 2018-08-04 18:40:37 -0700 |
---|---|---|
committer | Eddie Hung <eddieh@ece.ubc.ca> | 2018-08-04 18:40:37 -0700 |
commit | aebb39c65125573386165dee3afbb93d6a18241e (patch) | |
tree | 626f0ee4c250c9b4dd0615b5ea3eb01773ed8ea7 /gui/generic/mainwindow.cc | |
parent | dced12cbd2355604279c7277c8a48f584771dfb8 (diff) | |
parent | 7d5dba3ad378563869657b4330c178ecd8c24931 (diff) | |
download | nextpnr-aebb39c65125573386165dee3afbb93d6a18241e.tar.gz nextpnr-aebb39c65125573386165dee3afbb93d6a18241e.tar.bz2 nextpnr-aebb39c65125573386165dee3afbb93d6a18241e.zip |
Merge branch 'master' into slack_histogram
Diffstat (limited to 'gui/generic/mainwindow.cc')
-rw-r--r-- | gui/generic/mainwindow.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gui/generic/mainwindow.cc b/gui/generic/mainwindow.cc index 70ee600d..050c0fb8 100644 --- a/gui/generic/mainwindow.cc +++ b/gui/generic/mainwindow.cc @@ -23,19 +23,27 @@ static void initMainResource() { Q_INIT_RESOURCE(nextpnr); } NEXTPNR_NAMESPACE_BEGIN
-MainWindow::MainWindow(std::unique_ptr<Context> context, QWidget *parent) : BaseMainWindow(std::move(context), parent)
+MainWindow::MainWindow(std::unique_ptr<Context> context, ArchArgs args, QWidget *parent) : BaseMainWindow(std::move(context), args, parent)
{
initMainResource();
std::string title = "nextpnr-generic - [EMPTY]";
setWindowTitle(title.c_str());
+ connect(this, &BaseMainWindow::contextChanged, this, &MainWindow::newContext);
+
createMenu();
Q_EMIT contextChanged(ctx.get());
}
MainWindow::~MainWindow() {}
+void MainWindow::newContext(Context *ctx)
+{
+ std::string title = "nextpnr-generic - " + ctx->getChipName();
+ setWindowTitle(title.c_str());
+}
+
void MainWindow::createMenu() {}
void MainWindow::new_proj() {}
|