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

@@ -4,15 +4,15 @@ import QtQuick.Layouts 1.4
import "../base" as Base
ColumnLayout {
id: "accountDelegate"
id: accountDelegate
spacing: 0
width: parent.width
RowLayout {
id: "row"
id: row
spacing: 0
Base.Avatar { id: "avatar"; name: displayName; dimmension: 36 }
Base.Avatar { id: avatar; name: displayName; dimmension: 36 }
ColumnLayout {
Layout.fillWidth: true
@@ -20,7 +20,7 @@ ColumnLayout {
spacing: 0
Base.HLabel {
id: "accountLabel"
id: accountLabel
text: displayName.value || userId
elide: Text.ElideRight
maximumLineCount: 1
@@ -30,7 +30,7 @@ ColumnLayout {
}
TextField {
id: "statusEdit"
id: statusEdit
text: statusMessage || ""
placeholderText: qsTr("Set status message")
background: null
@@ -51,7 +51,7 @@ ColumnLayout {
}
Base.HToolButton {
id: "toggleExpand"
id: toggleExpand
iconName: roomList.visible ? "up" : "down"
Layout.maximumWidth: 28
Layout.minimumHeight: row.height
@@ -64,7 +64,7 @@ ColumnLayout {
}
RoomList {
id: "roomList"
id: roomList
visible: true
interactive: false // no scrolling
forUserId: userId

View File

@@ -3,7 +3,7 @@ import QtQuick.Controls 2.2
import QtQuick.Layouts 1.4
ListView {
id: "accountList"
id: accountList
spacing: 8
model: Backend.models.accounts
delegate: AccountDelegate {}

View File

@@ -4,7 +4,7 @@ import QtQuick.Layouts 1.4
import "../base" as Base
RowLayout {
id: "toolBar"
id: toolBar
Layout.fillWidth: true
Layout.maximumHeight: 32
spacing: 0

View File

@@ -9,7 +9,7 @@ Base.HToolButton {
Layout.minimumWidth * (toolBar.children.length - 2)
}
id: "button"
id: button
visible: toolBarIsBig()
Layout.fillHeight: true
Layout.fillWidth: true

View File

@@ -5,7 +5,7 @@ import "../base" as Base
import "utils.js" as SidePaneJS
MouseArea {
id: "root"
id: root
width: roomList.width
height: roomList.childrenHeight

View File

@@ -14,7 +14,7 @@ ListView {
spacing * (model.count - 1)
}
id: "roomList"
id: roomList
spacing: 8
model: Backend.models.rooms.get(forUserId)
delegate: RoomDelegate {}