X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fmainwindow.cpp;h=c79364ebe738c8aca735f7cdae2a7f9c0ce1ce51;hp=dfabc9a06797f0a080ae16069b16de70f0929280;hb=7a0d99e6d48870c51d00c25617eb309181dc2a60;hpb=fa5a3564553400d3c57751f8b951bdd951aa7aa0 diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index dfabc9a..c79364e 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -172,8 +172,8 @@ shared_ptr MainWindow::add_view(const QString &title, QDockWidget::DockWidgetFloatable | QDockWidget::DockWidgetClosable); QAbstractButton *close_btn = - dock->findChildren("qt_dockwidget_closebutton") - .front(); // clazy:exclude=detaching-temporary + dock->findChildren("qt_dockwidget_closebutton") // clazy:exclude=detaching-temporary + .front(); connect(close_btn, SIGNAL(clicked(bool)), this, SLOT(on_view_close_clicked())); @@ -313,8 +313,8 @@ void MainWindow::remove_session(shared_ptr session) // When there are no more tabs, the height of the QTabWidget // drops to zero. We must prevent this to keep the static // widgets visible - for (QWidget *w : static_tab_widget_->findChildren()) - w->setMinimumHeight(h); // clazy:exclude=range-loop + for (QWidget *w : static_tab_widget_->findChildren()) // clazy:exclude=range-loop + w->setMinimumHeight(h); int margin = static_tab_widget_->layout()->contentsMargins().bottom(); static_tab_widget_->setMinimumHeight(h + 2 * margin);