don't set the cursor if alt is held
BUG:228959 svn path=/trunk/KDE/kdelibs/; revision=1098440
This commit is contained in:
parent
8c2dc5036a
commit
3dff1d2d99
@ -348,7 +348,9 @@ void Dialog::paintEvent(QPaintEvent *e)
|
|||||||
|
|
||||||
void Dialog::mouseMoveEvent(QMouseEvent *event)
|
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);
|
setCursor(Qt::SizeBDiagCursor);
|
||||||
} else if (d->resizeAreas[Dialog::NorthWest].contains(event->pos())) {
|
} else if (d->resizeAreas[Dialog::NorthWest].contains(event->pos())) {
|
||||||
setCursor(Qt::SizeFDiagCursor);
|
setCursor(Qt::SizeFDiagCursor);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user