aboutsummaryrefslogtreecommitdiff
path: root/src/scenes
diff options
context:
space:
mode:
authorDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2021-08-01 01:58:32 +0200
committerDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2021-08-01 01:58:32 +0200
commitefa44c931674e498c39fc59091cf1f8654ac97a5 (patch)
tree6fa2a949f680c5abcd7d919164ad9c5c8c1fa66c /src/scenes
parent18c2b837d33c040a21f84c444d8c554769f1dc58 (diff)
downloadRWA.Support.DesktopApp-efa44c931674e498c39fc59091cf1f8654ac97a5.tar.gz
RWA.Support.DesktopApp-efa44c931674e498c39fc59091cf1f8654ac97a5.tar.bz2
RWA.Support.DesktopApp-efa44c931674e498c39fc59091cf1f8654ac97a5.zip
Fix typos, too long lines, various styling stuff
Diffstat (limited to 'src/scenes')
-rw-r--r--src/scenes/Scene_no_server_available.qml3
-rw-r--r--src/scenes/Scene_placeholder.qml3
-rw-r--r--src/scenes/Scene_remote_view.qml5
-rw-r--r--src/scenes/Scene_settings.qml5
-rw-r--r--src/scenes/add_server_wizard/Scene_step_1.qml15
5 files changed, 24 insertions, 7 deletions
diff --git a/src/scenes/Scene_no_server_available.qml b/src/scenes/Scene_no_server_available.qml
index 112c6e0..7b99b55 100644
--- a/src/scenes/Scene_no_server_available.qml
+++ b/src/scenes/Scene_no_server_available.qml
@@ -6,7 +6,8 @@ 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).
+ * This .qml file is a Scene which can be loaded through for
+ * example a StackView (main_content in main.qml).
*/
Item {
diff --git a/src/scenes/Scene_placeholder.qml b/src/scenes/Scene_placeholder.qml
index 29e15a9..f492e00 100644
--- a/src/scenes/Scene_placeholder.qml
+++ b/src/scenes/Scene_placeholder.qml
@@ -6,7 +6,8 @@ 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).
+ * This .qml file is a Scene which can be loaded through for
+ * example a StackView (main_content in main.qml).
*/
Item {
diff --git a/src/scenes/Scene_remote_view.qml b/src/scenes/Scene_remote_view.qml
index cea5ccf..436d8aa 100644
--- a/src/scenes/Scene_remote_view.qml
+++ b/src/scenes/Scene_remote_view.qml
@@ -5,6 +5,11 @@ 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_remote_view
objectName: "Scene_remote_view"
diff --git a/src/scenes/Scene_settings.qml b/src/scenes/Scene_settings.qml
index 5a29071..e2f89da 100644
--- a/src/scenes/Scene_settings.qml
+++ b/src/scenes/Scene_settings.qml
@@ -5,6 +5,11 @@ 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_settings
objectName: "Scene_settings"
diff --git a/src/scenes/add_server_wizard/Scene_step_1.qml b/src/scenes/add_server_wizard/Scene_step_1.qml
index abd761d..e57f8a4 100644
--- a/src/scenes/add_server_wizard/Scene_step_1.qml
+++ b/src/scenes/add_server_wizard/Scene_step_1.qml
@@ -5,7 +5,8 @@ import QtQuick.Controls 2.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).
+ * This .qml file is a Scene which can be loaded through for
+ * example a StackView (main_content in main.qml).
*/
Item {
@@ -14,17 +15,21 @@ Item {
Connections {
target: add_server_wizard
- onStep1Success: {
+ function onStep1Success() {
// Go onto the first page of the stack.
main_content_pop(null)
- mainqmladaptor.showToast(qsTr("Successfully added remote web app host."), 5000);
+ mainqmladaptor.showToast(qsTr("Successfully added remote web app host."),
+ 5000,
+ ToastType.ToastSuccess);
}
}
Connections {
target: add_server_wizard
- onStep1Failed: {
- mainqmladaptor.showToast(reason, 3000);
+ function onStep1Failed(reason, toast_type) {
+ mainqmladaptor.showToast(reason,
+ 5000,
+ toast_type)
}
}