]> sigrok.org Git - pulseview.git/commitdiff
Add tooltips
authorSoeren Apel <redacted>
Fri, 9 Dec 2016 17:19:28 +0000 (18:19 +0100)
committerUwe Hermann <redacted>
Tue, 13 Dec 2016 22:19:41 +0000 (23:19 +0100)
pv/mainwindow.cpp
pv/toolbars/mainbar.cpp

index 7fe09fb732e9789ca8be26a958a4057a50e5a0fe..f7c47122737216fba1fa32472d70f10cf6b5b71c 100644 (file)
@@ -336,25 +336,28 @@ void MainWindow::setup_ui()
        action_view_coloured_bg_->setShortcut(QKeySequence(Qt::Key_B));
        action_view_coloured_bg_->setObjectName(
                QString::fromUtf8("actionViewColouredBg"));
-       action_view_coloured_bg_->setText(tr("Use &coloured backgrounds"));
+       action_view_coloured_bg_->setText(tr("Use &Coloured Backgrounds"));
 
        action_about_->setObjectName(QString::fromUtf8("actionAbout"));
-       action_about_->setText(tr("&About..."));
+       action_about_->setToolTip(tr("&About..."));
 
        // Set up the tab area
        new_session_button_ = new QToolButton();
        new_session_button_->setIcon(QIcon::fromTheme("document-new",
                QIcon(":/icons/document-new.png")));
+       new_session_button_->setToolTip(tr("Create New Session"));
        new_session_button_->setAutoRaise(true);
 
        run_stop_button_ = new QToolButton();
        run_stop_button_->setAutoRaise(true);
        run_stop_button_->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
        run_stop_button_->setShortcut(QKeySequence(Qt::Key_Space));
+       run_stop_button_->setToolTip(tr("Start/Stop Acquisition"));
 
        settings_button_ = new QToolButton();
        settings_button_->setIcon(QIcon::fromTheme("configure",
                QIcon(":/icons/configure.png")));
+       settings_button_->setToolTip(tr("Settings"));
        settings_button_->setAutoRaise(true);
 
        QFrame *separator1 = new QFrame();
index 2c64867f89ca3f4d566814ec7be90262bf2bea05..65db28b72dd8e509725a644818839ea6d57a9f99 100644 (file)
@@ -214,9 +214,11 @@ MainBar::MainBar(Session &session, QWidget *parent,
 
        set_capture_state(pv::Session::Stopped);
 
+       configure_button_.setToolTip(tr("Configure Device"));
        configure_button_.setIcon(QIcon::fromTheme("configure",
                QIcon(":/icons/configure.png")));
 
+       channels_button_.setToolTip(tr("Configure Channels"));
        channels_button_.setIcon(QIcon::fromTheme("channels",
                QIcon(":/icons/channels.svg")));