]> sigrok.org Git - pulseview.git/commitdiff
Make view windows non-closeable
authorSoeren Apel <redacted>
Tue, 16 Aug 2016 18:46:56 +0000 (20:46 +0200)
committerSoeren Apel <redacted>
Tue, 16 Aug 2016 18:46:56 +0000 (20:46 +0200)
pv/mainwindow.cpp

index ca2abae9779c3b1dbe2ad6e501b0334db82829c1..efd5a0d1e994bc08a3ae537ee83c39ba9be0aaac 100644 (file)
@@ -243,6 +243,9 @@ shared_ptr<pv::view::View> MainWindow::add_view(const QString &title,
                addDockWidget(Qt::TopDockWidgetArea, dock.get());
                view_docks_[dock] = v;
 
+               dock->setFeatures(QDockWidget::DockWidgetMovable |
+                       QDockWidget::DockWidgetFloatable);
+
                if (type == view::TraceView) {
                        connect(&session, SIGNAL(trigger_event(util::Timestamp)), v.get(),
                                SLOT(trigger_event(util::Timestamp)));