Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut K. C. Tessarek <tessarek@evermeet.cx>2017-09-13 07:26:56 +0300
committerOlivier Goffart <olivier@woboq.com>2017-09-15 08:11:05 +0300
commit709aa27031f07ffbc21e0478ae0da220885a4cf3 (patch)
tree9c50f0ad23de8f9a1b02131dcc5cd02e20f179ae /src/gui/folderstatusdelegate.cpp
parent5b01d634915dbdab1d79e17f6af043a9031bd283 (diff)
remove qt4 code
Diffstat (limited to 'src/gui/folderstatusdelegate.cpp')
-rw-r--r--src/gui/folderstatusdelegate.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/gui/folderstatusdelegate.cpp b/src/gui/folderstatusdelegate.cpp
index cf5bc171d..be3f7d9d9 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;