Gui: port to Qt6

This commit is contained in:
wmayer
2024-02-20 14:42:37 +01:00
committed by wwmayer
parent 1a3def3b9b
commit 3dfe91a971

View File

@@ -866,7 +866,11 @@ bool PropertyEditor::eventFilter(QObject* object, QEvent* event) {
else if (mouse_event->type() == QEvent::MouseButtonPress && mouse_event->button() == Qt::LeftButton && !dragInProgress) {
if (indexResizable(mouse_event->pos()).isValid()) {
dragInProgress = true;
#if QT_VERSION < QT_VERSION_CHECK(6,0,0)
dragPreviousPos = mouse_event->x();
#else
dragPreviousPos = mouse_event->position().toPoint().x();
#endif
dragSection = indexResizable(mouse_event->pos()).column();
return true;
}