aboutsummaryrefslogtreecommitdiff
path: root/src/scenes/add_server_wizard/Scene_step_2.qml
blob: 5cfbe46d3c7e9d59858b5d7e8ab7c581584d6580 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import QtQuick 2.9
import QtQuick.Window 2.2
import QtQuick.Extras 1.4
import QtQuick.Controls 2.2
import QtQuick.Dialogs 1.2
import QtQuick.Controls.Material 2.3

/*!
  This .qml file is a Scene which can be loaded through for example a StackView (main_content in main.qml).
  */

Item {
    id: scene_server_wizard_step_2
    objectName: "Scene_step_2"

    Connections {
        target: add_server_wizard
        onStep2Success: {
            main_content_pop(null, StackView.Transition)
            //main_content_replace("scenes/Scene_placeholder.qml", StackView.Transition)
        }
    }

    Connections {
        target: add_server_wizard
        onStep2Failed: {
            mainqmladaptor.showToast(reason, 3000);
        }
    }

    Rectangle {
        id: rectangle
        anchors.fill: parent
        color: Material.background

        Text {
            color: Material.foreground
            id: title

            text: qsTr("Step 2")
            font.pointSize: 18
            wrapMode: Text.WordWrap

            font.bold: true
            horizontalAlignment: Text.AlignHCenter
            anchors.verticalCenter: parent.verticalCenter
            anchors.left: parent.left
            anchors.right: parent.right
            anchors.margins: 5
        }

        Button {
            id: next_step2_button
            text: qsTr("Next Step")
            anchors.bottom: parent.bottom
            anchors.bottomMargin: 10
            anchors.right: parent.right
            anchors.rightMargin: 10

            onClicked: {
                add_server_wizard.processStep2()
            }
        }
    }
}

/*##^## Designer {
    D{i:0;autoSize:true;height:480;width:640}
}
 ##^##*/