mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-31 17:42:55 +08:00
UI changes
This commit is contained in:
parent
fc586ea706
commit
3d0e526453
@ -111,6 +111,11 @@ Control {
|
|||||||
Cpp_IO_Network.port = text
|
Cpp_IO_Network.port = text
|
||||||
}
|
}
|
||||||
|
|
||||||
|
validator: IntValidator {
|
||||||
|
bottom: 0
|
||||||
|
top: 65535
|
||||||
|
}
|
||||||
|
|
||||||
opacity: enabled ? 1 : 0.5
|
opacity: enabled ? 1 : 0.5
|
||||||
enabled: !Cpp_IO_Manager.connected
|
enabled: !Cpp_IO_Manager.connected
|
||||||
Behavior on opacity {NumberAnimation{}}
|
Behavior on opacity {NumberAnimation{}}
|
||||||
|
@ -184,7 +184,7 @@ Control {
|
|||||||
id: tab
|
id: tab
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
onCurrentIndexChanged: {
|
onCurrentIndexChanged: {
|
||||||
if (currentIndex < 2)
|
if (currentIndex < 2 && currentIndex !== Cpp_IO_Manager.dataSource)
|
||||||
Cpp_IO_Manager.dataSource = currentIndex
|
Cpp_IO_Manager.dataSource = currentIndex
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -215,7 +215,7 @@ Control {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
currentIndex: tab.currentIndex
|
currentIndex: tab.currentIndex
|
||||||
Layout.topMargin: -parent.spacing
|
Layout.topMargin: -parent.spacing - 1
|
||||||
Layout.minimumHeight: serial.implicitHeight + 14
|
Layout.minimumHeight: serial.implicitHeight + 14
|
||||||
|
|
||||||
SetupPanes.Serial {
|
SetupPanes.Serial {
|
||||||
|
@ -400,7 +400,7 @@ void Manager::setDataSource(const DataSource source)
|
|||||||
emit dataSourceChanged();
|
emit dataSourceChanged();
|
||||||
|
|
||||||
// Log changes
|
// Log changes
|
||||||
LOG_INFO() << "Data source set to" << source;
|
LOG_TRACE() << "Data source set to" << source;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user