From 9a4d650a47c17b22bce6d7a8c7bc87b033804c5e Mon Sep 17 00:00:00 2001 From: Jie Feng Date: Wed, 30 Oct 2024 19:50:01 +0800 Subject: [PATCH 1/3] Add host search --- Main.qml | 5 ++-- MainTab.qml | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 83 insertions(+), 4 deletions(-) diff --git a/Main.qml b/Main.qml index a4d4a82..cfff114 100644 --- a/Main.qml +++ b/Main.qml @@ -182,7 +182,7 @@ ApplicationWindow { mainTab.label5.text = droidstar.get_label5(); mainTab.label6.text = droidstar.get_label6(); droidstar.set_modelchange(true); - mainTab.comboHost.model = droidstar.get_hosts(); + mainTab.comboHost.imodel = droidstar.get_hosts(); droidstar.set_modelchange(false); mainTab.comboMode.currentIndex = mainTab.comboMode.find(droidstar.get_mode()); if(droidstar.get_mode() === "REF"){ @@ -349,7 +349,8 @@ ApplicationWindow { mainTab.privateBox.visible = false; mainTab.sliderMicGain.value = 0.5; } - } + mainTab.comboHost.contentItem.text = mainTab.comboHost.currentIndex === -1 ? "Host..." : mainTab.comboHost.currentText + } function onUpdate_data() { mainTab.data1.text = droidstar.get_data1(); mainTab.data2.text = droidstar.get_data2(); diff --git a/MainTab.qml b/MainTab.qml index c21beaf..3abde49 100644 --- a/MainTab.qml +++ b/MainTab.qml @@ -267,14 +267,92 @@ Item { height: parent.height / rows; font.pixelSize: parent.height / 35 currentIndex: -1 - displayText: currentIndex === -1 ? "Host..." : currentText + displayText: currentIndex === -1 ? "Host..." : currentText + + property var selectedHost: "Host..." + property var imodel + model: imodel.filter(condition => { + if(filterConditionText.text.length > 0) { + return condition.toLowerCase().includes(filterConditionText.text.toLowerCase()) + } + return true + }); + popup: Popup { + id: _comboHostPopup + y: parent.height - 1 + width: parent.width + implicitHeight: contentItem.implicitHeight + padding: 1 + + contentItem: Item { + id: _comboHostPopupItem + anchors.fill: parent + + TextArea { + id: filterConditionText + anchors.left: parent.left + anchors.right: parent.right + anchors.top: parent.bottom + + placeholderText: qsTr("Search...") + background: Rectangle { + color: "#353535" + } + } + ListView { + clip: true + anchors.left: parent.left + anchors.right: parent.right + anchors.top: filterConditionText.bottom + implicitHeight: _comboHost.parent.height / rows * 14 + model: _comboHost.popup.visible ? _comboHost.delegateModel : null + currentIndex: _comboHost.highlightedIndex + + ScrollBar.vertical: ScrollBar { + active: true + } + } + } + onClosed: { + filterConditionText.text = "" + } + } + + delegate: ItemDelegate { + id: _comboHostDelegate + width: _comboHost.width + + required property var model + required property int index + + palette.text: _comboHost.palette.text + palette.highlightedText: _comboHost.palette.highlightedText + + background: Rectangle { + color: _comboHostDelegate.highlighted ? "steelblue" : "#252424" + } + + contentItem: Text { + text: _comboHostDelegate.model[_comboHost.textRole] + + font: _comboHost.font + verticalAlignment: Text.AlignVCenter + color: "white" + } + + highlighted: _comboHost.highlightedIndex === index + } contentItem: Text { - text: _comboHost.displayText + text: _comboHost.selectedHost font: _comboHost.font leftPadding: 10 verticalAlignment: Text.AlignVCenter color: _comboHost.enabled ? "white" : "darkgrey" } + onActivated: { + // Change only when an item is selected + selectedHost = _comboHost.currentText; + } onCurrentTextChanged: { if(settingsTab.mmdvmBox.checked){ droidstar.set_dst(_comboHost.currentText); From f23603c612f61ade5f47a1fc4ea915edd8e36bb1 Mon Sep 17 00:00:00 2001 From: Jie Feng Date: Fri, 1 Nov 2024 01:04:05 +0800 Subject: [PATCH 2/3] Format QML files --- HostsTab.qml | 8 ++-- Main.qml | 132 +++++++++++++++++++++++++-------------------------- MainTab.qml | 88 +++++++++++++++++----------------- 3 files changed, 114 insertions(+), 114 deletions(-) diff --git a/HostsTab.qml b/HostsTab.qml index 99ad151..518ae53 100644 --- a/HostsTab.qml +++ b/HostsTab.qml @@ -41,11 +41,11 @@ Item { wrapMode: Text.WordWrap color: "white" text: qsTr("Custom hostfile format:\n" + - " \n" + + " \n" + "Example: REF REF123 192.168.1.1 20001\n" + - "Example: DMR MyNet 192.168.1.1 62030 passw0rd\n" + - "Example: IAX 12345 192.168.1.1 4569 iaxclient iaxpass\n" + - "Example: IAX 12345 wt 4569 allstar-public allstar") + "Example: DMR MyNet 192.168.1.1 62030 passw0rd\n" + + "Example: IAX 12345 192.168.1.1 4569 iaxclient iaxpass\n" + + "Example: IAX 12345 wt 4569 allstar-public allstar") } TextArea { id: hostsTxtEdit diff --git a/Main.qml b/Main.qml index cfff114..5c62243 100644 --- a/Main.qml +++ b/Main.qml @@ -126,19 +126,19 @@ ApplicationWindow { } AboutTab{} } - DroidStar { - id: droidstar - } + DroidStar { + id: droidstar + } - Connections { - target: droidstar + Connections { + target: droidstar Component.onCompleted: { mainTab.comboMode.loaded = true; droidstar.process_settings(); - settingsTab.comboVocoder.model = droidstar.get_vocoders(); - settingsTab.comboModem.model = droidstar.get_modems(); - settingsTab.comboPlayback.model = droidstar.get_playbacks(); - settingsTab.comboCapture.model = droidstar.get_captures(); + settingsTab.comboVocoder.model = droidstar.get_vocoders(); + settingsTab.comboModem.model = droidstar.get_modems(); + settingsTab.comboPlayback.model = droidstar.get_playbacks(); + settingsTab.comboCapture.model = droidstar.get_captures(); mainTab.data1.font.family = droidstar.get_monofont(); mainTab.data2.font.family = droidstar.get_monofont(); mainTab.data3.font.family = droidstar.get_monofont(); @@ -166,12 +166,12 @@ ApplicationWindow { function onRptr2_changed(s){ settingsTab.rptr2Edit.text = s; } - function onUpdate_devices(){ - settingsTab.comboVocoder.model = droidstar.get_vocoders(); - settingsTab.comboModem.model = droidstar.get_modems(); - settingsTab.comboPlayback.model = droidstar.get_playbacks(); - settingsTab.comboCapture.model = droidstar.get_captures(); - } + function onUpdate_devices(){ + settingsTab.comboVocoder.model = droidstar.get_vocoders(); + settingsTab.comboModem.model = droidstar.get_modems(); + settingsTab.comboPlayback.model = droidstar.get_playbacks(); + settingsTab.comboCapture.model = droidstar.get_captures(); + } function onMode_changed() { //console.log("onMode_changed ", mainTab.comboMode.find(droidstar.get_mode()), ":", droidstar.get_mode(), ":", droidstar.get_ref_host(), ":", droidstar.get_module()); @@ -181,11 +181,11 @@ ApplicationWindow { mainTab.label4.text = droidstar.get_label4(); mainTab.label5.text = droidstar.get_label5(); mainTab.label6.text = droidstar.get_label6(); - droidstar.set_modelchange(true); + droidstar.set_modelchange(true); mainTab.comboHost.imodel = droidstar.get_hosts(); - droidstar.set_modelchange(false); + droidstar.set_modelchange(false); mainTab.comboMode.currentIndex = mainTab.comboMode.find(droidstar.get_mode()); - if(droidstar.get_mode() === "REF"){ + if(droidstar.get_mode() === "REF"){ //mainTab.comboMode.width = mainTab.width / 2; mainTab.comboHost.visible = true; mainTab.dtmflabel.visible = false; @@ -200,8 +200,8 @@ ApplicationWindow { mainTab.comboM17CAN.visible = false; mainTab.privateBox.visible = false; mainTab.sliderMicGain.value = 0.0; - } - if(droidstar.get_mode() === "DCS"){ + } + if(droidstar.get_mode() === "DCS"){ //mainTab.comboMode.width = mainTab.width / 2; mainTab.comboHost.visible = true; mainTab.dtmflabel.visible = false; @@ -216,8 +216,8 @@ ApplicationWindow { mainTab.comboM17CAN.visible = false; mainTab.privateBox.visible = false; mainTab.sliderMicGain.value = 0.0; - } - if(droidstar.get_mode() === "XRF"){ + } + if(droidstar.get_mode() === "XRF"){ //mainTab.comboMode.width = mainTab.width / 2; mainTab.comboHost.visible = true; mainTab.dtmflabel.visible = false; @@ -232,8 +232,8 @@ ApplicationWindow { mainTab.comboM17CAN.visible = false; mainTab.privateBox.visible = false; mainTab.sliderMicGain.value = 0.0; - } - if(droidstar.get_mode() === "YSF"){ + } + if(droidstar.get_mode() === "YSF"){ //mainTab.comboMode.width = mainTab.width / 2; mainTab.comboHost.visible = true; mainTab.dtmflabel.visible = false; @@ -248,7 +248,7 @@ ApplicationWindow { mainTab.comboM17CAN.visible = false; mainTab.privateBox.visible = false; mainTab.sliderMicGain.value = 0.5; - } + } if(droidstar.get_mode() === "FCS"){ //mainTab.comboMode.width = mainTab.width / 2; mainTab.comboHost.visible = true; @@ -265,7 +265,7 @@ ApplicationWindow { mainTab.privateBox.visible = false; mainTab.sliderMicGain.value = 0.5; } - if(droidstar.get_mode() === "DMR"){ + if(droidstar.get_mode() === "DMR"){ //mainTab.comboMode.width = (mainTab.width / 5) - 5; mainTab.comboHost.visible = true; mainTab.dtmflabel.visible = false; @@ -281,8 +281,8 @@ ApplicationWindow { mainTab.comboM17CAN.visible = false; mainTab.privateBox.visible = true; mainTab.sliderMicGain.value = 0.5; - } - if(droidstar.get_mode() === "P25"){ + } + if(droidstar.get_mode() === "P25"){ //mainTab.comboMode.width = mainTab.width / 2; mainTab.comboHost.visible = true; mainTab.dtmflabel.visible = false; @@ -298,8 +298,8 @@ ApplicationWindow { mainTab.comboM17CAN.visible = false; mainTab.privateBox.visible = false; mainTab.sliderMicGain.value = 0.5; - } - if(droidstar.get_mode() === "NXDN"){ + } + if(droidstar.get_mode() === "NXDN"){ //mainTab.comboMode.width = mainTab.width / 2; mainTab.comboHost.visible = true; mainTab.dtmflabel.visible = false; @@ -314,7 +314,7 @@ ApplicationWindow { mainTab.comboM17CAN.visible = false; mainTab.privateBox.visible = false; mainTab.sliderMicGain.value = 0.5; - } + } if(droidstar.get_mode() === "M17"){ //mainTab.comboMode.width = mainTab.width / 2; mainTab.comboHost.visible = true; @@ -335,11 +335,11 @@ ApplicationWindow { } if(droidstar.get_mode() === "IAX"){ //mainTab.comboMode.width = mainTab.width / 2; - mainTab.comboHost.visible = true; - mainTab.dtmflabel.visible = true; - mainTab.editIAXDTMF.visible = true; - mainTab.dtmfsendbutton.visible = true; - mainTab.comboHost.currentIndex = mainTab.comboHost.find(droidstar.get_iax_host()); + mainTab.comboHost.visible = true; + mainTab.dtmflabel.visible = true; + mainTab.editIAXDTMF.visible = true; + mainTab.dtmfsendbutton.visible = true; + mainTab.comboHost.currentIndex = mainTab.comboHost.find(droidstar.get_iax_host()); mainTab.comboModule.visible = false; mainTab.comboSlot.visible = false; mainTab.comboCC.visible = false; @@ -362,43 +362,43 @@ ApplicationWindow { mainTab.mmdvmstatus.text = droidstar.get_mmdvmstatustxt(); mainTab.netstatus.text = droidstar.get_netstatustxt(); ++mainTab.uitimer.rxcnt; - } + } function onUpdate_settings() { //console.log("update_settings comboHost == ", mainTab.comboHost.find(droidstar.get_host())); //console.log("update_settings comboModule == ", mainTab.comboModule.find(droidstar.get_module())); settingsTab.ipv6.checked = droidstar.get_ipv6(); settingsTab.xrf2ref.checked = droidstar.get_xrf2ref(); settingsTab.toggleTX.checked = droidstar.get_toggletx(); - if(droidstar.get_mode() === "REF"){ + if(droidstar.get_mode() === "REF"){ mainTab.comboHost.currentIndex = mainTab.comboHost.find(droidstar.get_ref_host()); - } - if(droidstar.get_mode() === "DCS"){ + } + if(droidstar.get_mode() === "DCS"){ mainTab.comboHost.currentIndex = mainTab.comboHost.find(droidstar.get_dcs_host()); - } - if(droidstar.get_mode() === "XRF"){ + } + if(droidstar.get_mode() === "XRF"){ mainTab.comboHost.currentIndex = mainTab.comboHost.find(droidstar.get_xrf_host()); - } - if(droidstar.get_mode() === "YSF"){ + } + if(droidstar.get_mode() === "YSF"){ mainTab.comboHost.currentIndex = mainTab.comboHost.find(droidstar.get_ysf_host()); - } + } if(droidstar.get_mode() === "FCS"){ mainTab.comboHost.currentIndex = mainTab.comboHost.find(droidstar.get_fcs_host()); } - if(droidstar.get_mode() === "DMR"){ + if(droidstar.get_mode() === "DMR"){ mainTab.comboHost.currentIndex = mainTab.comboHost.find(droidstar.get_dmr_host()); - } - if(droidstar.get_mode() === "P25"){ + } + if(droidstar.get_mode() === "P25"){ mainTab.comboHost.currentIndex = mainTab.comboHost.find(droidstar.get_p25_host()); - } - if(droidstar.get_mode() === "NXDN"){ + } + if(droidstar.get_mode() === "NXDN"){ mainTab.comboHost.currentIndex = mainTab.comboHost.find(droidstar.get_nxdn_host()); - } + } if(droidstar.get_mode() === "M17"){ mainTab.comboHost.currentIndex = mainTab.comboHost.find(droidstar.get_m17_host()); } - if(droidstar.get_mode() === "IAX"){ - mainTab.comboHost.currentIndex = mainTab.comboHost.find(droidstar.get_iax_host()); - } + if(droidstar.get_mode() === "IAX"){ + mainTab.comboHost.currentIndex = mainTab.comboHost.find(droidstar.get_iax_host()); + } mainTab.comboModule.currentIndex = mainTab.comboModule.find(droidstar.get_module()); settingsTab.callsignEdit.text = droidstar.get_callsign(); settingsTab.dmridEdit.text = droidstar.get_dmrid(); @@ -440,7 +440,7 @@ ApplicationWindow { settingsTab.modemBaudEdit.text = droidstar.get_modemBaud(); hostsTab.hostsTextEdit.text = droidstar.get_local_hosts(); - } + } function onUpdate_log(s) { logTab.logText.append(s); } @@ -470,7 +470,7 @@ ApplicationWindow { mainTab.data5.text = ""; mainTab.data6.text = ""; mainTab.netstatus.text = "Not connected"; - } + } if(c === 1){ mainTab.connectbutton.text = "Connecting"; mainTab.comboMode.enabled = false; @@ -478,7 +478,7 @@ ApplicationWindow { if(mainTab.comboMode.currentText != "REF"){ mainTab.comboModule.enabled = false; } - } + } if(c === 2){ mainTab.connectbutton.text = "Disconnect"; mainTab.comboMode.enabled = false; @@ -494,10 +494,10 @@ ApplicationWindow { settingsTab.m171600.checked = true; } if(mainTab.comboMode.currentText === "M17"){ - if(settingsTab.mmdvmBox.checked){ - mainTab.comboModule.enabled = true; - mainTab.comboHost.enabled = true; - } + if(settingsTab.mmdvmBox.checked){ + mainTab.comboModule.enabled = true; + mainTab.comboHost.enabled = true; + } settingsTab.m173200.checked = true; } @@ -505,7 +505,7 @@ ApplicationWindow { mainTab.buttonTX.enabled = true; mainTab.btntxt.color = "black"; mainTab.agcBox.checked = true; - droidstar.set_debug(settingsTab.debugBox.checked); + droidstar.set_debug(settingsTab.debugBox.checked); } if(c === 3){ } @@ -515,11 +515,11 @@ ApplicationWindow { } if(c === 5){ errorDialog.text = droidstar.get_error_text(); - if(errorDialog.text == ""){ - errorDialog.text = "Banned!" - } + if(errorDialog.text == ""){ + errorDialog.text = "Banned!" + } errorDialog.open(); - droidstar.connect_status_changed(0); + droidstar.connect_status_changed(0); } } } diff --git a/MainTab.qml b/MainTab.qml index 3abde49..6d593dc 100644 --- a/MainTab.qml +++ b/MainTab.qml @@ -178,7 +178,7 @@ Item { onCurrentTextChanged: { droidstar.set_slot(_comboSlot.currentIndex); } - visible: false + visible: false } ComboBox { id: _comboCC @@ -187,7 +187,7 @@ Item { width: (parent.width / 5) height: parent.height / rows; font.pixelSize: parent.height / 35 - model: ["CC0", "CC1", "CC2", "CC3", "CC4", "CC5", "CC6", "CC7", "CC8", "CC9", "CC10", "CC11", "CC12", "CC13", "CC14", "CC15"] + model: ["CC0", "CC1", "CC2", "CC3", "CC4", "CC5", "CC6", "CC7", "CC8", "CC9", "CC10", "CC11", "CC12", "CC13", "CC14", "CC15"] contentItem: Text { text: _comboCC.displayText font: _comboCC.font @@ -198,7 +198,7 @@ Item { onCurrentTextChanged: { droidstar.set_cc(_comboCC.currentIndex); } - visible: false + visible: false } Button { id: _connectbutton @@ -228,7 +228,7 @@ Item { droidstar.set_swid(settingsTab.swidEdit.text); droidstar.set_pkgid(settingsTab.pkgidEdit.text); droidstar.set_dmr_options(settingsTab.dmroptsEdit.text); - droidstar.set_dmr_pc(mainTab.privateBox.checked); + droidstar.set_dmr_pc(mainTab.privateBox.checked); droidstar.set_txtimeout(settingsTab.txtimerEdit.text); //droidstar.set_toggletx(toggleTX.checked); droidstar.set_xrf2ref(settingsTab.xrf2ref.checked); @@ -255,7 +255,7 @@ Item { droidstar.set_modemP25TxLevel(settingsTab.modemYSFTXLevelEdit.text); droidstar.set_modemNXDNTxLevel(settingsTab.modemNXDNTXLevelEdit.text); droidstar.set_modemBaud(settingsTab.modemBaudEdit.text); - //droidstar.set_mmdvm_direct(settingsTab.mmdvmBox.checked) + //droidstar.set_mmdvm_direct(settingsTab.mmdvmBox.checked) droidstar.process_connect(); } } @@ -286,25 +286,25 @@ Item { contentItem: Item { id: _comboHostPopupItem - anchors.fill: parent - - TextArea { - id: filterConditionText - anchors.left: parent.left - anchors.right: parent.right - anchors.top: parent.bottom + anchors.fill: parent + + TextArea { + id: filterConditionText + anchors.left: parent.left + anchors.right: parent.right + anchors.top: parent.bottom placeholderText: qsTr("Search...") background: Rectangle { color: "#353535" } - } + } ListView { clip: true - anchors.left: parent.left - anchors.right: parent.right - anchors.top: filterConditionText.bottom - implicitHeight: _comboHost.parent.height / rows * 14 + anchors.left: parent.left + anchors.right: parent.right + anchors.top: filterConditionText.bottom + implicitHeight: _comboHost.parent.height / rows * 14 model: _comboHost.popup.visible ? _comboHost.delegateModel : null currentIndex: _comboHost.highlightedIndex @@ -318,30 +318,30 @@ Item { } } - delegate: ItemDelegate { + delegate: ItemDelegate { id: _comboHostDelegate - width: _comboHost.width - + width: _comboHost.width + required property var model required property int index - palette.text: _comboHost.palette.text - palette.highlightedText: _comboHost.palette.highlightedText - + palette.text: _comboHost.palette.text + palette.highlightedText: _comboHost.palette.highlightedText + background: Rectangle { color: _comboHostDelegate.highlighted ? "steelblue" : "#252424" } - contentItem: Text { - text: _comboHostDelegate.model[_comboHost.textRole] + contentItem: Text { + text: _comboHostDelegate.model[_comboHost.textRole] - font: _comboHost.font + font: _comboHost.font verticalAlignment: Text.AlignVCenter color: "white" - } - - highlighted: _comboHost.highlightedIndex === index - } + } + + highlighted: _comboHost.highlightedIndex === index + } contentItem: Text { text: _comboHost.selectedHost font: _comboHost.font @@ -354,10 +354,10 @@ Item { selectedHost = _comboHost.currentText; } onCurrentTextChanged: { - if(settingsTab.mmdvmBox.checked){ - droidstar.set_dst(_comboHost.currentText); - } - if(!droidstar.get_modelchange()){ + if(settingsTab.mmdvmBox.checked){ + droidstar.set_dst(_comboHost.currentText); + } + if(!droidstar.get_modelchange()){ droidstar.process_host_change(_comboHost.currentText); } } @@ -371,7 +371,7 @@ Item { font.pixelSize: parent.height / 35 currentIndex: -1 displayText: currentIndex === -1 ? "Mod..." : currentText - model: [" ", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] + model: [" ", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] contentItem: Text { text: _comboModule.displayText font: _comboModule.font @@ -396,34 +396,34 @@ Item { droidstar.set_dmr_pc(privateBox.checked) //console.log("screen size ", parent.width, " x ", parent.height); } - visible: false + visible: false } Text { id: _dtmflabel x: 5 - y: (parent.height / rows + 1) * 4; + y: (parent.height / rows + 1) * 4; width: parent.width / 5 height: parent.height / rows; text: qsTr("DTMF") color: "white" font.pixelSize: parent.height / 30; verticalAlignment: Text.AlignVCenter - visible: false + visible: false } TextField { id: _editIAXDTMF x: (parent.width / 4) - y: (parent.height / rows + 1) * 4; + y: (parent.height / rows + 1) * 4; width: (parent.width * 3 / 8) - 4; height: parent.height / rows; font.pixelSize: parent.height / 35 //inputMethodHints: "ImhPreferNumbers" - visible: false + visible: false } Button { id: _dtmfsendbutton x: (parent.width * 5 / 8) - y: (parent.height / rows + 1) * 4; + y: (parent.height / rows + 1) * 4; width: (parent.width * 3 / 8) - 5; height: parent.height / rows; text: qsTr("Send") @@ -431,7 +431,7 @@ Item { onClicked: { droidstar.dtmf_send_clicked(editIAXDTMF.text); } - visible: false + visible: false } Text { id: _element3 @@ -443,7 +443,7 @@ Item { color: "white" font.pixelSize: parent.height / 30; verticalAlignment: Text.AlignVCenter - visible: false + visible: false } TextField { visible: false @@ -485,7 +485,7 @@ Item { id: _swtxBox x: (parent.width * 2 / 5) + 5 y: (parent.height / rows + 1) * 2; - width: parent.width / 4 + width: parent.width / 4 height: parent.height / rows font.pixelSize: parent.height / 40; text: qsTr("SWTX") From 91f98b0ff3cda4ec701cb695b78bc367dbd55188 Mon Sep 17 00:00:00 2001 From: Jie Feng Date: Fri, 24 Jan 2025 00:13:03 +0800 Subject: [PATCH 3/3] Fix item not updating --- MainTab.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MainTab.qml b/MainTab.qml index 6d593dc..954ac78 100644 --- a/MainTab.qml +++ b/MainTab.qml @@ -315,6 +315,7 @@ Item { } onClosed: { filterConditionText.text = "" + _comboHostContentItem.text = _comboHost.currentText } } @@ -343,6 +344,7 @@ Item { highlighted: _comboHost.highlightedIndex === index } contentItem: Text { + id: _comboHostContentItem text: _comboHost.selectedHost font: _comboHost.font leftPadding: 10