diff options
Diffstat (limited to 'examples/graphicsview/padnavigator/roundrectitem.cpp')
-rw-r--r-- | examples/graphicsview/padnavigator/roundrectitem.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/examples/graphicsview/padnavigator/roundrectitem.cpp b/examples/graphicsview/padnavigator/roundrectitem.cpp index ec91966..73d6d33 100644 --- a/examples/graphicsview/padnavigator/roundrectitem.cpp +++ b/examples/graphicsview/padnavigator/roundrectitem.cpp @@ -115,10 +115,9 @@ void RoundRectItem::keyPressEvent(QKeyEvent *event) return; } - if (!proxyWidget) { - setXScale(qreal(.9)); - setYScale(qreal(.9)); - } + if (!proxyWidget) + setScale(qreal(.9), qreal(.9)); + emit activated(); } @@ -129,8 +128,6 @@ void RoundRectItem::keyReleaseEvent(QKeyEvent *event) return; } - if (!proxyWidget) { - setXScale(1); - setYScale(1); - } + if (!proxyWidget) + setScale(1, 1); } |