Remove quotes from id: properties
As suggested in the Qt Quick coding style
This commit is contained in:
@@ -13,12 +13,12 @@ Item {
|
||||
typeof(name) == "string" ? name :
|
||||
(name.value ? name.value : "?")
|
||||
|
||||
id: "root"
|
||||
id: root
|
||||
width: dimmension
|
||||
height: invisible ? 1 : dimmension
|
||||
|
||||
Rectangle {
|
||||
id: "letterRectangle"
|
||||
id: letterRectangle
|
||||
anchors.fill: parent
|
||||
visible: ! invisible && imageSource === null
|
||||
color: resolvedName === "?" ?
|
||||
@@ -34,7 +34,7 @@ Item {
|
||||
}
|
||||
|
||||
Image {
|
||||
id: "avatarImage"
|
||||
id: avatarImage
|
||||
anchors.fill: parent
|
||||
visible: ! invisible && imageSource !== null
|
||||
|
||||
|
@@ -6,7 +6,7 @@ ToolButton {
|
||||
property string tooltip: ""
|
||||
property string iconName: ""
|
||||
|
||||
id: "button"
|
||||
id: button
|
||||
display: ToolButton.IconOnly
|
||||
icon.source: "../../icons/" + iconName + ".svg"
|
||||
background: Rectangle { color: "transparent" }
|
||||
@@ -20,7 +20,7 @@ ToolButton {
|
||||
visible: text ? toolTipZone.containsMouse : false
|
||||
}
|
||||
MouseArea {
|
||||
id: "toolTipZone"
|
||||
id: toolTipZone
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
acceptedButtons: Qt.NoButton // Make button receive clicks normally
|
||||
|
@@ -2,11 +2,11 @@ import QtQuick 2.7
|
||||
import QtQuick.Controls 2.0
|
||||
|
||||
HLabel {
|
||||
id: "label"
|
||||
id: label
|
||||
textFormat: Text.RichText
|
||||
|
||||
MouseArea {
|
||||
id: "mouseArea"
|
||||
id: mouseArea
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
|
||||
|
@@ -4,7 +4,7 @@ import QtQuick.Layouts 1.4
|
||||
|
||||
Avatar {
|
||||
Image {
|
||||
id: "status"
|
||||
id: status
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
source: "../../icons/status.svg"
|
||||
|
Reference in New Issue
Block a user