Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Fix compilation with Qt5

Dmitry Kazakove8631b83ba9d
diff --git a/libs/ui/kis_popup_palette.cpp b/libs/ui/kis_popup_palette.cpp
index 6c810fac9d..f3abffca39 100644
--- a/libs/ui/kis_popup_palette.cpp
+++ b/libs/ui/kis_popup_palette.cpp
@@ -1145,7 +1145,7 @@ void KisPopupPalette::tabletEvent(QTabletEvent *event)
if (this->windowHandle()) {
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
- const QPointF localPos = event->localPos();
+ const QPointF localPos = event->posF();
#else
const QPointF localPos = event->position();
#endif