-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Qt: Hackfix settings icon stretching on Windows themes
- Loading branch information
1 parent
016b871
commit 0c204c3
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
.github/workflows/scripts/windows/qtbase-fix-icon-stretch.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/src/plugins/styles/modernwindows/qwindowsvistastyle.cpp b/src/plugins/styles/modernwindows/qwindowsvistastyle.cpp | ||
index 208420d7e8..26ef6f31ef 100644 | ||
--- a/src/plugins/styles/modernwindows/qwindowsvistastyle.cpp | ||
+++ b/src/plugins/styles/modernwindows/qwindowsvistastyle.cpp | ||
@@ -4232,8 +4232,6 @@ QRect QWindowsVistaStyle::subElementRect(SubElement element, const QStyleOption | ||
|
||
case SE_ItemViewItemDecoration: | ||
rect = QWindowsStyle::subElementRect(element, option, widget); | ||
- if (qstyleoption_cast<const QStyleOptionViewItem *>(option)) | ||
- rect.adjust(-2, 0, 2, 0); | ||
break; | ||
|
||
case SE_ItemViewItemFocusRect: |