ReceivingForm.ui.qml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import QtQuick 2.12
  2. import QtQuick.Controls 2.5
  3. import QtQuick.Layouts 1.3
  4. Page {
  5. width: 1280
  6. height: 470
  7. font.capitalization: Font.MixedCase
  8. ColumnLayout {
  9. anchors.fill: parent
  10. RowLayout {
  11. Layout.preferredWidth: parent.width
  12. Layout.preferredHeight: 70
  13. TextField {
  14. id: receivingFileNameField
  15. selectByMouse: true
  16. Layout.preferredWidth: 1060
  17. Layout.preferredHeight: parent.height
  18. placeholderText: "Enter File Name to download..."
  19. text: qsTr("")
  20. font.pixelSize: 20
  21. }
  22. Button {
  23. id: receivingGetFileButton
  24. Layout.preferredWidth: 180
  25. Layout.preferredHeight: parent.height
  26. text: qsTr("Download")
  27. enabled: receivingFileNameField.text != ""
  28. // @disable-check M223
  29. onClicked: {
  30. // @disable-check M223
  31. if (receivingFileNameField.text != "") {
  32. // @disable-check M222
  33. _qmlHandler.onReceivingGetFileButton(
  34. receivingFileNameField.text)
  35. receivingFileNameField.text = ""
  36. }
  37. }
  38. }
  39. }
  40. }
  41. }