MainWindow: Added icon to action_view_show_cursors
authorJoel Holdsworth <joel@airwebreathe.org.uk>
Sat, 10 Jan 2015 16:00:29 +0000 (16:00 +0000)
committerJoel Holdsworth <joel@airwebreathe.org.uk>
Sat, 10 Jan 2015 16:19:31 +0000 (16:19 +0000)
icons/show-cursors.svg [new file with mode: 0644]
pulseview.qrc
pv/mainwindow.cpp

diff --git a/icons/show-cursors.svg b/icons/show-cursors.svg
new file mode 100644 (file)
index 0000000..1cbf440
--- /dev/null
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg id="svg2" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="24" width="24" version="1.0" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <path id="path2993" d="m1.5 3.5v5h4l3 3v-8z" stroke="#204a87" stroke-width="1px" fill="#3465a4"/>
+ <path id="path2995" d="m8.5 20.5v-16" stroke="#204a87" stroke-linecap="square" stroke-width="1px" fill="none"/>
+ <path id="path2993-2" d="m22.5 3.5v5h-4l-3 3v-8z" stroke="#204a87" stroke-width="1px" fill="#3465a4"/>
+ <path id="path2995-2" d="m15.5 20.5v-16" stroke="#204a87" stroke-linecap="square" stroke-width="1px" fill="none"/>
+</svg>
index 8bea253aa0cc528bf6bbc5a55ab1d49880f4f5c8..3c61bc69a327a022e382532d66a71f5b4e6a7edb 100644 (file)
@@ -13,6 +13,7 @@
        <file>icons/status-green.svg</file>
        <file>icons/status-grey.svg</file>
        <file>icons/status-red.svg</file>
+       <file>icons/show-cursors.svg</file>
        <file>icons/trigger-change.svg</file>
        <file>icons/trigger-falling.svg</file>
        <file>icons/trigger-high.svg</file>
index 1d2b49fff4772ae364e57ab5eb9c438995d5bc76..2597928d7921fec293e75dda35d3c5e9d30d544a 100644 (file)
@@ -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"));