mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
Minor
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3536 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -412,12 +412,6 @@ bool ElementView::gestures() const {
|
|||||||
*/
|
*/
|
||||||
void ElementView::wheelEvent(QWheelEvent *e) {
|
void ElementView::wheelEvent(QWheelEvent *e) {
|
||||||
//Zoom and scrolling
|
//Zoom and scrolling
|
||||||
// if (e -> buttons() != Qt::MidButton) {
|
|
||||||
// if (!(e -> modifiers() & Qt::ControlModifier))
|
|
||||||
// e -> delta() > 0 ? zoomIn() : zoomOut();
|
|
||||||
// else
|
|
||||||
// QAbstractScrollArea::wheelEvent(e);
|
|
||||||
// }
|
|
||||||
if ( gestures() ) {
|
if ( gestures() ) {
|
||||||
if (e -> modifiers() & Qt::ControlModifier)
|
if (e -> modifiers() & Qt::ControlModifier)
|
||||||
e -> delta() > 0 ? zoomInSlowly() : zoomOutSlowly();
|
e -> delta() > 0 ? zoomInSlowly() : zoomOutSlowly();
|
||||||
|
|||||||
Reference in New Issue
Block a user