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
Education
Artikulate
Commits
a02aebc1
Commit
a02aebc1
authored
Nov 03, 2022
by
Andreas Cord-Landwehr
Browse files
Initialize variable
parent
3ac858ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/qmlcontrols/iconitem.cpp
View file @
a02aebc1
...
...
@@ -116,17 +116,17 @@ QSGNode *IconItem::updatePaintNode(QSGNode *node, QQuickItem::UpdatePaintNodeDat
mNode
=
new
ManagedTextureNode
;
}
QIcon
::
Mode
mode
;
QIcon
::
Mode
mode
{
QIcon
::
Normal
}
;
switch
(
m_state
)
{
case
DefaultState
:
mode
=
QIcon
::
Normal
;
break
;
case
ActiveState
:
mode
=
QIcon
::
Active
;
break
;
case
DisabledState
:
mode
=
QIcon
::
Disabled
;
break
;
case
DefaultState
:
mode
=
QIcon
::
Normal
;
break
;
case
ActiveState
:
mode
=
QIcon
::
Active
;
break
;
case
DisabledState
:
mode
=
QIcon
::
Disabled
;
break
;
}
QImage
img
;
...
...
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