[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdeui/icons
From: Marijn Kruisselbrink <m.kruisselbrink () student ! tue ! nl>
Date: 2009-01-05 14:47:24
Message-ID: 1231166844.948959.32249.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 906101 by mkruisselbrink:
QWidget::paintEngine() always returns 0 with qt-embedded (and prints some cryptic \
warning that it shouldn't be called without any indication why that would be the \
case), so check the return value before using it.
M +2 -1 kiconeffect.cpp
--- trunk/KDE/kdelibs/kdeui/icons/kiconeffect.cpp #906100:906101
@@ -504,7 +504,8 @@
int width = img.width();
int height = img.height();
- if(QApplication::desktop()->paintEngine()->hasFeature(QPaintEngine::Antialiasing)){
+ QPaintEngine* pe = QApplication::desktop()->paintEngine();
+ if(pe && pe->hasFeature(QPaintEngine::Antialiasing)){
unsigned char *line;
for(y=0; y<height; y++){
if(QSysInfo::ByteOrder == QSysInfo::BigEndian)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic