Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
System
Dolphin
Commits
5360bc3a
Commit
5360bc3a
authored
Aug 30, 2020
by
Alexander Lohnau
💬
Browse files
Merge branch 'release/20.08'
parents
7c2559dd
004734e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/kitemviews/kstandarditemlistwidget.cpp
View file @
5360bc3a
...
...
@@ -1474,7 +1474,13 @@ QPixmap KStandardItemListWidget::pixmapForIcon(const QString& name, const QStrin
QPixmap
pixmap
;
if
(
!
QPixmapCache
::
find
(
key
,
&
pixmap
))
{
const
QIcon
icon
=
QIcon
::
fromTheme
(
name
,
fallbackIcon
);
QIcon
icon
=
QIcon
::
fromTheme
(
name
);
if
(
icon
.
isNull
())
{
icon
=
QIcon
(
name
);
}
if
(
icon
.
isNull
())
{
icon
=
fallbackIcon
;
}
pixmap
=
icon
.
pixmap
(
size
/
qApp
->
devicePixelRatio
(),
size
/
qApp
->
devicePixelRatio
(),
mode
);
if
(
pixmap
.
width
()
!=
size
||
pixmap
.
height
()
!=
size
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment