-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ui-tests): do not crash on inline components
- crashes only on old Qt versions -> have to not use inline components anywhere in the chain
- Loading branch information
Showing
7 changed files
with
81 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
ui/StatusQ/src/StatusQ/Components/private/LoadingDotItem.qml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import QtQuick 2.15 | ||
|
||
import StatusQ.Core.Theme 0.1 | ||
|
||
Rectangle { | ||
id: root | ||
|
||
property double dotsDiameter | ||
property int duration | ||
property double maxOpacity | ||
property color dotsColor | ||
|
||
width: root.dotsDiameter | ||
height: width | ||
radius: width / 2 | ||
color: root.dotsColor | ||
|
||
SequentialAnimation { | ||
id: blinkingAnimation | ||
|
||
loops: Animation.Infinite | ||
running: visible | ||
NumberAnimation { target: root; property: "opacity"; to: 0; duration: root.duration } | ||
NumberAnimation { target: root; property: "opacity"; to: root.maxOpacity; duration: root.duration } | ||
} | ||
|
||
Component.onCompleted: blinkingAnimation.start() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import QtQuick 2.15 | ||
import QtQuick.Layouts 1.15 | ||
|
||
import StatusQ.Core 0.1 | ||
import StatusQ.Core.Theme 0.1 | ||
|
||
RowLayout { | ||
property string text | ||
property bool checked | ||
|
||
spacing: 6 | ||
StatusIcon { | ||
Layout.preferredWidth: 20 | ||
Layout.preferredHeight: 20 | ||
icon: parent.checked ? "check-circle" : "close-circle" | ||
color: parent.checked ? Theme.palette.successColor1 : Theme.palette.dangerColor1 | ||
} | ||
StatusBaseText { | ||
Layout.fillWidth: true | ||
text: parent.text | ||
font.pixelSize: Theme.additionalTextSize | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import QtQuick 2.15 | ||
|
||
import StatusQ.Core 0.1 | ||
import StatusQ.Core.Theme 0.1 | ||
|
||
StatusBaseText { | ||
property bool checked | ||
property string caption | ||
|
||
text: "%1 %2".arg(checked ? "✓" : "+").arg(caption) | ||
font.pixelSize: Theme.tertiaryTextFontSize | ||
color: checked ? Theme.palette.successColor1 : Theme.palette.baseColor1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters