Remove quotes from id: properties
As suggested in the Qt Quick coding style
This commit is contained in:
@@ -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
|
||||
|
@@ -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 {}
|
||||
|
@@ -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
|
||||
|
@@ -9,7 +9,7 @@ Base.HToolButton {
|
||||
Layout.minimumWidth * (toolBar.children.length - 2)
|
||||
}
|
||||
|
||||
id: "button"
|
||||
id: button
|
||||
visible: toolBarIsBig()
|
||||
Layout.fillHeight: true
|
||||
Layout.fillWidth: true
|
||||
|
@@ -5,7 +5,7 @@ import "../base" as Base
|
||||
import "utils.js" as SidePaneJS
|
||||
|
||||
MouseArea {
|
||||
id: "root"
|
||||
id: root
|
||||
width: roomList.width
|
||||
height: roomList.childrenHeight
|
||||
|
||||
|
@@ -14,7 +14,7 @@ ListView {
|
||||
spacing * (model.count - 1)
|
||||
}
|
||||
|
||||
id: "roomList"
|
||||
id: roomList
|
||||
spacing: 8
|
||||
model: Backend.models.rooms.get(forUserId)
|
||||
delegate: RoomDelegate {}
|
||||
|
Reference in New Issue
Block a user