summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@nokia.com>2010-03-10 09:31:50 (GMT)
committerPaul Olav Tvete <paul.tvete@nokia.com>2010-03-10 09:40:44 (GMT)
commit3ae7c0ca536c82659f401c3bed0370f765de8aee (patch)
tree13d121d0bc831c58ea4b35fb52534ac324d41578 /src
parentc74455ffd68c2707502250126e77abc59b855172 (diff)
downloadQt-3ae7c0ca536c82659f401c3bed0370f765de8aee.zip
Qt-3ae7c0ca536c82659f401c3bed0370f765de8aee.tar.gz
Qt-3ae7c0ca536c82659f401c3bed0370f765de8aee.tar.bz2
Don't show resize cursor for fixed-size windows
Task-number: QTBUG-8144 Reviewed-by: Jørgen Lind
Diffstat (limited to 'src')
-rw-r--r--src/gui/embedded/qwsmanager_qws.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/embedded/qwsmanager_qws.cpp b/src/gui/embedded/qwsmanager_qws.cpp
index d6ef148..79076c5 100644
--- a/src/gui/embedded/qwsmanager_qws.cpp
+++ b/src/gui/embedded/qwsmanager_qws.cpp
@@ -267,8 +267,10 @@ void QWSManager::mouseMoveEvent(QMouseEvent *e)
#ifndef QT_NO_CURSOR
- QWSDisplay *qwsd = QApplication::desktop()->qwsDisplay();
- qwsd->selectCursor(d->managed, regionToShape(d->cachedRegionAt()));
+ if (d->managed->minimumSize() != d->managed->maximumSize()) {
+ QWSDisplay *qwsd = QApplication::desktop()->qwsDisplay();
+ qwsd->selectCursor(d->managed, regionToShape(d->cachedRegionAt()));
+ }
#endif //QT_NO_CURSOR
if (d->activeRegion)