mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
cleanup
This commit is contained in:
parent
c2ddc91d58
commit
3c349e29ad
|
@ -43,13 +43,10 @@ void Spinner::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, Q
|
|||
{
|
||||
painter->setClipRect(boundingRect());
|
||||
|
||||
QTransform rotMat;
|
||||
rotMat.translate(size.width() / 2.0, size.height() / 2.0);
|
||||
rotMat.rotate(QTime::currentTime().msecsSinceStartOfDay() / 1000.0 * rotSpeed);
|
||||
rotMat.translate(-size.width() / 2.0, -size.height() / 2.0);
|
||||
QTransform trans = QTransform().rotate(QTime::currentTime().msecsSinceStartOfDay() / 1000.0 * rotSpeed)
|
||||
.translate(-size.width()/2.0, -size.height()/2.0);
|
||||
|
||||
painter->translate(-size.width() / 2.0, -size.height() / 2.0);
|
||||
painter->setTransform(rotMat, true);
|
||||
painter->setTransform(trans, true);
|
||||
painter->setRenderHint(QPainter::SmoothPixmapTransform);
|
||||
painter->drawPixmap(0, 0, pmap);
|
||||
|
||||
|
|
|
@ -1,24 +1,22 @@
|
|||
<?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"
|
||||
version="1.1"
|
||||
width="18"
|
||||
id="svg3849"
|
||||
height="18"
|
||||
id="svg3849">
|
||||
width="18"
|
||||
version="1.1">
|
||||
<defs
|
||||
id="defs3851">
|
||||
<filter
|
||||
color-interpolation-filters="sRGB"
|
||||
id="filter4418">
|
||||
id="filter4418"
|
||||
color-interpolation-filters="sRGB">
|
||||
<feGaussianBlur
|
||||
id="feGaussianBlur4420"
|
||||
stdDeviation="0.10811274" />
|
||||
stdDeviation="0.10811274"
|
||||
id="feGaussianBlur4420" />
|
||||
</filter>
|
||||
</defs>
|
||||
<metadata
|
||||
|
@ -34,12 +32,12 @@
|
|||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
transform="translate(0,-1034.3622)"
|
||||
id="layer1">
|
||||
id="layer1"
|
||||
transform="translate(0.1875,-1034.3622)">
|
||||
<path
|
||||
d="M 9,1 C 4.581722,1 1,4.581722 1,9 c 0,4.418278 3.581722,8 8,8 3.600455,0 6.621126,-2.384809 7.625,-5.65625 l -2.09375,0 C 13.6204,13.49724 11.485281,15 9,15 5.6862916,15 3,12.313708 3,9 3,5.6862915 5.6862916,3 9,3 c 2.485281,0 4.6204,1.5027597 5.53125,3.65625 l 2.09375,0 C 15.621126,3.3848094 12.600455,1 9,1 z"
|
||||
transform="translate(0,1034.3622)"
|
||||
style="fill:#333333;fill-opacity:1;stroke:none;filter:url(#filter4418)"
|
||||
id="path3857"
|
||||
style="fill:#333333;fill-opacity:1;stroke:none;filter:url(#filter4418)" />
|
||||
transform="translate(0,1034.3622)"
|
||||
d="M 9,1 C 4.581722,1 1,4.581722 1,9 c 0,4.418278 3.581722,8 8,8 3.600455,0 6.621126,-2.384809 7.625,-5.65625 l -2.09375,0 C 13.6204,13.49724 11.485281,15 9,15 5.6862916,15 3,12.313708 3,9 3,5.6862915 5.6862916,3 9,3 c 2.485281,0 4.6204,1.5027597 5.53125,3.65625 l 2.09375,0 C 15.621126,3.3848094 12.600455,1 9,1 Z" />
|
||||
</g>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.4 KiB |
Loading…
Reference in New Issue
Block a user