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>
This commit is contained in:
Jonathan Liu 2012-06-08 22:35:00 +10:00 committed by Qt by Nokia
parent 1fb176eaf4
commit dfe5987161

View File

@ -545,7 +545,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;
}