Commit a02aebc1 authored by Andreas Cord-Landwehr's avatar Andreas Cord-Landwehr
Browse files

Initialize variable

parent 3ac858ed
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment