diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-06-06 07:59:57 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-06-06 07:59:57 +0200 |
commit | ed8983cb98fec755e0b633c4ec24a238d71182fc (patch) | |
tree | 44f5213261455606131384098482f0f0ed4b6394 /src/mainwindow.cc | |
parent | 668058ed445d56fe46ac7d5e5c2c2cc65b4e1e4c (diff) |
Kit channels widget placeholder.
Diffstat (limited to 'src/mainwindow.cc')
-rw-r--r-- | src/mainwindow.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mainwindow.cc b/src/mainwindow.cc index 92a91e7..8091d2e 100644 --- a/src/mainwindow.cc +++ b/src/mainwindow.cc @@ -44,6 +44,7 @@ #include "instrumentdialog.h" #include "projectserialiser.h" #include "instrumentwidget.h" +#include "channelswidget.h" #define MAXVAL 10000000L @@ -113,7 +114,7 @@ MainWindow::MainWindow(Settings& settings) } addDockWidget(Qt::LeftDockWidgetArea, instruments_dock); - channels_dock = new QDockWidget(tr("Channels:"), this); + channels_dock = new QDockWidget(tr("Kit channels:"), this); channels_dock->setObjectName("channels_dock"); channels_dock->setAllowedAreas(Qt::LeftDockWidgetArea); channels_dock->setFeatures(QDockWidget::DockWidgetMovable); @@ -276,6 +277,13 @@ void MainWindow::removeChannel() void MainWindow::channelDoubleClicked(QListWidgetItem *item) { + // Tab wasn't open already. Create it. + tab_widget->addTab(new ChannelsWidget(settings, project), + QPixmap(":icons/channel.png"), + tr("Channels")); + // Make new tab active + tab_widget->setCurrentIndex(tab_widget->count() - 1); + } void MainWindow::updateWindowTitle() |