Commit d4e0cc8e authored by Stefan Brüns's avatar Stefan Brüns
Browse files

Remove support for deprecated ThumbCreator::DrawFrame flag

DrawFrame has been deprecated since KF 5.32, see
frameworks/kio@8d9fde5d
parent 39ef052c
...@@ -277,21 +277,6 @@ void ThumbnailProtocol::get(const QUrl &url) ...@@ -277,21 +277,6 @@ void ThumbnailProtocol::get(const QUrl &url)
scaleDownImage(img, m_width, m_height); scaleDownImage(img, m_width, m_height);
if (flags & ThumbCreator::DrawFrame) {
int x2 = img.width() - 1;
int y2 = img.height() - 1;
// paint a black rectangle around the "page"
QPainter p;
p.begin( &img );
p.setPen( QColor( 48, 48, 48 ));
p.drawLine( x2, 0, x2, y2 );
p.drawLine( 0, y2, x2, y2 );
p.setPen( QColor( 215, 215, 215 ));
p.drawLine( 0, 0, x2, 0 );
p.drawLine( 0, 0, 0, y2 );
p.end();
}
if ((flags & ThumbCreator::BlendIcon) && KIconLoader::global()->alphaBlending(KIconLoader::Desktop)) { if ((flags & ThumbCreator::BlendIcon) && KIconLoader::global()->alphaBlending(KIconLoader::Desktop)) {
// blending the mimetype icon in // blending the mimetype icon in
QImage icon = getIcon(); QImage icon = getIcon();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment