[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/sysadmin/muon/installer
From: Jonathan Michael Thomas <echidnaman () kubuntu ! org>
Date: 2010-12-19 21:56:56
Message-ID: 20101219215656.CE028AC8AA () svn ! kde ! org
[Download RAW message or body]
SVN commit 1207829 by jmthomas:
Don't leak QPropertyAnimations
M +1 -1 ApplicationDetailsView/ApplicationDetailsWidget.cpp
M +2 -2 ScreenShotViewer.cpp
--- trunk/extragear/sysadmin/muon/installer/ApplicationDetailsView/ApplicationDetailsWidget.cpp \
#1207828:1207829 @@ -523,7 +523,7 @@
shadow->setColor(QApplication::palette().dark().color());
m_screenshotLabel->setGraphicsEffect(shadow);
- m_fadeScreenshot = new QPropertyAnimation(shadow, "opacity");
+ m_fadeScreenshot = new QPropertyAnimation(shadow, "opacity", this);
m_fadeScreenshot->setDuration(500);
m_fadeScreenshot->setStartValue(qreal(0));
m_fadeScreenshot->setEndValue(qreal(1));
--- trunk/extragear/sysadmin/muon/installer/ScreenShotViewer.cpp #1207828:1207829
@@ -55,7 +55,7 @@
m_screenshot = QPixmap(url);
- QPropertyAnimation *anim1 = new QPropertyAnimation(this, "size");
+ QPropertyAnimation *anim1 = new QPropertyAnimation(this, "size", this);
anim1->setDuration(500);
anim1->setStartValue(size());
anim1->setEndValue(m_screenshot.size() + (size()/3));
@@ -79,7 +79,7 @@
effect->setOffset(2);
effect->setColor(QApplication::palette().dark().color());
- QPropertyAnimation *anim = new QPropertyAnimation(effect, "opacity");
+ QPropertyAnimation *anim = new QPropertyAnimation(effect, "opacity", this);
anim->setDuration(500);
anim->setStartValue(qreal(0));
anim->setEndValue(qreal(1));
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic