From: Joel Holdsworth Date: Sat, 10 Jan 2015 16:00:29 +0000 (+0000) Subject: MainWindow: Added icon to action_view_show_cursors X-Git-Tag: pulseview-0.3.0~270 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=587f1d158c5c438ee856908bfbb54267cc19c58e;p=pulseview.git MainWindow: Added icon to action_view_show_cursors --- diff --git a/icons/show-cursors.svg b/icons/show-cursors.svg new file mode 100644 index 00000000..1cbf4405 --- /dev/null +++ b/icons/show-cursors.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/pulseview.qrc b/pulseview.qrc index 8bea253a..3c61bc69 100644 --- a/pulseview.qrc +++ b/pulseview.qrc @@ -13,6 +13,7 @@ icons/status-green.svg icons/status-grey.svg icons/status-red.svg + icons/show-cursors.svg icons/trigger-change.svg icons/trigger-falling.svg icons/trigger-high.svg diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 1d2b49ff..2597928d 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -282,6 +282,8 @@ void MainWindow::setup_ui() action_view_show_cursors_->setCheckable(true); action_view_show_cursors_->setChecked(view_->cursors_shown()); + action_view_show_cursors_->setIcon(QIcon::fromTheme("show-cursors", + QIcon(":/icons/show-cursors.svg"))); action_view_show_cursors_->setShortcut(QKeySequence(Qt::Key_C)); action_view_show_cursors_->setObjectName( QString::fromUtf8("actionViewShowCursors"));