aboutsummaryrefslogtreecommitdiff
path: root/src/scenes/add_server_wizard/Scene_step_1.qml
diff options
context:
space:
mode:
authorDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2021-07-02 20:21:39 +0200
committerDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2021-07-02 20:21:39 +0200
commit2dc27cddbe35ede34431a6fdf7bf931a7c286bc6 (patch)
treeb318725d3b475231b1f355d2ebb11cc03b197382 /src/scenes/add_server_wizard/Scene_step_1.qml
parentb285492183f105c9a1fd758d6cd2e767262fd995 (diff)
downloadRWA.Support.DesktopApp-2dc27cddbe35ede34431a6fdf7bf931a7c286bc6.tar.gz
RWA.Support.DesktopApp-2dc27cddbe35ede34431a6fdf7bf931a7c286bc6.tar.bz2
RWA.Support.DesktopApp-2dc27cddbe35ede34431a6fdf7bf931a7c286bc6.zip
Introduce add_server_wizard.{cpp, h}; drop third add_server_wizard scene
Diffstat (limited to 'src/scenes/add_server_wizard/Scene_step_1.qml')
-rw-r--r--src/scenes/add_server_wizard/Scene_step_1.qml32
1 files changed, 30 insertions, 2 deletions
diff --git a/src/scenes/add_server_wizard/Scene_step_1.qml b/src/scenes/add_server_wizard/Scene_step_1.qml
index 2061db1..2eb6eaa 100644
--- a/src/scenes/add_server_wizard/Scene_step_1.qml
+++ b/src/scenes/add_server_wizard/Scene_step_1.qml
@@ -2,7 +2,6 @@ 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
/*!
@@ -11,13 +10,42 @@ import QtQuick.Controls.Material 2.3
Item {
id: scene_server_wizard_step_1
- objectName: "Scene_server_wizard_step_1"
+ objectName: "Scene_step_1"
+
+ Connections {
+ target: add_server_wizard
+ onStep1Success: {
+ //main_content_push("scenes/add_server_wizard/Scene_step_2.qml", StackView.Transition)
+ main_content_pop(null)
+ mainqmladaptor.showToast(qsTr("Successfully added server address."), 5000);
+ }
+ }
+
+ Connections {
+ target: add_server_wizard
+ onStep1Failed: {
+ mainqmladaptor.showToast(reason, 3000);
+ }
+ }
Rectangle {
id: rectangle
anchors.fill: parent
color: Material.background
+ Button {
+ id: next_step1_button
+ text: qsTr("Next Step")
+ anchors.bottom: parent.bottom
+ anchors.bottomMargin: 15
+ anchors.right: parent.right
+ anchors.rightMargin: 15
+
+ onClicked: {
+ add_server_wizard.processStep1(host_url.text)
+ }
+ }
+
Text {
color: Material.foreground
id: title