From 3c349e29adec7558cc89fb4290b277ced1467fa7 Mon Sep 17 00:00:00 2001 From: krepa098 Date: Fri, 6 Feb 2015 13:35:29 +0100 Subject: [PATCH] cleanup --- src/chatlog/content/spinner.cpp | 9 +++------ ui/chatArea/spinner.svg | 26 ++++++++++++-------------- 2 files changed, 15 insertions(+), 20 deletions(-) diff --git a/src/chatlog/content/spinner.cpp b/src/chatlog/content/spinner.cpp index 48152cb18..9f7901b48 100644 --- a/src/chatlog/content/spinner.cpp +++ b/src/chatlog/content/spinner.cpp @@ -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); diff --git a/ui/chatArea/spinner.svg b/ui/chatArea/spinner.svg index c5b6d1241..0887474b8 100644 --- a/ui/chatArea/spinner.svg +++ b/ui/chatArea/spinner.svg @@ -1,24 +1,22 @@ - - + width="18" + version="1.1"> + id="filter4418" + color-interpolation-filters="sRGB"> + stdDeviation="0.10811274" + id="feGaussianBlur4420" /> + id="layer1" + transform="translate(0.1875,-1034.3622)"> + 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" />