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
Plasma
Plasma Workspace
Commits
7ce91f6a
Commit
7ce91f6a
authored
Nov 04, 2020
by
David Redondo
🏎
Browse files
Do not use deprecated KIconLoader functions
parent
4d7b71d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
kcms/kfontinst/kcmfontinst/DuplicatesDialog.cpp
View file @
7ce91f6a
...
...
@@ -168,7 +168,7 @@ void CDuplicatesDialog::scanFinished()
tt
++
;
}
top
->
setData
(
COL_FILE
,
Qt
::
DecorationRole
,
Q
Variant
(
SmallIcon
(
t1
>
tt
?
"application-x-font-type1"
:
"application-x-font-ttf"
))
)
;
Q
Icon
::
fromTheme
(
t1
>
tt
?
"application-x-font-type1"
:
"application-x-font-ttf"
));
top
->
setFont
(
COL_FILE
,
boldFont
);
}
...
...
@@ -395,7 +395,7 @@ void CFontFileList::fileDuplicates(const QString &folder, const QSet<TFile> &fil
inline
void
markItem
(
QTreeWidgetItem
*
item
)
{
item
->
setData
(
COL_TRASH
,
Qt
::
DecorationRole
,
Q
Variant
(
SmallIcon
(
"list-remove"
))
)
;
item
->
setData
(
COL_TRASH
,
Qt
::
DecorationRole
,
Q
Icon
::
fromTheme
(
"list-remove"
));
}
inline
void
unmarkItem
(
QTreeWidgetItem
*
item
)
...
...
@@ -418,7 +418,7 @@ CFontFileListView::CFontFileListView(QWidget *parent)
headers
.
append
(
i18n
(
"Date"
));
headers
.
append
(
i18n
(
"Links To"
));
setHeaderLabels
(
headers
);
headerItem
()
->
setData
(
COL_TRASH
,
Qt
::
DecorationRole
,
Q
Variant
(
SmallIcon
(
"user-trash"
))
)
;
headerItem
()
->
setData
(
COL_TRASH
,
Qt
::
DecorationRole
,
Q
Icon
::
fromTheme
(
"user-trash"
));
setSizePolicy
(
QSizePolicy
::
MinimumExpanding
,
QSizePolicy
::
MinimumExpanding
);
setSelectionMode
(
ExtendedSelection
);
sortByColumn
(
COL_FILE
,
Qt
::
AscendingOrder
);
...
...
kcms/kfontinst/kcmfontinst/FontList.cpp
View file @
7ce91f6a
...
...
@@ -1946,7 +1946,7 @@ void CFontListView::startDrag(Qt::DropActions supportedActions)
}
QPoint
hotspot
;
QPixmap
pix
(
DesktopIcon
(
icon
,
KIconLoader
::
SizeMedium
)
)
;
QPixmap
pix
=
QIcon
::
fromTheme
(
icon
).
pixmap
(
KIconLoader
::
SizeMedium
);
hotspot
.
setX
(
0
);
// pix.width()/2);
hotspot
.
setY
(
0
);
// pix.height()/2);
...
...
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