Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Games
KSudoku
Commits
b1aba4ff
Commit
b1aba4ff
authored
Mar 12, 2017
by
Luigi Toscano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port from KIcon to QIcon
parent
753365bb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
src/gui/gamevariants.cpp
src/gui/gamevariants.cpp
+3
-4
No files found.
src/gui/gamevariants.cpp
View file @
b1aba4ff
...
...
@@ -26,8 +26,7 @@
#include <KMessageBox>
#include <KLocalizedString>
#include <QPainter>
#include <KIconLoader>
#include <KIcon>
#include <QIcon>
#include <QEvent>
...
...
@@ -184,13 +183,13 @@ void GameVariantDelegate::paint(QPainter* painter, const QStyleOptionViewItem& o
// Show icon
QPixmap
iconPixmap
=
K
Icon
(
icon
(
index
),
KIconLoader
::
global
(
)).
pixmap
(
m_iconWidth
,
m_iconHeight
);
QPixmap
iconPixmap
=
Q
Icon
::
fromTheme
(
icon
(
index
)).
pixmap
(
m_iconWidth
,
m_iconHeight
);
painter
->
drawPixmap
(
contentRect
.
left
(),
(
contentRect
.
height
()
-
iconPixmap
.
height
())
/
2
+
contentRect
.
top
(),
iconPixmap
);
contentRect
.
adjust
(
iconPixmap
.
width
()
+
m_separatorPixels
*
2
,
0
,
0
,
0
);
// // Show configuration icon
// if(configurable(index)) {
// QPixmap configPixmap =
K
Icon( QLatin1String( "configure" )
, KIconLoader::global()
).pixmap(32, 32);
// QPixmap configPixmap =
Q
Icon
::fromTheme
( QLatin1String( "configure" )
).pixmap(32, 32);
// painter->drawPixmap(contentRect.right() - configPixmap.width(), (contentRect.height() - configPixmap.height()) / 2 + contentRect.top(), configPixmap);
// contentRect.adjust(0, 0, -(configPixmap.width() + separatorPixels), 0);
// }
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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