[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/plasma/generic/wallpapers/image
From: Marco Martin <notmart () gmail ! com>
Date: 2010-08-12 21:51:31
Message-ID: 20100812215131.B5C94AC84E () svn ! kde ! org
[Download RAW message or body]
SVN commit 1162865 by mart:
put the image in a rectangle of 16:10
images with different proportions will have the maximum rectangle inscribed in that 16:10 rectangle.
this way the grid is a bit less spaced and the individual delegates feel more proportioned
M +1 -1 backgrounddelegate.cpp
M +1 -1 backgroundlistmodel.cpp
--- trunk/KDE/kdebase/workspace/plasma/generic/wallpapers/image/backgrounddelegate.cpp #1162864:1162865
@@ -26,7 +26,7 @@
BackgroundDelegate::BackgroundDelegate(QObject *parent)
: QAbstractItemDelegate(parent)
{
- m_maxHeight = SCREENSHOT_SIZE + BLUR_INCREMENT;
+ m_maxHeight = SCREENSHOT_SIZE/1.6 + BLUR_INCREMENT;
m_maxWidth = SCREENSHOT_SIZE + BLUR_INCREMENT;
}
--- trunk/KDE/kdebase/workspace/plasma/generic/wallpapers/image/backgroundlistmodel.cpp #1162864:1162865
@@ -238,7 +238,7 @@
if (!m_previewJobs.contains(file) && file.isValid()) {
KIO::PreviewJob* job = KIO::filePreview(KUrl::List() << file,
BackgroundDelegate::SCREENSHOT_SIZE,
- BackgroundDelegate::SCREENSHOT_SIZE);
+ BackgroundDelegate::SCREENSHOT_SIZE/1.6);
job->setIgnoreMaximumSize(true);
connect(job, SIGNAL(gotPreview(const KFileItem&, const QPixmap&)),
this, SLOT(showPreview(const KFileItem&, const QPixmap&)));
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic