Fix qml warnings in TypingPane
This commit is contained in:
@@ -4,11 +4,12 @@
|
|||||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
pragma ComponentBehavior: Bound
|
||||||
|
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
import QtQuick.Controls as QQC2
|
import QtQuick.Controls as QQC2
|
||||||
import org.kde.kirigami as Kirigami
|
import org.kde.kirigami as Kirigami
|
||||||
import org.kde.neochat
|
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
id: root
|
id: root
|
||||||
@@ -41,6 +42,9 @@ Loader {
|
|||||||
model: 3
|
model: 3
|
||||||
delegate: Rectangle {
|
delegate: Rectangle {
|
||||||
id: dot
|
id: dot
|
||||||
|
|
||||||
|
required property int index
|
||||||
|
|
||||||
color: Kirigami.Theme.textColor
|
color: Kirigami.Theme.textColor
|
||||||
radius: height / 2
|
radius: height / 2
|
||||||
implicitWidth: fontMetrics.xHeight
|
implicitWidth: fontMetrics.xHeight
|
||||||
@@ -55,7 +59,7 @@ Loader {
|
|||||||
SequentialAnimation {
|
SequentialAnimation {
|
||||||
running: true
|
running: true
|
||||||
PauseAnimation {
|
PauseAnimation {
|
||||||
duration: dotRow.duration * index / 2
|
duration: dotRow.duration * dot.index / 2
|
||||||
}
|
}
|
||||||
SequentialAnimation {
|
SequentialAnimation {
|
||||||
loops: Animation.Infinite
|
loops: Animation.Infinite
|
||||||
@@ -109,9 +113,9 @@ Loader {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
leftInset: !mirrored ? 0 : -background.radius
|
leftInset: !mirrored ? 0 : -(background as Rectangle).radius
|
||||||
rightInset: mirrored ? 0 : -background.radius
|
rightInset: mirrored ? 0 : -(background as Rectangle).radius
|
||||||
bottomInset: -background.radius
|
bottomInset: -(background as Rectangle).radius
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
radius: Kirigami.Units.cornerRadius
|
radius: Kirigami.Units.cornerRadius
|
||||||
color: Kirigami.Theme.backgroundColor
|
color: Kirigami.Theme.backgroundColor
|
||||||
|
|||||||
Reference in New Issue
Block a user