projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
manual: link from decoder troubleshooting to sigrok FAQ item
[pulseview.git]
/
pv
/
mainwindow.cpp
diff --git
a/pv/mainwindow.cpp
b/pv/mainwindow.cpp
index 6b3319bed152f993e76eb0bf7dc51e63dbccbc17..fd889e9e9176d6017c340f30d31d4b2b105b545d 100644
(file)
--- 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")
{
icon_green_(":/icons/status-green.svg"),
icon_grey_(":/icons/status-grey.svg")
{
- qRegisterMetaType<util::Timestamp>("util::Timestamp");
- qRegisterMetaType<uint64_t>("uint64_t");
-
GlobalSettings::add_change_handler(this);
setup_ui();
GlobalSettings::add_change_handler(this);
setup_ui();
@@
-172,8
+169,8
@@
shared_ptr<views::ViewBase> MainWindow::add_view(const QString &title,
QDockWidget::DockWidgetFloatable | QDockWidget::DockWidgetClosable);
QAbstractButton *close_btn =
QDockWidget::DockWidgetFloatable | QDockWidget::DockWidgetClosable);
QAbstractButton *close_btn =
- dock->findChildren<QAbstractButton*>
-
("qt_dockwidget_closebutton")
.front();
+ dock->findChildren<QAbstractButton*>
("qt_dockwidget_closebutton") // clazy:exclude=detaching-temporary
+ .front();
connect(close_btn, SIGNAL(clicked(bool)),
this, SLOT(on_view_close_clicked()));
connect(close_btn, SIGNAL(clicked(bool)),
this, SLOT(on_view_close_clicked()));
@@
-313,7
+310,7
@@
void MainWindow::remove_session(shared_ptr<Session> 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
// 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<QWidget*>())
+ for (QWidget *w : static_tab_widget_->findChildren<QWidget*>())
// clazy:exclude=range-loop
w->setMinimumHeight(h);
int margin = static_tab_widget_->layout()->contentsMargins().bottom();
w->setMinimumHeight(h);
int margin = static_tab_widget_->layout()->contentsMargins().bottom();