mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-15 05:22:53 +08:00
UI changes
This commit is contained in:
parent
fc586ea706
commit
3d0e526453
@ -111,6 +111,11 @@ Control {
|
||||
Cpp_IO_Network.port = text
|
||||
}
|
||||
|
||||
validator: IntValidator {
|
||||
bottom: 0
|
||||
top: 65535
|
||||
}
|
||||
|
||||
opacity: enabled ? 1 : 0.5
|
||||
enabled: !Cpp_IO_Manager.connected
|
||||
Behavior on opacity {NumberAnimation{}}
|
||||
|
@ -184,7 +184,7 @@ Control {
|
||||
id: tab
|
||||
Layout.fillWidth: true
|
||||
onCurrentIndexChanged: {
|
||||
if (currentIndex < 2)
|
||||
if (currentIndex < 2 && currentIndex !== Cpp_IO_Manager.dataSource)
|
||||
Cpp_IO_Manager.dataSource = currentIndex
|
||||
}
|
||||
|
||||
@ -215,7 +215,7 @@ Control {
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
currentIndex: tab.currentIndex
|
||||
Layout.topMargin: -parent.spacing
|
||||
Layout.topMargin: -parent.spacing - 1
|
||||
Layout.minimumHeight: serial.implicitHeight + 14
|
||||
|
||||
SetupPanes.Serial {
|
||||
|
@ -400,7 +400,7 @@ void Manager::setDataSource(const DataSource source)
|
||||
emit dataSourceChanged();
|
||||
|
||||
// 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