From ecd3675aaa55b8224f1fa81b031471d834a18fad Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Mon, 20 Nov 2023 14:16:18 +0100 Subject: views: Use scene devicePixelRatio rather than qApp When possible, use the devicePixelRatio from the scene which on Wayland unlike the QApplication will properly support fractional scaling. A KItemViewsUtils class is introduced that can be reused elsewhere. --- src/views/dolphinfileitemlistwidget.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/views/dolphinfileitemlistwidget.h') diff --git a/src/views/dolphinfileitemlistwidget.h b/src/views/dolphinfileitemlistwidget.h index ac98666c8..92fc66fcc 100644 --- a/src/views/dolphinfileitemlistwidget.h +++ b/src/views/dolphinfileitemlistwidget.h @@ -29,7 +29,7 @@ protected: void refreshCache() override; private: - static QPixmap overlayForState(KVersionControlPlugin::ItemVersion version, int size); + QPixmap overlayForState(KVersionControlPlugin::ItemVersion version, int size) const; }; #endif -- cgit v1.3.1