Commit e5c843ca authored by dogmaphobic's avatar dogmaphobic

Serial Configuration Done (QML)

parent 6541cbf0
...@@ -362,6 +362,8 @@ Rectangle { ...@@ -362,6 +362,8 @@ Rectangle {
QGCButton { QGCButton {
width: ScreenTools.defaultFontPixelWidth * 10 width: ScreenTools.defaultFontPixelWidth * 10
text: "OK" text: "OK"
//-- TODO: For now, only allow Serial (the only one completed)
enabled: editConfig && editConfig.linkType === LinkConfiguration.TypeSerial
onClicked: { onClicked: {
// Save editting // Save editting
editConfig.name = nameField.text editConfig.name = nameField.text
...@@ -393,7 +395,7 @@ Rectangle { ...@@ -393,7 +395,7 @@ Rectangle {
Component { Component {
id: serialLinkSettings id: serialLinkSettings
Column { Column {
width: parent.width width: serialLinkSettings.width
spacing: ScreenTools.defaultFontPixelHeight / 2 spacing: ScreenTools.defaultFontPixelHeight / 2
QGCLabel { QGCLabel {
id: serialLabel id: serialLabel
...@@ -601,7 +603,7 @@ Rectangle { ...@@ -601,7 +603,7 @@ Rectangle {
Component { Component {
id: udpLinkSettings id: udpLinkSettings
Column { Column {
width: parent.width width: udpLinkSettings.width
spacing: ScreenTools.defaultFontPixelHeight / 2 spacing: ScreenTools.defaultFontPixelHeight / 2
QGCLabel { QGCLabel {
id: udpLabel id: udpLabel
...@@ -637,7 +639,7 @@ Rectangle { ...@@ -637,7 +639,7 @@ Rectangle {
Component { Component {
id: tcpLinkSettings id: tcpLinkSettings
Column { Column {
width: parent.width width: tcpLinkSettings.width
spacing: ScreenTools.defaultFontPixelHeight / 2 spacing: ScreenTools.defaultFontPixelHeight / 2
QGCLabel { QGCLabel {
id: tcpLabel id: tcpLabel
...@@ -681,7 +683,7 @@ Rectangle { ...@@ -681,7 +683,7 @@ Rectangle {
Component { Component {
id: logLinkSettings id: logLinkSettings
Column { Column {
width: parent.width width: logLinkSettings.width
spacing: ScreenTools.defaultFontPixelHeight / 2 spacing: ScreenTools.defaultFontPixelHeight / 2
QGCLabel { QGCLabel {
text: "Log Replay Link Settings" text: "Log Replay Link Settings"
...@@ -700,7 +702,7 @@ Rectangle { ...@@ -700,7 +702,7 @@ Rectangle {
Component { Component {
id: mockLinkSettings id: mockLinkSettings
Column { Column {
width: parent.width width: mockLinkSettings.width
spacing: ScreenTools.defaultFontPixelHeight / 2 spacing: ScreenTools.defaultFontPixelHeight / 2
QGCLabel { QGCLabel {
text: "Mock Link Settings" text: "Mock Link Settings"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment