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++
Qt6: Port away from QDesktopWidget
Halla Remptbf551a58e120
diff --git a/libs/widgets/KoSliderCombo.cpp b/libs/widgets/KoSliderCombo.cppindex f17731a2d4..839617ba88 100644--- a/libs/widgets/KoSliderCombo.cpp+++ b/libs/widgets/KoSliderCombo.cpp@@ -119,7 +119,8 @@ void KoSliderCombo::KoSliderComboPrivate::showPopup()QRect popupRect(thePublic->mapToGlobal(QPoint(arrowPos - hdlPos - slider->x(), thePublic->size().height())), popSize);// Make sure the popup is not drawn outside the screen area- QRect screenRect = QApplication::desktop()->availableGeometry(thePublic);+ QRect screenRect = thePublic->screen()->availableGeometry();+if (popupRect.right() > screenRect.right())popupRect.translate(screenRect.right() - popupRect.right(), 0);if (popupRect.left() < screenRect.left())diff --git a/libs/widgets/KoSliderCombo_p.h b/libs/widgets/KoSliderCombo_p.hindex f5fca7da8d..1b336acba0 100644--- a/libs/widgets/KoSliderCombo_p.h+++ b/libs/widgets/KoSliderCombo_p.h@@ -22,7 +22,6 @@#include <QMenu>#include <QMouseEvent>#include <QDoubleSpinBox>-#include <QDesktopWidget>#include <klocalizedstring.h>#include <WidgetsDebug.h>