aboutsummaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'main.qml')
-rw-r--r--main.qml33
1 files changed, 20 insertions, 13 deletions
diff --git a/main.qml b/main.qml
index abd189c..1496c31 100644
--- a/main.qml
+++ b/main.qml
@@ -12,6 +12,10 @@ ApplicationWindow {
property int normal_width: 700
property int normal_height: 400
+ ToastManager {
+ id: toast
+ }
+
width: normal_width
height: normal_height
@@ -28,8 +32,8 @@ ApplicationWindow {
title: qsTr("Remote Support for your Desktop")
onClosing: {
- mainqmladaptor.onCloseHandler();
- console.log("Cleanup done, can close!");
+// mainqmladaptor.onCloseHandler();
+// console.log("Cleanup done, can close!");
}
Button {
@@ -175,6 +179,7 @@ ApplicationWindow {
onClicked: {
mainqmladaptor.handleCopyToClipboardButtonClick(url_text.text);
+ toast.show(qsTr("Copied URL into clipboard!"));
}
ToolTip.text: qsTr("Copy the URL into the clipboard")
@@ -191,18 +196,16 @@ ApplicationWindow {
width: parent.width - copy_url_to_clipboard_button.width - 5
height: parent.height/2
text: session.url
+ verticalAlignment: Text.AlignVCenter
+ horizontalAlignment: Text.AlignRight
+ anchors.bottom: parent.bottom
+ anchors.bottomMargin: 0
+ anchors.left: parent.left
+ anchors.leftMargin: 0
font.bold: true
font.pointSize: 14
fontSizeMode: Text.Fit
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
- anchors.topMargin: 0
- anchors.left: parent.left
- anchors.leftMargin: 0
- anchors.top: your_url_text.bottom
- verticalAlignment: Text.AlignVCenter
- horizontalAlignment: Text.AlignRight
- anchors.bottom: pin_text.top
- anchors.bottomMargin: 5
}
Label {
@@ -212,12 +215,11 @@ ApplicationWindow {
height: parent.height/2
text: qsTr("Remote Support URL")
font.pointSize: 14
- fontSizeMode: Text.Fit
anchors.left: parent.left
anchors.leftMargin: 0
+ fontSizeMode: Text.Fit
anchors.top: parent.top
anchors.topMargin: 0
- anchors.bottom: your_pin_text.top
verticalAlignment: Text.AlignBottom
anchors.bottomMargin: 5
clip: false
@@ -263,6 +265,7 @@ ApplicationWindow {
onClicked: {
mainqmladaptor.handleCopyToClipboardButtonClick(pin_text.text);
+ toast.show(qsTr("Copied PIN into clipboard!"));
}
ToolTip.text: qsTr("Copy the pin into the clipboard")
@@ -564,9 +567,13 @@ ApplicationWindow {
+
+
+
+
/*##^## Designer {
D{i:1;anchors_x:0;anchors_y:339}D{i:5;anchors_x:0}D{i:7;anchors_x:15;anchors_y:115}
-D{i:14;anchors_x:47}D{i:10;anchors_y:154}D{i:19;anchors_height:35;anchors_x:73;anchors_y:35}
+D{i:14;anchors_x:47;anchors_y:0}D{i:15;anchors_height:50}D{i:10;anchors_y:154}D{i:19;anchors_height:35;anchors_x:73;anchors_y:35}
D{i:20;anchors_y:0}D{i:16;anchors_height:35;anchors_width:350;anchors_x:379;anchors_y:183}
D{i:24;anchors_x:15;anchors_y:17}D{i:22;anchors_x:0;anchors_y:0}
}