Commit 936cc950 authored by Denis Kuplyakov's avatar Denis Kuplyakov
Browse files

Implemented "TODO: if iconName == "" show no icon and get rid of

showIcon"
parent 86c25cc1
......@@ -55,15 +55,10 @@ Rectangle {
* The popup angles sharpness
*/
property alias sharpness: popup.radius
//TODO: if iconName == "" show no icon and get rid of showIcon
/**
* Name of the icon to show at popup
*/
property string iconName: "dialog-information"
/**
* Show icon on message or not
*/
property alias showIcon: icon.visible
/**
* Sets whether to hide this popup item on mouse click.
*
......@@ -165,6 +160,8 @@ Rectangle {
width: visible ? 32 : 0
height: width
visible: iconName != ""
source: "image://icon/" + iconName
}
......
Markdown is supported
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