diff options
author | Helmut K. C. Tessarek <tessarek@evermeet.cx> | 2017-09-13 07:26:56 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-10-05 23:01:32 +0300 |
commit | e8f17f5b0bb43ef71cb225c3a9141fed82cbbcba (patch) | |
tree | 810f156c5901adbac644ac616c1dcea02f2dd455 /src/gui/folderstatusdelegate.cpp | |
parent | 7d1285d3134e9e49653e2230ca40b2f57d0efe93 (diff) |
remove qt4 code
Diffstat (limited to 'src/gui/folderstatusdelegate.cpp')
-rw-r--r-- | src/gui/folderstatusdelegate.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/gui/folderstatusdelegate.cpp b/src/gui/folderstatusdelegate.cpp index 1d5ad0a14..23606c324 100644 --- a/src/gui/folderstatusdelegate.cpp +++ b/src/gui/folderstatusdelegate.cpp @@ -138,12 +138,7 @@ void FolderStatusDelegate::paint(QPainter *painter, const QStyleOptionViewItem & opt.rect.setWidth(qMin(opt.rect.width(), hint.width())); opt.rect.adjust(0, aliasMargin, 0, -aliasMargin); opt.rect = QStyle::visualRect(option.direction, option.rect, opt.rect); - QApplication::style()->drawControl(QStyle::CE_PushButton, &opt, painter -#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) - , - option.widget -#endif - ); + QApplication::style()->drawControl(QStyle::CE_PushButton, &opt, painter, option.widget); return; } @@ -308,11 +303,7 @@ void FolderStatusDelegate::paint(QPainter *painter, const QStyleOptionViewItem & pBRect.setHeight(barHeight); pBRect.setWidth(overallWidth - 2 * margin); -#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) - QStyleOptionProgressBarV2 pBarOpt; -#else QStyleOptionProgressBar pBarOpt; -#endif pBarOpt.state = option.state | QStyle::State_Horizontal; pBarOpt.minimum = 0; |