Remove quotes from id: properties

As suggested in the Qt Quick coding style
This commit is contained in:
miruka
2019-04-20 17:45:51 -04:00
parent 8f35e60801
commit c866ac87a9
16 changed files with 33 additions and 33 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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"