X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fmainwindow.cpp;h=960c38977ab98b49ef0d22061077cec2b2f64906;hp=dfabc9a06797f0a080ae16069b16de70f0929280;hb=970fca0d353f5c6d05c763bf7bdd12aac6f5ea0b;hpb=b571a8e7e0dc3e3b6daa58f27050e76466f006dd diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index dfabc9a..960c389 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -75,9 +75,6 @@ MainWindow::MainWindow(DeviceManager &device_manager, QWidget *parent) : icon_green_(":/icons/status-green.svg"), icon_grey_(":/icons/status-grey.svg") { - qRegisterMetaType("util::Timestamp"); - qRegisterMetaType("uint64_t"); - GlobalSettings::add_change_handler(this); setup_ui(); @@ -98,8 +95,7 @@ void MainWindow::show_session_error(const QString text, const QString info_text) qDebug() << "Notifying user of session error:" << info_text; QMessageBox msg; - msg.setText(text); - msg.setInformativeText(info_text); + msg.setText(text + "\n\n" + info_text); msg.setStandardButtons(QMessageBox::Ok); msg.setIcon(QMessageBox::Warning); msg.exec(); @@ -172,8 +168,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 +309,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);