From: Joel Holdsworth Date: Fri, 28 Dec 2012 11:44:42 +0000 (+0000) Subject: Added fallback toolbar icons X-Git-Tag: pulseview-0.1.0~175 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=362eea9688123140b0a8bce10e8e0575243ed5e4;p=pulseview.git Added fallback toolbar icons --- diff --git a/icons/document-open.png b/icons/document-open.png new file mode 100644 index 00000000..254a6b81 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 index 00000000..55f9ae10 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 index 00000000..9f7627ec Binary files /dev/null and b/icons/zoom-out.png differ diff --git a/pulseview.qrc b/pulseview.qrc index cbce41cc..de265fbb 100644 --- a/pulseview.qrc +++ b/pulseview.qrc @@ -1,6 +1,9 @@ icons/configure.png + icons/document-open.png icons/sigrok-logo-notext.png + icons/zoom-in.png + icons/zoom-out.png diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index f17ad9c8..a94871fa 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -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