diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2015-07-08 20:48:57 +0300 |
---|---|---|
committer | Olivier Goffart <ogoffart@woboq.com> | 2015-07-08 20:48:57 +0300 |
commit | 08fcf650eba929c337acd135dd2c0686d4572974 (patch) | |
tree | 8eae20bdba1682dad95f71bd03ce1f59af0a7639 /src/gui/folderstatusdelegate.cpp | |
parent | e28fab0c616bd833c555d56d529a8757f22aab15 (diff) |
Fix Qt4 build
Diffstat (limited to 'src/gui/folderstatusdelegate.cpp')
-rw-r--r-- | src/gui/folderstatusdelegate.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/folderstatusdelegate.cpp b/src/gui/folderstatusdelegate.cpp index b8cbc6418..f19331bb3 100644 --- a/src/gui/folderstatusdelegate.cpp +++ b/src/gui/folderstatusdelegate.cpp @@ -101,7 +101,11 @@ void FolderStatusDelegate::paint(QPainter *painter, const QStyleOptionViewItem & opt.state = QStyle::State_Enabled; opt.text = addFolderText(); opt.rect.setWidth(qMin(opt.rect.width(), hint.width())); - QApplication::style()->drawControl(QStyle::CE_PushButton, &opt, painter, option.widget); + QApplication::style()->drawControl(QStyle::CE_PushButton, &opt, painter +#if QT_VERSION >= QT_VERSION_CHECK(5,0,0) + , option.widget +#endif + ); return; } |