[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/plasma/generic/wallpapers/image
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2010-06-01 19:44:11
Message-ID: 20100601194411.2F66BAC8C6 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1133469 by aseigo:
get rid of the black backgrounds
M +3 -2 backgrounddelegate.cpp
M +1 -2 backgroundlistmodel.cpp
--- trunk/KDE/kdebase/workspace/plasma/generic/wallpapers/image/backgrounddelegate.cpp \
#1133468:1133469 @@ -43,7 +43,9 @@
QApplication::style()->drawControl(QStyle::CE_ItemViewItem, &option, painter);
// Draw wallpaper thumbnail
- if (!pix.isNull()) {
+ if (pix.isNull()) {
+ painter->fillRect(option.rect, option.palette.brush(QPalette::Base));
+ } else {
// blur calculation
QImage blur(pix.size() + QSize(BLUR_INCREMENT + BLUR_PAD, BLUR_INCREMENT + \
BLUR_PAD), QImage::Format_ARGB32);
QRect blurRect = QRect(QPoint((blur.width() - pix.width()) / 2, \
(blur.height() - pix.height()) / 2), pix.size()); @@ -71,7 +73,6 @@
//Use a QTextDocument to layout the text
QTextDocument document;
-
QString html = QString("<strong>%1</strong>").arg(title);
if (!author.isEmpty()) {
--- trunk/KDE/kdebase/workspace/plasma/generic/wallpapers/image/backgroundlistmodel.cpp \
#1133468:1133469 @@ -43,8 +43,7 @@
: QAbstractListModel(parent),
m_structureParent(listener),
m_size(0,0),
- m_resizeMethod(Plasma::Wallpaper::ScaledResize),
- m_previewUnavailablePix(BackgroundDelegate::SCREENSHOT_SIZE, \
BackgroundDelegate::SCREENSHOT_SIZE) + \
m_resizeMethod(Plasma::Wallpaper::ScaledResize) {
connect(&m_dirwatch, SIGNAL(deleted(QString)), this, \
SLOT(removeBackground(QString))); m_previewUnavailablePix.fill(Qt::transparent);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic