projects
/
nextcloud-desktop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acd1511
)
FolderStatusDelegate: Fix compiler warning.
author
Olivier Goffart
<ogoffart@woboq.com>
Tue, 15 Nov 2016 09:14:50 +0000
(10:14 +0100)
committer
Olivier Goffart
<ogoffart@woboq.com>
Tue, 15 Nov 2016 09:16:41 +0000
(10:16 +0100)
QStyleOptionProgressBarV2 is deprecated in Qt5.
src/gui/folderstatusdelegate.cpp
patch
|
blob
|
history
diff --git
a/src/gui/folderstatusdelegate.cpp
b/src/gui/folderstatusdelegate.cpp
index c9b3b56ba51a5685822a864e66296919962c1559..628fc893ef547a7af2de0fed0a7ae0c3694fd29c 100644
(file)
--- a/
src/gui/folderstatusdelegate.cpp
+++ b/
src/gui/folderstatusdelegate.cpp
@@
-295,7
+295,11
@@
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;