summaryrefslogtreecommitdiff
path: root/src/gui/widgets/scrollarea.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-20 22:47:09 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-20 22:47:09 +0300
commit219ca3560cf16a3c303b9d88756448a9a2fb19a5 (patch)
treebf726003c48ba5ca03c86760eea97922790165c6 /src/gui/widgets/scrollarea.cpp
parenta2f54815d3310c3b5dab0f06b1b06510c8aa0620 (diff)
downloadmv-219ca3560cf16a3c303b9d88756448a9a2fb19a5.tar.gz
mv-219ca3560cf16a3c303b9d88756448a9a2fb19a5.tar.bz2
mv-219ca3560cf16a3c303b9d88756448a9a2fb19a5.tar.xz
mv-219ca3560cf16a3c303b9d88756448a9a2fb19a5.zip
Set scrollarea unselectable only if no scroll bars showed.
Diffstat (limited to 'src/gui/widgets/scrollarea.cpp')
-rw-r--r--src/gui/widgets/scrollarea.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/widgets/scrollarea.cpp b/src/gui/widgets/scrollarea.cpp
index 18b99527d..db44a8a93 100644
--- a/src/gui/widgets/scrollarea.cpp
+++ b/src/gui/widgets/scrollarea.cpp
@@ -1446,3 +1446,10 @@ void ScrollArea::checkPolicies()
break;
}
}
+
+bool ScrollArea::isSelectable() const
+{
+ if (mVBarVisible || mHBarVisible)
+ return true;
+ return Widget::isSelectable();
+}