From: Joel Holdsworth Date: Sat, 10 Jan 2015 16:00:29 +0000 (+0000) Subject: MainWindow: Added icon to action_view_show_cursors X-Git-Url: http://git.code-monkey.de/?a=commitdiff_plain;ds=inline;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 0000000..1cbf440 --- /dev/null +++ b/icons/show-cursors.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/pulseview.qrc b/pulseview.qrc index 8bea253..3c61bc6 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 1d2b49f..2597928 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"));