During refs #319, refactoring of QLed (as it is used with a LED formatter)

* renamed to CLedWidget
* added missing SVG
* rendering to pixmap possible
* QScopedPointer<QSvgRenderer>
* Led, copyright
This commit is contained in:
Klaus Basan
2014-08-31 14:56:27 +02:00
parent f72ff4e495
commit 674a0b5665
6 changed files with 405 additions and 143 deletions

View File

@@ -304,5 +304,7 @@
<file>icons/qled/triang_purple.svg</file>
<file>icons/qled/triang_red.svg</file>
<file>icons/qled/triang_yellow.svg</file>
<file>icons/qled/round_black.svg</file>
</qresource>
<qresource prefix="/"/>
</RCC>

View File

@@ -0,0 +1,254 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:cc="http://web.resource.org/cc/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:ns1="http://sozi.baierouge.fr"
id="svg9493"
sodipodi:docname="led_rounded_h_black.svg"
inkscape:export-ydpi="90.000000"
inkscape:export-filename="/datas/Projs/Cliparts Stocker/led/led_rounded_h_black.png"
viewBox="0 0 100 50"
sodipodi:version="0.32"
inkscape:export-xdpi="90.000000"
inkscape:version="0.42"
sodipodi:docbase="/datas/Projs/Cliparts Stocker/led"
>
<defs
id="defs9495"
>
<linearGradient
id="linearGradient13472"
y2="46.774"
gradientUnits="userSpaceOnUse"
y1="47.917"
gradientTransform="matrix(.92813 0 0 .63901 21.556 15.276)"
x2="21.594"
x1="21.594"
inkscape:collect="always"
>
<stop
id="stop6508"
style="stop-color:#ffffff;stop-opacity:0"
offset="0"
/>
<stop
id="stop6510"
style="stop-color:#ffffff;stop-opacity:.87451"
offset="1"
/>
</linearGradient
>
<linearGradient
id="linearGradient13475"
y2="47.781"
gradientUnits="userSpaceOnUse"
y1="46.617"
gradientTransform="translate(20 -1.6)"
x2="21.594"
x1="21.591"
inkscape:collect="always"
>
<stop
id="stop9165"
style="stop-color:#000000"
offset="0"
/>
<stop
id="stop9167"
style="stop-color:#8c8c8c"
offset="1"
/>
</linearGradient
>
<linearGradient
id="linearGradient13478"
y2="47.844"
gradientUnits="userSpaceOnUse"
y1="46.557"
gradientTransform="translate(20 -1.6)"
x2="21.835"
x1="21.409"
inkscape:collect="always"
>
<stop
id="stop5758"
style="stop-color:#828282"
offset="0"
/>
<stop
id="stop5760"
style="stop-color:#929292;stop-opacity:.35294"
offset="1"
/>
</linearGradient
>
<linearGradient
id="linearGradient13481"
y2="48"
gradientUnits="userSpaceOnUse"
y1="46.377"
gradientTransform="translate(20 -1.6)"
x2="21.6"
x1="21.594"
inkscape:collect="always"
>
<stop
id="stop5744"
style="stop-color:#adadad"
offset="0"
/>
<stop
id="stop5746"
style="stop-color:#f0f0f0"
offset="1"
/>
</linearGradient
>
</defs
>
<sodipodi:namedview
id="base"
bordercolor="#666666"
inkscape:pageshadow="2"
inkscape:window-width="1024"
pagecolor="#ffffff"
inkscape:zoom="9.3000000"
inkscape:window-x="0"
borderopacity="1.0"
inkscape:current-layer="layer1"
inkscape:cx="50.000000"
inkscape:cy="25.000000"
inkscape:window-y="25"
inkscape:window-height="693"
inkscape:pageopacity="0.0"
inkscape:document-units="px"
/>
<g
id="layer1"
inkscape:label="Calque 1"
inkscape:groupmode="layer"
>
<g
id="g13501"
transform="matrix(31.25 0 0 31.25 -1250 -1400)"
>
<path
id="path13389"
style="fill:url(#linearGradient13481)"
d="m40.8 44.8h1.6c0.443 0 0.8 0.357 0.8 0.8s-0.357 0.8-0.8 0.8h-1.6c-0.443 0-0.8-0.357-0.8-0.8s0.357-0.8 0.8-0.8z"
/>
<path
id="path13391"
style="fill:url(#linearGradient13478)"
d="m40.812 44.962c-0.365 0-0.656 0.268-0.656 0.625 0 0.358 0.299 0.657 0.656 0.657h1.594c0.358 0 0.625-0.291 0.625-0.657 0-0.365-0.26-0.625-0.625-0.625h-1.594z"
/>
<path
id="path13393"
style="fill:url(#linearGradient13475)"
d="m40.812 45.025c-0.326 0-0.593 0.247-0.593 0.562 0 0.316 0.278 0.594 0.593 0.594h1.594c0.316 0 0.563-0.267 0.563-0.594 0-0.326-0.236-0.562-0.563-0.562h-1.594z"
/>
<path
id="path13395"
style="fill:url(#linearGradient13472)"
d="m40.873 45.07c-0.303 0-0.551 0.157-0.551 0.359s0.258 0.38 0.551 0.38h1.479c0.293 0 0.522-0.171 0.522-0.38 0-0.208-0.219-0.359-0.522-0.359h-1.479z"
/>
</g
>
</g
>
<metadata
>
<rdf:RDF
>
<cc:Work
>
<dc:format
>image/svg+xml</dc:format
>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage"
/>
<cc:license
rdf:resource="http://creativecommons.org/licenses/publicdomain/"
/>
<dc:publisher
>
<cc:Agent
rdf:about="http://openclipart.org/"
>
<dc:title
>Openclipart</dc:title
>
</cc:Agent
>
</dc:publisher
>
<dc:title
>led rounded h black</dc:title
>
<dc:date
>2009-11-04T15:27:55</dc:date
>
<dc:description
>Glossy black button with rounded corners by Jean-Victor Balin. From OCAL 0.18 release.</dc:description
>
<dc:source
>https://openclipart.org/detail/28078/led-rounded-h-black-by-anonymous</dc:source
>
<dc:creator
>
<cc:Agent
>
<dc:title
>Anonymous</dc:title
>
</cc:Agent
>
</dc:creator
>
<dc:subject
>
<rdf:Bag
>
<rdf:li
>black</rdf:li
>
<rdf:li
>button</rdf:li
>
<rdf:li
>glossy</rdf:li
>
</rdf:Bag
>
</dc:subject
>
</cc:Work
>
<cc:License
rdf:about="http://creativecommons.org/licenses/publicdomain/"
>
<cc:permits
rdf:resource="http://creativecommons.org/ns#Reproduction"
/>
<cc:permits
rdf:resource="http://creativecommons.org/ns#Distribution"
/>
<cc:permits
rdf:resource="http://creativecommons.org/ns#DerivativeWorks"
/>
</cc:License
>
</rdf:RDF
>
</metadata
>
</svg
>

After

Width:  |  Height:  |  Size: 6.6 KiB