diff options
author | Miodrag Milanović <mmicko@gmail.com> | 2018-08-04 04:05:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-04 04:05:38 -0700 |
commit | dc34d4c9ed11e034bf9f81c02365496658f36517 (patch) | |
tree | 4cfb053ffccefe134d1ef84ecb5bce972fa0d167 /gui/generic/mainwindow.cc | |
parent | f5a1b93f0e9348437ece7fb7d46ac69af98536d0 (diff) | |
parent | 0cb349b60ea17378a4c163f0c8b12e8b17988cee (diff) | |
download | nextpnr-dc34d4c9ed11e034bf9f81c02365496658f36517.tar.gz nextpnr-dc34d4c9ed11e034bf9f81c02365496658f36517.tar.bz2 nextpnr-dc34d4c9ed11e034bf9f81c02365496658f36517.zip |
Merge pull request #33 from YosysHQ/gui-ecp5
Gui ecp5
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() {}
|