From: Soeren Apel Date: Tue, 16 Aug 2016 18:46:56 +0000 (+0200) Subject: Make view windows non-closeable X-Git-Tag: pulseview-0.4.0~278 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d6ab7b9a333a395edd349d5552c2c77e8e875dd3;p=pulseview.git Make view windows non-closeable --- diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index ca2abae9..efd5a0d1 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -243,6 +243,9 @@ shared_ptr 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)));