diff options
author | Christian Kamm <mail@ckamm.de> | 2015-08-19 17:15:30 +0300 |
---|---|---|
committer | Christian Kamm <mail@ckamm.de> | 2015-08-19 17:58:27 +0300 |
commit | 791c550a8ea501f85361056f1247810611a9530e (patch) | |
tree | 6f63b2b7263bfe5d97deb3c7f6f07849bd654325 /src/gui/folderstatusdelegate.cpp | |
parent | 344d3565f85281ffcad3f6784f00e1323aa2a4a6 (diff) |
FolderStatusDelegate: Add margin to button #3650
Diffstat (limited to 'src/gui/folderstatusdelegate.cpp')
-rw-r--r-- | src/gui/folderstatusdelegate.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 |