From: Soeren Apel Date: Fri, 9 Dec 2016 17:19:28 +0000 (+0100) Subject: Add tooltips X-Git-Tag: pulseview-0.4.0~213 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=5f66b56eb6616c9c626d6f48abf1da0d8a652444;p=pulseview.git Add tooltips --- diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 7fe09fb7..f7c47122 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -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(); diff --git a/pv/toolbars/mainbar.cpp b/pv/toolbars/mainbar.cpp index 2c64867f..65db28b7 100644 --- a/pv/toolbars/mainbar.cpp +++ b/pv/toolbars/mainbar.cpp @@ -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")));