UI changes

This commit is contained in:
Alex Spataru 2021-02-15 17:06:47 -05:00
parent fc586ea706
commit 3d0e526453
3 changed files with 8 additions and 3 deletions

View File

@ -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{}}

View File

@ -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 {

View File

@ -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;
}
/**