]> sigrok.org Git - pulseview.git/commitdiff
Added fallback toolbar icons
authorJoel Holdsworth <redacted>
Fri, 28 Dec 2012 11:44:42 +0000 (11:44 +0000)
committerJoel Holdsworth <redacted>
Fri, 28 Dec 2012 11:44:42 +0000 (11:44 +0000)
icons/document-open.png [new file with mode: 0644]
icons/zoom-in.png [new file with mode: 0644]
icons/zoom-out.png [new file with mode: 0644]
pulseview.qrc
pv/mainwindow.cpp

diff --git a/icons/document-open.png b/icons/document-open.png
new file mode 100644 (file)
index 0000000..254a6b8
Binary files /dev/null and b/icons/document-open.png differ
diff --git a/icons/zoom-in.png b/icons/zoom-in.png
new file mode 100644 (file)
index 0000000..55f9ae1
Binary files /dev/null and b/icons/zoom-in.png differ
diff --git a/icons/zoom-out.png b/icons/zoom-out.png
new file mode 100644 (file)
index 0000000..9f7627e
Binary files /dev/null and b/icons/zoom-out.png differ
index cbce41ccf544721efb694d82dad40d0c14e026eb..de265fbbdf68efdfca5ab292ad86e3ab46ca7395 100644 (file)
@@ -1,6 +1,9 @@
 <RCC>
     <qresource prefix="/" >
        <file>icons/configure.png</file>
+       <file>icons/document-open.png</file>
        <file>icons/sigrok-logo-notext.png</file>
+       <file>icons/zoom-in.png</file>
+       <file>icons/zoom-out.png</file>
     </qresource>
 </RCC>
index f17ad9c86be43b2e13babadc6091621093eee307..a94871fa4ca2c6927f5dceb396957a33f6936e26 100644 (file)
@@ -82,11 +82,13 @@ void MainWindow::setup_ui()
        _action_about->setObjectName(QString::fromUtf8("actionAbout"));
 
        _action_view_zoom_in = new QAction(this);
-       _action_view_zoom_in->setIcon(QIcon::fromTheme("zoom-in"));
+       _action_view_zoom_in->setIcon(QIcon::fromTheme("zoom-in",
+               QIcon(":/icons/zoom-in.png")));
        _action_view_zoom_in->setObjectName(QString::fromUtf8("actionViewZoomIn"));
 
        _action_view_zoom_out = new QAction(this);
-       _action_view_zoom_out->setIcon(QIcon::fromTheme("zoom-out"));
+       _action_view_zoom_out->setIcon(QIcon::fromTheme("zoom-out",
+               QIcon(":/icons/zoom-out.png")));
        _action_view_zoom_out->setObjectName(QString::fromUtf8("actionViewZoomOut"));
 
        _action_view_show_cursors = new QAction(this);
@@ -95,7 +97,8 @@ void MainWindow::setup_ui()
        _action_view_show_cursors->setObjectName(QString::fromUtf8("actionViewShowCursors"));
 
        _action_open = new QAction(this);
-       _action_open->setIcon(QIcon::fromTheme("document-open"));
+       _action_open->setIcon(QIcon::fromTheme("document-open",
+               QIcon(":/icons/document-open.png")));
        _action_open->setObjectName(QString::fromUtf8("actionOpen"));
 
        // Setup the menu bar