diff options
author | Felix Weilbach <felix.weilbach@nextcloud.com> | 2021-09-09 12:18:22 +0300 |
---|---|---|
committer | Felix Weilbach <felix.weilbach@nextcloud.com> | 2021-09-09 12:18:22 +0300 |
commit | 8a8d488454405356b5d11f63bebff2d69be43b02 (patch) | |
tree | afa6c5a496561e6778227ece22a6c871622af926 /src/gui/ErrorBox.qml | |
parent | f34d66302942ede371bf7bc5d5e213b6c41ea5d8 (diff) |
Add dialog to set user status
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
Diffstat (limited to 'src/gui/ErrorBox.qml')
-rw-r--r-- | src/gui/ErrorBox.qml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/gui/ErrorBox.qml b/src/gui/ErrorBox.qml new file mode 100644 index 000000000..5b0d102ad --- /dev/null +++ b/src/gui/ErrorBox.qml @@ -0,0 +1,26 @@ +import QtQuick 2.15 + +Item { + id: errorBox + + property var text: "" + + implicitHeight: errorMessage.implicitHeight + 2 * 8 + + Rectangle { + anchors.fill: parent + color: "red" + border.color: "black" + } + + Text { + id: errorMessage + + anchors.fill: parent + anchors.margins: 8 + width: parent.width + color: "white" + wrapMode: Text.WordWrap + text: errorBox.text + } +} |