don't set the cursor if alt is held

BUG:228959

svn path=/trunk/KDE/kdelibs/; revision=1098440
This commit is contained in:
Aaron J. Seigo 2010-03-03 18:12:33 +00:00
parent 8c2dc5036a
commit 3dff1d2d99

View File

@ -348,7 +348,9 @@ void Dialog::paintEvent(QPaintEvent *e)
void Dialog::mouseMoveEvent(QMouseEvent *event)
{
if (d->resizeAreas[Dialog::NorthEast].contains(event->pos())) {
if (event->modifiers() == Qt::AltModifier) {
unsetCursor();
} else if (d->resizeAreas[Dialog::NorthEast].contains(event->pos())) {
setCursor(Qt::SizeBDiagCursor);
} else if (d->resizeAreas[Dialog::NorthWest].contains(event->pos())) {
setCursor(Qt::SizeFDiagCursor);