summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2015-02-08 13:28:07 +0800
committerIru Cai <mytbk920423@gmail.com>2015-02-08 13:28:07 +0800
commite0ab5110dc0e97a7cacfd5a856c472f0ec1aff1e (patch)
treeccd8cad58c4a8836427b251fed0b5d5b35fe010c
parent121a986be20c0d18acb73d6f296e0a31e62828d0 (diff)
downloadfqterm-e0ab5110dc0e97a7cacfd5a856c472f0ec1aff1e.tar.xz
imageviewer.cpp: Qt5:docheck -> Qt4: check
-rw-r--r--src/ui/imageviewer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/imageviewer.cpp b/src/ui/imageviewer.cpp
index 79677c9..37cb917 100644
--- a/src/ui/imageviewer.cpp
+++ b/src/ui/imageviewer.cpp
@@ -1711,7 +1711,11 @@ namespace FQTerm {
if (value.isValid()) {
checkState = static_cast<Qt::CheckState>(value.toInt());
+#if QT_VERSION >= 0x050000
checkRect = doCheck(opt, opt.rect, value);
+#else
+ checkRect = check(opt, opt.rect, value);
+#endif
}
// do the layout