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:
authorOlivier Goffart <ogoffart@woboq.com>2015-07-08 20:48:57 +0300
committerOlivier Goffart <ogoffart@woboq.com>2015-07-08 20:48:57 +0300
commit08fcf650eba929c337acd135dd2c0686d4572974 (patch)
tree8eae20bdba1682dad95f71bd03ce1f59af0a7639 /src/gui/folderstatusdelegate.cpp
parente28fab0c616bd833c555d56d529a8757f22aab15 (diff)
Fix Qt4 build
Diffstat (limited to 'src/gui/folderstatusdelegate.cpp')
-rw-r--r--src/gui/folderstatusdelegate.cpp6
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;
}