Skip to content

Commit 5ed8b15

Browse files
committed
Add CustomMessageDialog
1 parent 3ebf25d commit 5ed8b15

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

src/uicomponents/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ set(MODULE_QML_FILES
1010
CustomMenuItem.qml
1111
CustomMenuSeparator.qml
1212
CustomDialog.qml
13+
CustomMessageDialog.qml
1314
internal/CustomDialogButtonBox.qml
1415
)
1516
set(MODULE_SRC
+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// SPDX-License-Identifier: GPL-3.0-or-later
2+
3+
import QtQuick
4+
import QtQuick.Layouts
5+
import QtQuick.Controls
6+
7+
CustomDialog {
8+
id: root
9+
property string text
10+
property string informativeText
11+
standardButtons: Dialog.Ok
12+
13+
contentItem: RowLayout {
14+
spacing: 25
15+
16+
// TODO: Add icon
17+
18+
ColumnLayout {
19+
Label {
20+
text: root.text
21+
font.pointSize: 14
22+
font.bold: true
23+
}
24+
25+
Label {
26+
text: root.informativeText
27+
}
28+
}
29+
}
30+
}

0 commit comments

Comments
 (0)