summaryrefslogtreecommitdiffstats
path: root/source/kde/kde/patch/krusader/e5a71586952049ac92fab6f05ed1ab05c1e733c4.patch
blob: b56bc567a2ce519c7323ce2e48049dbf2cf46d4f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
From 2bd5cd0db362db944bdea639bf0be33f6f439268 Mon Sep 17 00:00:00 2001
From: Evgeny Brazgin <xapienz@phystech.edu>
Date: Sun, 5 Mar 2023 22:48:27 -0800
Subject: [PATCH 1/2] Add workaround for icon size in HiDPI environment

---
 app/Panel/PanelView/listmodel.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/Panel/PanelView/listmodel.cpp b/app/Panel/PanelView/listmodel.cpp
index d6ad6c5f8..7731e8951 100644
--- a/app/Panel/PanelView/listmodel.cpp
+++ b/app/Panel/PanelView/listmodel.cpp
@@ -177,7 +177,7 @@ QVariant ListModel::data(const QModelIndex& index, int role) const
             if (properties()->displayIcons) {
                 if (_justForSizeHint)
                     return QPixmap(_view->fileIconSize(), _view->fileIconSize());
-                return _view->getIcon(fileitem);
+                return QIcon(_view->getIcon(fileitem));
             }
             break;
         }
-- 
GitLab


From f447f96f14fdb4f86ccc1286692accbec535ecb0 Mon Sep 17 00:00:00 2001
From: Evgeny Brazgin <xapienz@phystech.edu>
Date: Sun, 12 Mar 2023 21:35:27 -0700
Subject: [PATCH 2/2] Don't set QStyle::State_None for brief view

---
 app/Panel/PanelView/krinterbriefview.cpp | 1 -
 1 file changed, 1 deletion(-)

diff --git a/app/Panel/PanelView/krinterbriefview.cpp b/app/Panel/PanelView/krinterbriefview.cpp
index 69496f890..4042c163c 100644
--- a/app/Panel/PanelView/krinterbriefview.cpp
+++ b/app/Panel/PanelView/krinterbriefview.cpp
@@ -401,7 +401,6 @@ void KrInterBriefView::paintEvent(QPaintEvent *e)
     intersectionSet(area, intersectVector);
 
     foreach(const QModelIndex &mndx, intersectVector) {
-        option.state = QStyle::State_None;
         option.rect = visualRect(mndx);
         painter.save();
 
-- 
GitLab