summaryrefslogtreecommitdiff
path: root/src/mainwindow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cc')
-rw-r--r--src/mainwindow.cc10
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()