blob: 40c12d062fb01562fc1745dc9f3860fb8cae6870 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtGraphicalEffects 1.0
import "../themes/themes.js" as Theme
Item {
id: errorBox
width: parent.width
property var errorText: ""
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: connectionImage.bottom
// TODO alert icon, by type
Rectangle {
id: labelWrapper
color: "transparent"
height: label.paintedHeight + Theme.windowMargin
width: parent.width
anchors.verticalCenter: parent.verticalCenter
Label {
id: label
width: labelWrapper.width - Theme.windowMargin
anchors.centerIn: parent
text: errorBox.errorText //+ " " + "<b><u>" + alertLinkText + "</b></u>"
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.Wrap
font.pixelSize: Theme.fontSizeSmall
}
}
}
|