Browse Source

Added Messaging Form and removed unused import on IpPopupForm

Cyamond 5 năm trước cách đây
mục cha
commit
9154a86ff3
2 tập tin đã thay đổi với 39 bổ sung2 xóa
  1. 0 1
      gui/src/IpPopupForm.ui.qml
  2. 39 1
      gui/src/MessagesForm.ui.qml

+ 0 - 1
gui/src/IpPopupForm.ui.qml

@@ -1,7 +1,6 @@
 import QtQuick 2.4
 import QtQuick.Controls 2.3
 import QtQuick.Layouts 1.3
-import QtQuick.Controls.Styles 1.4
 
 Popup {
     id: popup

+ 39 - 1
gui/src/MessagesForm.ui.qml

@@ -1,8 +1,46 @@
 import QtQuick 2.12
 import QtQuick.Controls 2.5
-import QtQuick.Dialogs 1.0
 
 Page {
     width: 1280
     height: 470
+
+    font.capitalization: Font.MixedCase
+
+    ScrollView {
+        id: scrollView
+        x: 0
+        y: 0
+        width: 1280
+        height: 400
+
+        TextArea {
+            id: messagesLog
+            width: 1280
+            height: 400
+            readOnly: true
+            text: qsTr("Log goes here\nNew Line works as well\nNew Line works as well\nNew Line works as well\nNew Line works as well\nNew Line works as well\nNew Line works as well\nNew Line works as well\nNew Line works as well\nNew Line works as well\nNew Line works as well\nNew Line works as well\nNew Line works as well\nNew Line works as well\nNew Line works as well\nNew Line works as well\nNew Line works as well\nNew Line works as well\nNew Line works as well\nNew Line works as well\nNew Line works as well\nNew Line works as well\nNew Line works as well\nNew Line works as well\nNew Line works as well")
+            font.pointSize: 15
+        }
+    }
+
+    TextField {
+        id: messageInput
+        x: 20
+        y: 400
+        width: 1060
+        height: 70
+        placeholderText: "Enter message..."
+        text: qsTr("")
+        font.pixelSize: 20
+    }
+
+    Button {
+        id: sendButton
+        x: 1100
+        y: 400
+        width: 180
+        height: 70
+        text: qsTr("Send")
+    }
 }