diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2019-09-08 23:26:55 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2019-09-10 07:46:14 +0000 |
commit | 957cddae8113354d3c8991996ea0ce8859849c8e (patch) | |
tree | 21c8587e6ac5529699b39c205cbd0ca974a1a181 | |
parent | dbb3ca2ac6987e7eedef6c4875245676ffaca0fa (diff) |
Add an icon for the options page
Task-number: QTCREATORBUG-22566
Change-Id: I66ba0b6fc8ea3809c7852d485c30a5594961eac5
Reviewed-by: Vitaly Fanaskov <vitaly.fanaskov@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rw-r--r-- | images/settingscategory_usagestatistic.png | bin | 0 -> 233 bytes | |||
-rw-r--r-- | images/settingscategory_usagestatistic.svg | 130 | ||||
-rw-r--r-- | images/settingscategory_usagestatistic@2x.png | bin | 0 -> 426 bytes | |||
-rw-r--r-- | ui/usagestatisticpage.cpp | 2 | ||||
-rw-r--r-- | usagestatistic.pro | 3 | ||||
-rw-r--r-- | usagestatistic.qrc | 6 |
6 files changed, 141 insertions, 0 deletions
diff --git a/images/settingscategory_usagestatistic.png b/images/settingscategory_usagestatistic.png Binary files differnew file mode 100644 index 0000000..e45c00b --- /dev/null +++ b/images/settingscategory_usagestatistic.png diff --git a/images/settingscategory_usagestatistic.svg b/images/settingscategory_usagestatistic.svg new file mode 100644 index 0000000..c4bd019 --- /dev/null +++ b/images/settingscategory_usagestatistic.svg @@ -0,0 +1,130 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="24" + height="24" + viewBox="0 0 6.35 6.35" + version="1.1" + id="svg2581" + inkscape:version="0.92.4 (5da689c313, 2019-01-14)" + sodipodi:docname="settingscategory_usagestatistic.svg"> + <defs + id="defs2575" /> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:document-units="px" + inkscape:current-layer="layer1" + showgrid="true" + units="px" + showguides="true" + inkscape:guide-bbox="true"> + <inkscape:grid + type="xygrid" + id="grid3287" + spacingx="0.13229167" + spacingy="0.13229167" + empspacing="2" + dotted="true" /> + <sodipodi:guide + position="0,5.2916667" + orientation="0,1" + id="guide6992" + inkscape:locked="false" + inkscape:label="" + inkscape:color="rgb(0,0,255)" /> + <sodipodi:guide + position="1.0583333,0" + orientation="1,0" + id="guide6994" + inkscape:locked="false" + inkscape:label="" + inkscape:color="rgb(0,0,255)" /> + <sodipodi:guide + position="0,1.0583333" + orientation="0,1" + id="guide6996" + inkscape:locked="false" + inkscape:label="" + inkscape:color="rgb(0,0,255)" /> + <sodipodi:guide + position="5.2916667,0" + orientation="1,0" + id="guide6998" + inkscape:locked="false" + inkscape:label="" + inkscape:color="rgb(0,0,255)" /> + </sodipodi:namedview> + <metadata + id="metadata2578"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1" + transform="translate(0,-290.64998)"> + <g + transform="matrix(0.26458333,0,0,0.26458333,-310.09162,137.19165)" + id="settingscategory_usagestatistic" + style="display:inline"> + <rect + y="580" + x="1172" + height="24" + width="24" + id="use2493" + style="display:inline;fill:#ffffff;stroke-width:1.5" /> + <path + sodipodi:nodetypes="cc" + inkscape:connector-curvature="0" + id="path2521" + d="m 1176,589.5 h 16" + style="fill:none;stroke:#000000" /> + <path + sodipodi:nodetypes="csssc" + inkscape:connector-curvature="0" + id="path2523" + d="m 1180,589.5 c 0,-1 1,-5 1.5,-5 0.5,0 1,1.5 2.5,1.5 1.5,0 2,-1.5 2.5,-1.5 0.5,0 1.5,4 1.5,5" + style="fill:#000000;stroke:#000000" /> + <circle + r="5" + cy="592.5" + cx="1182.5" + id="path2525" + style="fill:#ffffff;stroke:#000000" /> + <path + sodipodi:nodetypes="cc" + inkscape:connector-curvature="0" + id="path2527" + d="M 1189.24,599.24 1186,596" + style="fill:none;stroke:#000000;stroke-width:2" /> + <path + sodipodi:nodetypes="cccccc" + inkscape:connector-curvature="0" + d="m 1184.5,595 v -5 m -2,5 v -3 m -2,1 v 2" + style="fill:none;stroke:#000000" + id="path2535" /> + </g> + </g> +</svg> diff --git a/images/settingscategory_usagestatistic@2x.png b/images/settingscategory_usagestatistic@2x.png Binary files differnew file mode 100644 index 0000000..136c67e --- /dev/null +++ b/images/settingscategory_usagestatistic@2x.png diff --git a/ui/usagestatisticpage.cpp b/ui/usagestatisticpage.cpp index 50fe5c1..10de382 100644 --- a/ui/usagestatisticpage.cpp +++ b/ui/usagestatisticpage.cpp @@ -81,6 +81,8 @@ void UsageStatisticPage::configure() { setId(Constants::USAGE_STATISTIC_PAGE_ID); setCategory(Constants::TELEMETRY_SETTINGS_CATEGORY_ID); + setCategoryIcon(Utils::Icon({{":/usagestatistic/images/settingscategory_usagestatistic.png", + Utils::Theme::PanelTextColorDark}}, Utils::Icon::Tint)); setDisplayName(tr("Usage Statistic")); setDisplayCategory(tr("Telemetry")); diff --git a/usagestatistic.pro b/usagestatistic.pro index 87f1dc0..e0acd5e 100644 --- a/usagestatistic.pro +++ b/usagestatistic.pro @@ -49,6 +49,9 @@ HEADERS += \ services/datasubmitter.h \ common/utils.h +RESOURCES += \ + usagestatistic.qrc + # Qt Creator linking ## Either set the IDE_SOURCE_TREE when running qmake, diff --git a/usagestatistic.qrc b/usagestatistic.qrc new file mode 100644 index 0000000..8ab02df --- /dev/null +++ b/usagestatistic.qrc @@ -0,0 +1,6 @@ +<RCC> + <qresource prefix="/usagestatistic"> + <file>images/settingscategory_usagestatistic.png</file> + <file>images/settingscategory_usagestatistic@2x.png</file> + </qresource> +</RCC> |