Subversion Repositories tpanel

Rev

Rev 320 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 320 Rev 361
Line 1259... Line 1259...
1259
    x = event->position().x();
1259
    x = event->position().x();
1260
    y = event->position().y();
1260
    y = event->position().y();
1261
#endif
1261
#endif
1262
    mLastMousePress.setX(x);
1262
    mLastMousePress.setX(x);
1263
    mLastMousePress.setY(y);
1263
    mLastMousePress.setY(y);
1264
 
-
 
-
 
1264
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
1265
    MSG_DEBUG("Mouse press event at " << x << " x " << y << " // " << event->globalX() << " x " << event->globalY());
1265
    MSG_DEBUG("Mouse press event at " << x << " x " << y << " // " << event->globalX() << " x " << event->globalY());
-
 
1266
#else
-
 
1267
    MSG_DEBUG("Mouse press event at " << x << " x " << y << " // " << event->globalPosition().x() << " x " << event->globalPosition().y());
-
 
1268
#endif
1266
    /*
1269
    /*
1267
        * Here we're starting a timer with 200 ms. If after this time the
1270
        * Here we're starting a timer with 200 ms. If after this time the
1268
        * mouse button is still pressed and no scroll event was detected,
1271
        * mouse button is still pressed and no scroll event was detected,
1269
        * then we've a real click.
1272
        * then we've a real click.
1270
        * In case of a real click the method mouseTimerEvent() will call a
1273
        * In case of a real click the method mouseTimerEvent() will call a