summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2012-06-09 11:15:59 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-06-09 17:27:50 (GMT)
commite678ed12dbbae202e61d3afd34429a1e7ddc4b9d (patch)
treeaef75d2d508da5d5cc40f50aea520d5f56863a4d /src/gui/dialogs
parent6be4dc0e7c4b0218f450c49cda902890e0b49313 (diff)
downloadQt-e678ed12dbbae202e61d3afd34429a1e7ddc4b9d.zip
Qt-e678ed12dbbae202e61d3afd34429a1e7ddc4b9d.tar.gz
Qt-e678ed12dbbae202e61d3afd34429a1e7ddc4b9d.tar.bz2
QWizard/Win: Drag window on Vista with only left mouse button
The QWizard window should only be draggable using the left mouse button on Vista. Change-Id: Ie6ec118cbb48440c5dc6b84c4361119b1bbbd0cf Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> (cherry picked from commit dfe598716158ef7d5a800f69a65fc982a246a318)
Diffstat (limited to 'src/gui/dialogs')
-rw-r--r--src/gui/dialogs/qwizard_win.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/dialogs/qwizard_win.cpp b/src/gui/dialogs/qwizard_win.cpp
index f9bfca8..2e69437 100644
--- a/src/gui/dialogs/qwizard_win.cpp
+++ b/src/gui/dialogs/qwizard_win.cpp
@@ -531,7 +531,7 @@ void QVistaHelper::mousePressEvent(QMouseEvent *event)
{
change = noChange;
- if (wizard->windowState() & Qt::WindowMaximized) {
+ if (event->button() != Qt::LeftButton || wizard->windowState() & Qt::WindowMaximized) {
event->ignore();
return;
}