X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fmainwindow.cpp;h=dfabc9a06797f0a080ae16069b16de70f0929280;hp=6b3319bed152f993e76eb0bf7dc51e63dbccbc17;hb=b571a8e7e0dc3e3b6daa58f27050e76466f006dd;hpb=f4ab4b5c657e5613caba82feaa81a8a400e4f331 diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 6b3319be..dfabc9a0 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(); + dock->findChildren("qt_dockwidget_closebutton") + .front(); // clazy:exclude=detaching-temporary connect(close_btn, SIGNAL(clicked(bool)), this, SLOT(on_view_close_clicked())); @@ -314,7 +314,7 @@ void MainWindow::remove_session(shared_ptr session) // drops to zero. We must prevent this to keep the static // widgets visible for (QWidget *w : static_tab_widget_->findChildren()) - w->setMinimumHeight(h); + w->setMinimumHeight(h); // clazy:exclude=range-loop int margin = static_tab_widget_->layout()->contentsMargins().bottom(); static_tab_widget_->setMinimumHeight(h + 2 * margin);