From 791c550a8ea501f85361056f1247810611a9530e Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Wed, 19 Aug 2015 16:15:30 +0200 Subject: [PATCH] FolderStatusDelegate: Add margin to button #3650 --- src/gui/folderstatusdelegate.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/folderstatusdelegate.cpp b/src/gui/folderstatusdelegate.cpp index b1b787e1a..97b66ebf1 100644 --- a/src/gui/folderstatusdelegate.cpp +++ b/src/gui/folderstatusdelegate.cpp @@ -101,6 +101,7 @@ void FolderStatusDelegate::paint(QPainter *painter, const QStyleOptionViewItem & opt.state |= QStyle::State_Raised; opt.text = addFolderText(); opt.rect.setWidth(qMin(opt.rect.width(), hint.width())); + opt.rect.translate(0, 10); QApplication::style()->drawControl(QStyle::CE_PushButton, &opt, painter #if QT_VERSION >= QT_VERSION_CHECK(5,0,0) , option.widget