From: Soeren Apel Date: Sun, 14 Sep 2014 14:47:57 +0000 (+0200) Subject: Fix objectName warnings. X-Git-Tag: pulseview-0.3.0~539 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=0c7cdea2babcf1e5add080f736b20adac676f893;p=pulseview.git Fix objectName warnings. Fix the following warnings: QMainWindow::saveState(): 'objectName' not set for QToolBar 'Main Toolbar' QMainWindow::saveState(): 'objectName' not set for QToolBar 'Sampling Bar' --- diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 719d6089..dae8f123 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -240,6 +240,7 @@ void MainWindow::setup_ui() // Setup the toolbar QToolBar *const toolbar = new QToolBar(tr("Main Toolbar"), this); + toolbar->setObjectName(QString::fromUtf8("MainToolbar")); toolbar->addAction(action_open); toolbar->addAction(action_save_as); toolbar->addSeparator(); diff --git a/pv/toolbars/samplingbar.cpp b/pv/toolbars/samplingbar.cpp index 550fc848..526f382c 100644 --- a/pv/toolbars/samplingbar.cpp +++ b/pv/toolbars/samplingbar.cpp @@ -66,6 +66,8 @@ SamplingBar::SamplingBar(SigSession &session, QWidget *parent) : _icon_grey(":/icons/status-grey.svg"), _run_stop_button(this) { + setObjectName(QString::fromUtf8("SamplingBar")); + connect(&_run_stop_button, SIGNAL(clicked()), this, SLOT(on_run_stop())); connect(&_device_selector, SIGNAL(currentIndexChanged (int)),