]> sigrok.org Git - pulseview.git/commitdiff
Fix objectName warnings.
authorSoeren Apel <redacted>
Sun, 14 Sep 2014 14:47:57 +0000 (16:47 +0200)
committerUwe Hermann <redacted>
Mon, 15 Sep 2014 19:26:03 +0000 (21:26 +0200)
Fix the following warnings:

  QMainWindow::saveState(): 'objectName' not set for QToolBar 'Main Toolbar'
  QMainWindow::saveState(): 'objectName' not set for QToolBar 'Sampling Bar'

pv/mainwindow.cpp
pv/toolbars/samplingbar.cpp

index 719d608989a82b92a8d42f1be66b04ef9264a1ce..dae8f123f8b64d6d8d866dba0e829421f72c7f08 100644 (file)
@@ -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();
index 550fc8482d1c7891a586adc8734dac3d684ac352..526f382ce402e7e07979ef722e3cba498af3c0fa 100644 (file)
@@ -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)),