make client Qt6 ready. Still need proper Makefile/CMake support...
This commit is contained in:
1 parent
acb2dc0e10
commit
4783712225
1 file changed
+4
@@ -1282,7 +1282,11 @@ void Plot::wheelEvent(QWheelEvent *event) {
|
||||
}
|
||||
|
||||
void Plot::mouseMoveEvent(QMouseEvent *event) {
|
||||
#if QT_VERSION >= 0x060000
|
||||
int x = (int)event->position().x();
|
||||
#else
|
||||
int x = event->x();
|
||||
#endif
|
||||
|
||||
//Only run the marker place code if a mouse button is pressed
|
||||
if ((event->buttons() & Qt::LeftButton) || (event->buttons() & Qt::RightButton)) {
|
||||
|
||||
Reference in new issue
Block a user