[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kfile
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2010-06-22 0:09:48
Message-ID: 20100622000948.4D30BAC8DA () svn ! kde ! org
[Download RAW message or body]
SVN commit 1140998 by aseigo:
workaround for a painting glitch; thanks to Christoph Feck for pointing out the \
solution. tested with various styles and with various sizes (with/without scrollbar) \
BUG:242358
M +8 -0 kfileplacesview.cpp
--- trunk/KDE/kdelibs/kfile/kfileplacesview.cpp #1140997:1140998
@@ -27,6 +27,7 @@
#include <QtGui/QAbstractItemDelegate>
#include <QtGui/QKeyEvent>
#include <QtGui/QApplication>
+#include <QtGui/QScrollBar>
#include <kdebug.h>
@@ -413,6 +414,13 @@
d->pollDevices.setInterval(5000);
connect(&d->pollDevices, SIGNAL(timeout()), this, \
SLOT(_k_triggerDevicePolling())); +
+ // FIXME: this is necessary to avoid flashes of black with some widget styles.
+ // could be a bug in Qt (e.g. QAbstractScrollArea) or KFilePlacesView, but has \
not + // yet been tracked down yet. until then, this works and is harmlessly \
enough. + // in fact, some QStyle (Oxygen, Skulpture, others?) do this already \
internally. + // See br #242358 for more information
+ verticalScrollBar()->setAttribute(Qt::WA_OpaquePaintEvent, false);
}
KFilePlacesView::~KFilePlacesView()
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic