Fix qml warnings
This commit is contained in:
@@ -61,6 +61,10 @@ Item {
|
|||||||
QQC2.Pane {
|
QQC2.Pane {
|
||||||
id: connectionPane
|
id: connectionPane
|
||||||
padding: fontMetrics.lineSpacing * 0.25
|
padding: fontMetrics.lineSpacing * 0.25
|
||||||
|
FontMetrics {
|
||||||
|
id: fontMetrics
|
||||||
|
font: networkLabel.font
|
||||||
|
}
|
||||||
spacing: 0
|
spacing: 0
|
||||||
Kirigami.Theme.colorSet: Kirigami.Theme.View
|
Kirigami.Theme.colorSet: Kirigami.Theme.View
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
@@ -69,6 +73,7 @@ Item {
|
|||||||
visible: !Controller.isOnline
|
visible: !Controller.isOnline
|
||||||
width: parent.width
|
width: parent.width
|
||||||
QQC2.Label {
|
QQC2.Label {
|
||||||
|
id: networkLabel
|
||||||
text: i18n("NeoChat is offline. Please check your network connection.")
|
text: i18n("NeoChat is offline. Please check your network connection.")
|
||||||
}
|
}
|
||||||
anchors.bottom: emojiPickerLoaderSeparator.top
|
anchors.bottom: emojiPickerLoaderSeparator.top
|
||||||
|
|||||||
@@ -143,9 +143,9 @@ Kirigami.ScrollablePage {
|
|||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: hoverActions
|
id: hoverActions
|
||||||
property var event
|
property var event: null
|
||||||
property bool showEdit: event && (event.author.id === Controller.activeConnection.localUserId && (event.eventType === "emote" || event.eventType === "message"))
|
property bool showEdit: event && (event.author.id === Controller.activeConnection.localUserId && (event.eventType === "emote" || event.eventType === "message"))
|
||||||
property var bubble
|
property var bubble: null
|
||||||
property var hovered: bubble && bubble.hovered
|
property var hovered: bubble && bubble.hovered
|
||||||
property var visibleDelayed: (hovered || hoverHandler.hovered) && !Kirigami.Settings.isMobile
|
property var visibleDelayed: (hovered || hoverHandler.hovered) && !Kirigami.Settings.isMobile
|
||||||
onVisibleDelayedChanged: if (visibleDelayed) {
|
onVisibleDelayedChanged: if (visibleDelayed) {
|
||||||
|
|||||||
Reference in New Issue
Block a user