🐞 fix(设备搜索): 添加无网络连接界面

160504 【多端协同】未联网时,点击立即连接依然会显示”正在搜索附近可用设备“(必现)
This commit is contained in:
huheng@kylinos.cn 2023-03-30 14:46:39 +08:00
parent 18d684d8b7
commit 654d2f48d6
8 changed files with 264 additions and 236 deletions

View File

@ -309,7 +309,7 @@
<name>MainWindow</name>
<message>
<location filename="../ui/mainwindow.cpp" line="381"/>
<location filename="../ui/mainwindow.cpp" line="1300"/>
<location filename="../ui/mainwindow.cpp" line="1301"/>
<source>kylin-connectivity</source>
<translation></translation>
</message>
@ -335,15 +335,15 @@
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="875"/>
<location filename="../ui/mainwindow.cpp" line="1131"/>
<location filename="../ui/mainwindow.cpp" line="1142"/>
<location filename="../ui/mainwindow.cpp" line="1211"/>
<location filename="../ui/mainwindow.cpp" line="1368"/>
<location filename="../ui/mainwindow.cpp" line="1389"/>
<location filename="../ui/mainwindow.cpp" line="1412"/>
<location filename="../ui/mainwindow.cpp" line="1473"/>
<location filename="../ui/mainwindow.cpp" line="1858"/>
<location filename="../ui/mainwindow.cpp" line="1874"/>
<location filename="../ui/mainwindow.cpp" line="1132"/>
<location filename="../ui/mainwindow.cpp" line="1143"/>
<location filename="../ui/mainwindow.cpp" line="1212"/>
<location filename="../ui/mainwindow.cpp" line="1369"/>
<location filename="../ui/mainwindow.cpp" line="1390"/>
<location filename="../ui/mainwindow.cpp" line="1413"/>
<location filename="../ui/mainwindow.cpp" line="1474"/>
<location filename="../ui/mainwindow.cpp" line="1859"/>
<location filename="../ui/mainwindow.cpp" line="1875"/>
<source>OK</source>
<translation></translation>
</message>
@ -354,79 +354,79 @@
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="677"/>
<location filename="../ui/mainwindow.cpp" line="1288"/>
<location filename="../ui/mainwindow.cpp" line="1289"/>
<source>file download failed</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1002"/>
<location filename="../ui/mainwindow.cpp" line="1003"/>
<source>Connection request received from&quot;</source>
<translation> &quot;</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1002"/>
<location filename="../ui/mainwindow.cpp" line="1328"/>
<location filename="../ui/mainwindow.cpp" line="1003"/>
<location filename="../ui/mainwindow.cpp" line="1329"/>
<source>&quot;</source>
<translation>&quot;</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1003"/>
<location filename="../ui/mainwindow.cpp" line="1004"/>
<source>After consent, the other party can view and download all the files on the device, and can share the other party&apos;s desktop to this screen.</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1009"/>
<location filename="../ui/mainwindow.cpp" line="1334"/>
<location filename="../ui/mainwindow.cpp" line="1010"/>
<location filename="../ui/mainwindow.cpp" line="1335"/>
<source>NO</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1008"/>
<location filename="../ui/mainwindow.cpp" line="1333"/>
<location filename="../ui/mainwindow.cpp" line="1009"/>
<location filename="../ui/mainwindow.cpp" line="1334"/>
<source>YES</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1023"/>
<location filename="../ui/mainwindow.cpp" line="1346"/>
<location filename="../ui/mainwindow.cpp" line="1024"/>
<location filename="../ui/mainwindow.cpp" line="1347"/>
<source>The other party has refused your screen projection request!</source>
<translation>!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1024"/>
<location filename="../ui/mainwindow.cpp" line="1347"/>
<location filename="../ui/mainwindow.cpp" line="1025"/>
<location filename="../ui/mainwindow.cpp" line="1348"/>
<source>Failed to cast the screen. Please contact the other party and try again.</source>
<translation> </translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1028"/>
<location filename="../ui/mainwindow.cpp" line="1029"/>
<source>RECONNECT</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1029"/>
<location filename="../ui/mainwindow.cpp" line="1400"/>
<location filename="../ui/mainwindow.cpp" line="1670"/>
<location filename="../ui/mainwindow.cpp" line="1030"/>
<location filename="../ui/mainwindow.cpp" line="1401"/>
<location filename="../ui/mainwindow.cpp" line="1671"/>
<source>CLOSE</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1129"/>
<location filename="../ui/mainwindow.cpp" line="1130"/>
<source>Please install kylin-assistant on the Android terminal!</source>
<translation>!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1140"/>
<location filename="../ui/mainwindow.cpp" line="1141"/>
<source>Please use the USB to connect your phone device!</source>
<translation>USBཁྱེད</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1153"/>
<location filename="../ui/mainwindow.cpp" line="1154"/>
<source>Connection error</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1155"/>
<location filename="../ui/mainwindow.cpp" line="1156"/>
<source>Connection timed out</source>
<translation></translation>
</message>
@ -439,97 +439,97 @@
<translation type="vanished"></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1301"/>
<location filename="../ui/mainwindow.cpp" line="1302"/>
<source>Version:</source>
<translation>:</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1303"/>
<location filename="../ui/mainwindow.cpp" line="1304"/>
<source>Mobile Assistant is an interconnection tool of Android device and Kirin operating system, which supports Android file synchronization, file transfer, screen mirroring and other functions, which is simple and fast to operate</source>
<translation>Andridཡིག</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1328"/>
<location filename="../ui/mainwindow.cpp" line="1329"/>
<source>Received screen projection request from &quot;</source>
<translation> &quot;</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1329"/>
<location filename="../ui/mainwindow.cpp" line="1330"/>
<source>After consent, the other party can share the device desktop to this screen.</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1351"/>
<location filename="../ui/mainwindow.cpp" line="1352"/>
<source>Again</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1352"/>
<location filename="../ui/mainwindow.cpp" line="1353"/>
<source>Close</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1363"/>
<location filename="../ui/mainwindow.cpp" line="1364"/>
<source>The other party agreed to your screen projection request!</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1364"/>
<location filename="../ui/mainwindow.cpp" line="1365"/>
<source>The screen is being cast, please wait...</source>
<translation>...</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1384"/>
<location filename="../ui/mainwindow.cpp" line="1407"/>
<location filename="../ui/mainwindow.cpp" line="1385"/>
<location filename="../ui/mainwindow.cpp" line="1408"/>
<source>End of screen projection</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1385"/>
<location filename="../ui/mainwindow.cpp" line="1408"/>
<location filename="../ui/mainwindow.cpp" line="1386"/>
<location filename="../ui/mainwindow.cpp" line="1409"/>
<source>The other party has finished the screen projection function.</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1394"/>
<location filename="../ui/mainwindow.cpp" line="1664"/>
<location filename="../ui/mainwindow.cpp" line="1395"/>
<location filename="../ui/mainwindow.cpp" line="1665"/>
<source>Screen projection loading error</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1396"/>
<location filename="../ui/mainwindow.cpp" line="1666"/>
<location filename="../ui/mainwindow.cpp" line="1397"/>
<location filename="../ui/mainwindow.cpp" line="1667"/>
<source>Please check whether to install the projection expansion package [kylin connectivity tools]</source>
<translation>[kylin-connectttity-tools]</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1654"/>
<location filename="../ui/mainwindow.cpp" line="1655"/>
<source>Uploaded to</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1624"/>
<location filename="../ui/mainwindow.cpp" line="1625"/>
<source>Downloaded to</source>
<translation>Uploaded to</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1471"/>
<location filename="../ui/mainwindow.cpp" line="1472"/>
<source>Search data loading failed!</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1852"/>
<location filename="../ui/mainwindow.cpp" line="1867"/>
<location filename="../ui/mainwindow.cpp" line="1853"/>
<location filename="../ui/mainwindow.cpp" line="1868"/>
<source>Request sent successfully!</source>
<translation>!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1853"/>
<location filename="../ui/mainwindow.cpp" line="1854"/>
<source>The connection request has been sent to the selected device. Please click [YES] in the opposite pop-up window</source>
<translation> </translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1869"/>
<location filename="../ui/mainwindow.cpp" line="1870"/>
<source>The screen projection request has been sent to the connected device. Please click [Agree] in the opposite pop-up window</source>
<translation> </translation>
</message>
@ -666,12 +666,17 @@
<context>
<name>SearchDeviceWin</name>
<message>
<location filename="../ui/connectinterface/searchdevicewin.cpp" line="48"/>
<location filename="../ui/connectinterface/searchdevicewin.cpp" line="40"/>
<source>Searching for nearby available devices...</source>
<translation>...</translation>
</message>
<message>
<location filename="../ui/connectinterface/searchdevicewin.cpp" line="160"/>
<location filename="../ui/connectinterface/searchdevicewin.cpp" line="76"/>
<source>No network</source>
<translation></translation>
</message>
<message>
<location filename="../ui/connectinterface/searchdevicewin.cpp" line="171"/>
<source>Search</source>
<translation></translation>
</message>
@ -782,7 +787,7 @@
<context>
<name>VideoForm</name>
<message>
<location filename="../projection/device/deviceui/videoform.cpp" line="837"/>
<location filename="../projection/device/deviceui/videoform.cpp" line="812"/>
<source>Control device not supported</source>
<translation></translation>
</message>

View File

@ -60,12 +60,12 @@
<context>
<name>BaseDevice</name>
<message>
<location filename="../projection/device/basedevice.cpp" line="405"/>
<location filename="../projection/device/basedevice.cpp" line="404"/>
<source>Control Devices Supported</source>
<translation>Control Devices Supported</translation>
</message>
<message>
<location filename="../projection/device/basedevice.cpp" line="409"/>
<location filename="../projection/device/basedevice.cpp" line="408"/>
<source>Control device not supported</source>
<translation>Control device not supported</translation>
</message>
@ -178,7 +178,7 @@
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="56"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="388"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="418"/>
<source>Search File</source>
<translation>Search File</translation>
</message>
@ -189,7 +189,7 @@
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="105"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="469"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="518"/>
<source>List Mode</source>
<translation>List Mode</translation>
</message>
@ -200,16 +200,17 @@
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="123"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="330"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="374"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="444"/>
<source>Select File</source>
<translation>Select File</translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="132"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="211"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="487"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="491"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="499"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="536"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="540"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="548"/>
<source>Select All</source>
<translation>Select All</translation>
</message>
@ -220,14 +221,14 @@
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="209"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="488"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="490"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="498"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="537"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="539"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="547"/>
<source>Deselect All</source>
<translation>Deselect All</translation>
</message>
<message>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="474"/>
<location filename="../ui/filemanageview/filemanagewin.cpp" line="523"/>
<source>Icon Mode</source>
<translation>Icon Mode</translation>
</message>
@ -338,7 +339,7 @@
<name>MainWindow</name>
<message>
<location filename="../ui/mainwindow.cpp" line="381"/>
<location filename="../ui/mainwindow.cpp" line="1299"/>
<location filename="../ui/mainwindow.cpp" line="1301"/>
<source>kylin-connectivity</source>
<translation>kylin-connectivity</translation>
</message>
@ -377,79 +378,79 @@
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="677"/>
<location filename="../ui/mainwindow.cpp" line="1287"/>
<location filename="../ui/mainwindow.cpp" line="1289"/>
<source>file download failed</source>
<translation>file download failed</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1001"/>
<location filename="../ui/mainwindow.cpp" line="1003"/>
<source>Connection request received from&quot;</source>
<translation>Connection request received from&quot;</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1001"/>
<location filename="../ui/mainwindow.cpp" line="1327"/>
<location filename="../ui/mainwindow.cpp" line="1003"/>
<location filename="../ui/mainwindow.cpp" line="1329"/>
<source>&quot;</source>
<translation>&quot;</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1002"/>
<location filename="../ui/mainwindow.cpp" line="1004"/>
<source>After consent, the other party can view and download all the files on the device, and can share the other party&apos;s desktop to this screen.</source>
<translation>After consent, the other party can view and download all the files on the device, and can share the other party&apos;s desktop to this screen.</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1008"/>
<location filename="../ui/mainwindow.cpp" line="1333"/>
<location filename="../ui/mainwindow.cpp" line="1010"/>
<location filename="../ui/mainwindow.cpp" line="1335"/>
<source>NO</source>
<translation>No</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1007"/>
<location filename="../ui/mainwindow.cpp" line="1332"/>
<location filename="../ui/mainwindow.cpp" line="1009"/>
<location filename="../ui/mainwindow.cpp" line="1334"/>
<source>YES</source>
<translation>Yes</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1022"/>
<location filename="../ui/mainwindow.cpp" line="1345"/>
<location filename="../ui/mainwindow.cpp" line="1024"/>
<location filename="../ui/mainwindow.cpp" line="1347"/>
<source>The other party has refused your screen projection request!</source>
<translation>The other party has refused your screen projection request!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1023"/>
<location filename="../ui/mainwindow.cpp" line="1346"/>
<location filename="../ui/mainwindow.cpp" line="1025"/>
<location filename="../ui/mainwindow.cpp" line="1348"/>
<source>Failed to cast the screen. Please contact the other party and try again.</source>
<translation>Failed to cast the screen. Please contact the other party and try again.</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1027"/>
<location filename="../ui/mainwindow.cpp" line="1029"/>
<source>RECONNECT</source>
<translation>Reconnect</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1028"/>
<location filename="../ui/mainwindow.cpp" line="1399"/>
<location filename="../ui/mainwindow.cpp" line="1663"/>
<location filename="../ui/mainwindow.cpp" line="1030"/>
<location filename="../ui/mainwindow.cpp" line="1401"/>
<location filename="../ui/mainwindow.cpp" line="1671"/>
<source>CLOSE</source>
<translation>Close</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1128"/>
<location filename="../ui/mainwindow.cpp" line="1130"/>
<source>Please install kylin-assistant on the Android terminal!</source>
<translation>Please install kylin-assistant on the Android terminal!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1139"/>
<location filename="../ui/mainwindow.cpp" line="1141"/>
<source>Please use the USB to connect your phone device!</source>
<translation>Please use the USB to connect your phone device!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1152"/>
<location filename="../ui/mainwindow.cpp" line="1154"/>
<source>Connection error</source>
<translation>Connection error</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1154"/>
<location filename="../ui/mainwindow.cpp" line="1156"/>
<source>Connection timed out</source>
<translation>Connection timed out</translation>
</message>
@ -466,90 +467,90 @@
<translation type="vanished">Umount failed</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1300"/>
<location filename="../ui/mainwindow.cpp" line="1302"/>
<source>Version:</source>
<translation>Version:</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1302"/>
<location filename="../ui/mainwindow.cpp" line="1304"/>
<source>Mobile Assistant is an interconnection tool of Android device and Kirin operating system, which supports Android file synchronization, file transfer, screen mirroring and other functions, which is simple and fast to operate</source>
<translation>Mobile Assistant is an interconnection tool of Android device and Kirin operating system, which supports Android file synchronization, file transfer, screen mirroring and other functions, which is simple and fast to operate</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1327"/>
<location filename="../ui/mainwindow.cpp" line="1329"/>
<source>Received screen projection request from &quot;</source>
<translation>Received screen projection request from &quot;</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1328"/>
<location filename="../ui/mainwindow.cpp" line="1330"/>
<source>After consent, the other party can share the device desktop to this screen.</source>
<translation>After consent, the other party can share the device desktop to this screen.</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1350"/>
<location filename="../ui/mainwindow.cpp" line="1352"/>
<source>Again</source>
<translation>Again</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1351"/>
<location filename="../ui/mainwindow.cpp" line="1353"/>
<source>Close</source>
<translation>Close</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1362"/>
<location filename="../ui/mainwindow.cpp" line="1364"/>
<source>The other party agreed to your screen projection request!</source>
<translation>The other party agreed to your screen projection request!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1363"/>
<location filename="../ui/mainwindow.cpp" line="1365"/>
<source>The screen is being cast, please wait...</source>
<translation>The screen is being cast, please wait...</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1383"/>
<location filename="../ui/mainwindow.cpp" line="1406"/>
<location filename="../ui/mainwindow.cpp" line="1385"/>
<location filename="../ui/mainwindow.cpp" line="1408"/>
<source>End of screen projection</source>
<translation>End of screen projection</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1384"/>
<location filename="../ui/mainwindow.cpp" line="1407"/>
<location filename="../ui/mainwindow.cpp" line="1386"/>
<location filename="../ui/mainwindow.cpp" line="1409"/>
<source>The other party has finished the screen projection function.</source>
<translation>The other party has finished the screen projection function.</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1470"/>
<location filename="../ui/mainwindow.cpp" line="1472"/>
<source>Search data loading failed!</source>
<translation>Search data loading failed!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1862"/>
<location filename="../ui/mainwindow.cpp" line="1870"/>
<source>The screen projection request has been sent to the connected device. Please click [Agree] in the opposite pop-up window</source>
<translation>The screen projection request has been sent to the connected device. Please click [Agree] in the opposite pop-up window</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="875"/>
<location filename="../ui/mainwindow.cpp" line="1130"/>
<location filename="../ui/mainwindow.cpp" line="1141"/>
<location filename="../ui/mainwindow.cpp" line="1210"/>
<location filename="../ui/mainwindow.cpp" line="1367"/>
<location filename="../ui/mainwindow.cpp" line="1388"/>
<location filename="../ui/mainwindow.cpp" line="1411"/>
<location filename="../ui/mainwindow.cpp" line="1472"/>
<location filename="../ui/mainwindow.cpp" line="1851"/>
<location filename="../ui/mainwindow.cpp" line="1867"/>
<location filename="../ui/mainwindow.cpp" line="1132"/>
<location filename="../ui/mainwindow.cpp" line="1143"/>
<location filename="../ui/mainwindow.cpp" line="1212"/>
<location filename="../ui/mainwindow.cpp" line="1369"/>
<location filename="../ui/mainwindow.cpp" line="1390"/>
<location filename="../ui/mainwindow.cpp" line="1413"/>
<location filename="../ui/mainwindow.cpp" line="1474"/>
<location filename="../ui/mainwindow.cpp" line="1859"/>
<location filename="../ui/mainwindow.cpp" line="1875"/>
<source>OK</source>
<translation>Ok</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1393"/>
<location filename="../ui/mainwindow.cpp" line="1657"/>
<location filename="../ui/mainwindow.cpp" line="1395"/>
<location filename="../ui/mainwindow.cpp" line="1665"/>
<source>Screen projection loading error</source>
<translation>Screen projection loading error</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1395"/>
<location filename="../ui/mainwindow.cpp" line="1659"/>
<location filename="../ui/mainwindow.cpp" line="1397"/>
<location filename="../ui/mainwindow.cpp" line="1667"/>
<source>Please check whether to install the projection expansion package [kylin connectivity tools]</source>
<translation>Please check whether to install the projection expansion package [kylin connectivity tools]</translation>
</message>
@ -610,23 +611,23 @@
<translation type="vanished">QQ</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1647"/>
<location filename="../ui/mainwindow.cpp" line="1655"/>
<source>Uploaded to</source>
<translation>Uploaded to</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1623"/>
<location filename="../ui/mainwindow.cpp" line="1625"/>
<source>Downloaded to</source>
<translation>Downloaded to</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1845"/>
<location filename="../ui/mainwindow.cpp" line="1860"/>
<location filename="../ui/mainwindow.cpp" line="1853"/>
<location filename="../ui/mainwindow.cpp" line="1868"/>
<source>Request sent successfully!</source>
<translation>Request sent successfully!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1846"/>
<location filename="../ui/mainwindow.cpp" line="1854"/>
<source>The connection request has been sent to the selected device. Please click [YES] in the opposite pop-up window</source>
<translation>The connection request has been sent to the selected device. Please click [YES] in the opposite pop-up window</translation>
</message>
@ -971,9 +972,8 @@
<context>
<name>QObject</name>
<message>
<location filename="../main.cpp" line="106"/>
<source>In order to ensure the normal operation of the program, please install the VLC program first!</source>
<translation>In order to ensure the normal operation of the program, please install the VLC program first!</translation>
<translation type="vanished">In order to ensure the normal operation of the program, please install the VLC program first!</translation>
</message>
<message>
<source>Picture</source>
@ -1027,12 +1027,17 @@
<context>
<name>SearchDeviceWin</name>
<message>
<location filename="../ui/connectinterface/searchdevicewin.cpp" line="48"/>
<location filename="../ui/connectinterface/searchdevicewin.cpp" line="40"/>
<source>Searching for nearby available devices...</source>
<translation>Searching for nearby available devices...</translation>
</message>
<message>
<location filename="../ui/connectinterface/searchdevicewin.cpp" line="160"/>
<location filename="../ui/connectinterface/searchdevicewin.cpp" line="76"/>
<source>No network</source>
<translation>No network</translation>
</message>
<message>
<location filename="../ui/connectinterface/searchdevicewin.cpp" line="171"/>
<source>Search</source>
<translation>Search</translation>
</message>
@ -1040,27 +1045,20 @@
<context>
<name>SuspendTabBar</name>
<message>
<location filename="../pcscreenmanage/suspendtabbar.cpp" line="101"/>
<location filename="../pcscreenmanage/suspendtabbar.cpp" line="176"/>
<source>Back to the desktop</source>
<translation>Back to the desktop</translation>
<translation type="vanished">Back to the desktop</translation>
</message>
<message>
<location filename="../pcscreenmanage/suspendtabbar.cpp" line="105"/>
<source>Resume screen projection</source>
<translation>Resume screen projection</translation>
<translation type="vanished">Resume screen projection</translation>
</message>
<message>
<location filename="../pcscreenmanage/suspendtabbar.cpp" line="175"/>
<location filename="../pcscreenmanage/suspendtabbar.cpp" line="213"/>
<source>Counter control (activate Ctrl+H, cancel Ctrl+G)</source>
<translation>Counter control (activate Ctrl+H, cancel Ctrl+G)</translation>
<translation type="vanished">Counter control (activate Ctrl+H, cancel Ctrl+G)</translation>
</message>
<message>
<location filename="../pcscreenmanage/suspendtabbar.cpp" line="177"/>
<location filename="../pcscreenmanage/suspendtabbar.cpp" line="214"/>
<source>End screen projection</source>
<translation>End screen projection</translation>
<translation type="vanished">End screen projection</translation>
</message>
</context>
<context>
@ -1192,7 +1190,7 @@
<context>
<name>VideoForm</name>
<message>
<location filename="../projection/device/deviceui/videoform.cpp" line="838"/>
<location filename="../projection/device/deviceui/videoform.cpp" line="812"/>
<source>Control device not supported</source>
<translation>Control device not supported</translation>
</message>
@ -1200,54 +1198,54 @@
<context>
<name>VideoTitle</name>
<message>
<location filename="../projection/uibase/videotitle.cpp" line="39"/>
<location filename="../projection/uibase/videotitle.cpp" line="43"/>
<source>kylin-connectivity</source>
<translation>kylin-connectivity</translation>
</message>
<message>
<location filename="../projection/uibase/videotitle.cpp" line="120"/>
<location filename="../projection/uibase/videotitle.cpp" line="162"/>
<location filename="../projection/uibase/videotitle.cpp" line="124"/>
<location filename="../projection/uibase/videotitle.cpp" line="166"/>
<source>Hide Navigation Button</source>
<translation>Hide Navigation Button</translation>
</message>
<message>
<location filename="../projection/uibase/videotitle.cpp" line="121"/>
<location filename="../projection/uibase/videotitle.cpp" line="125"/>
<source>Stay on top</source>
<translation>Stay on top</translation>
</message>
<message>
<location filename="../projection/uibase/videotitle.cpp" line="122"/>
<location filename="../projection/uibase/videotitle.cpp" line="186"/>
<location filename="../projection/uibase/videotitle.cpp" line="126"/>
<location filename="../projection/uibase/videotitle.cpp" line="190"/>
<source>FullScreen</source>
<translation>FullScreen</translation>
</message>
<message>
<location filename="../projection/uibase/videotitle.cpp" line="123"/>
<location filename="../projection/uibase/videotitle.cpp" line="127"/>
<source>Mouse sensitivity</source>
<translation>Mouse sensitivity</translation>
</message>
<message>
<location filename="../projection/uibase/videotitle.cpp" line="124"/>
<location filename="../projection/uibase/videotitle.cpp" line="128"/>
<source>Quit</source>
<translation>Quit</translation>
</message>
<message>
<location filename="../projection/uibase/videotitle.cpp" line="159"/>
<location filename="../projection/uibase/videotitle.cpp" line="163"/>
<source>Show Navigation Button</source>
<translation>Show Navigation Button</translation>
</message>
<message>
<location filename="../projection/uibase/videotitle.cpp" line="172"/>
<location filename="../projection/uibase/videotitle.cpp" line="176"/>
<source>Stay On Top</source>
<translation>Stay On Top</translation>
</message>
<message>
<location filename="../projection/uibase/videotitle.cpp" line="176"/>
<location filename="../projection/uibase/videotitle.cpp" line="180"/>
<source>Cancel Stay On Top</source>
<translation>Cancel Stay On Top</translation>
</message>
<message>
<location filename="../projection/uibase/videotitle.cpp" line="189"/>
<location filename="../projection/uibase/videotitle.cpp" line="193"/>
<source>Cancel FullScreen</source>
<translation>Cancel FullScreen</translation>
</message>

View File

@ -320,7 +320,7 @@
<name>MainWindow</name>
<message>
<location filename="../ui/mainwindow.cpp" line="381"/>
<location filename="../ui/mainwindow.cpp" line="1300"/>
<location filename="../ui/mainwindow.cpp" line="1301"/>
<source>kylin-connectivity</source>
<translation></translation>
</message>
@ -359,79 +359,79 @@
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="677"/>
<location filename="../ui/mainwindow.cpp" line="1288"/>
<location filename="../ui/mainwindow.cpp" line="1289"/>
<source>file download failed</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1002"/>
<location filename="../ui/mainwindow.cpp" line="1003"/>
<source>Connection request received from&quot;</source>
<translation> &quot;</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1002"/>
<location filename="../ui/mainwindow.cpp" line="1328"/>
<location filename="../ui/mainwindow.cpp" line="1003"/>
<location filename="../ui/mainwindow.cpp" line="1329"/>
<source>&quot;</source>
<translation>&quot; </translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1003"/>
<location filename="../ui/mainwindow.cpp" line="1004"/>
<source>After consent, the other party can view and download all the files on the device, and can share the other party&apos;s desktop to this screen.</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1009"/>
<location filename="../ui/mainwindow.cpp" line="1334"/>
<location filename="../ui/mainwindow.cpp" line="1010"/>
<location filename="../ui/mainwindow.cpp" line="1335"/>
<source>NO</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1008"/>
<location filename="../ui/mainwindow.cpp" line="1333"/>
<location filename="../ui/mainwindow.cpp" line="1009"/>
<location filename="../ui/mainwindow.cpp" line="1334"/>
<source>YES</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1023"/>
<location filename="../ui/mainwindow.cpp" line="1346"/>
<location filename="../ui/mainwindow.cpp" line="1024"/>
<location filename="../ui/mainwindow.cpp" line="1347"/>
<source>The other party has refused your screen projection request!</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1024"/>
<location filename="../ui/mainwindow.cpp" line="1347"/>
<location filename="../ui/mainwindow.cpp" line="1025"/>
<location filename="../ui/mainwindow.cpp" line="1348"/>
<source>Failed to cast the screen. Please contact the other party and try again.</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1028"/>
<location filename="../ui/mainwindow.cpp" line="1029"/>
<source>RECONNECT</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1029"/>
<location filename="../ui/mainwindow.cpp" line="1400"/>
<location filename="../ui/mainwindow.cpp" line="1670"/>
<location filename="../ui/mainwindow.cpp" line="1030"/>
<location filename="../ui/mainwindow.cpp" line="1401"/>
<location filename="../ui/mainwindow.cpp" line="1671"/>
<source>CLOSE</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1129"/>
<location filename="../ui/mainwindow.cpp" line="1130"/>
<source>Please install kylin-assistant on the Android terminal!</source>
<translation>app</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1140"/>
<location filename="../ui/mainwindow.cpp" line="1141"/>
<source>Please use the USB to connect your phone device!</source>
<translation>使USB连接手机设备</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1153"/>
<location filename="../ui/mainwindow.cpp" line="1154"/>
<source>Connection error</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1155"/>
<location filename="../ui/mainwindow.cpp" line="1156"/>
<source>Connection timed out</source>
<translation></translation>
</message>
@ -448,90 +448,90 @@
<translation type="vanished"></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1301"/>
<location filename="../ui/mainwindow.cpp" line="1302"/>
<source>Version:</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1303"/>
<location filename="../ui/mainwindow.cpp" line="1304"/>
<source>Mobile Assistant is an interconnection tool of Android device and Kirin operating system, which supports Android file synchronization, file transfer, screen mirroring and other functions, which is simple and fast to operate</source>
<translation>Android文件同步</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1328"/>
<location filename="../ui/mainwindow.cpp" line="1329"/>
<source>Received screen projection request from &quot;</source>
<translation> &quot;</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1329"/>
<location filename="../ui/mainwindow.cpp" line="1330"/>
<source>After consent, the other party can share the device desktop to this screen.</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1351"/>
<location filename="../ui/mainwindow.cpp" line="1352"/>
<source>Again</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1352"/>
<location filename="../ui/mainwindow.cpp" line="1353"/>
<source>Close</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1363"/>
<location filename="../ui/mainwindow.cpp" line="1364"/>
<source>The other party agreed to your screen projection request!</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1364"/>
<location filename="../ui/mainwindow.cpp" line="1365"/>
<source>The screen is being cast, please wait...</source>
<translation>...</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1384"/>
<location filename="../ui/mainwindow.cpp" line="1407"/>
<location filename="../ui/mainwindow.cpp" line="1385"/>
<location filename="../ui/mainwindow.cpp" line="1408"/>
<source>End of screen projection</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1385"/>
<location filename="../ui/mainwindow.cpp" line="1408"/>
<location filename="../ui/mainwindow.cpp" line="1386"/>
<location filename="../ui/mainwindow.cpp" line="1409"/>
<source>The other party has finished the screen projection function.</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1471"/>
<location filename="../ui/mainwindow.cpp" line="1472"/>
<source>Search data loading failed!</source>
<translation>!</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1869"/>
<location filename="../ui/mainwindow.cpp" line="1870"/>
<source>The screen projection request has been sent to the connected device. Please click [Agree] in the opposite pop-up window</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="875"/>
<location filename="../ui/mainwindow.cpp" line="1131"/>
<location filename="../ui/mainwindow.cpp" line="1142"/>
<location filename="../ui/mainwindow.cpp" line="1211"/>
<location filename="../ui/mainwindow.cpp" line="1368"/>
<location filename="../ui/mainwindow.cpp" line="1389"/>
<location filename="../ui/mainwindow.cpp" line="1412"/>
<location filename="../ui/mainwindow.cpp" line="1473"/>
<location filename="../ui/mainwindow.cpp" line="1858"/>
<location filename="../ui/mainwindow.cpp" line="1874"/>
<location filename="../ui/mainwindow.cpp" line="1132"/>
<location filename="../ui/mainwindow.cpp" line="1143"/>
<location filename="../ui/mainwindow.cpp" line="1212"/>
<location filename="../ui/mainwindow.cpp" line="1369"/>
<location filename="../ui/mainwindow.cpp" line="1390"/>
<location filename="../ui/mainwindow.cpp" line="1413"/>
<location filename="../ui/mainwindow.cpp" line="1474"/>
<location filename="../ui/mainwindow.cpp" line="1859"/>
<location filename="../ui/mainwindow.cpp" line="1875"/>
<source>OK</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1394"/>
<location filename="../ui/mainwindow.cpp" line="1664"/>
<location filename="../ui/mainwindow.cpp" line="1395"/>
<location filename="../ui/mainwindow.cpp" line="1665"/>
<source>Screen projection loading error</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1396"/>
<location filename="../ui/mainwindow.cpp" line="1666"/>
<location filename="../ui/mainwindow.cpp" line="1397"/>
<location filename="../ui/mainwindow.cpp" line="1667"/>
<source>Please check whether to install the projection expansion package [kylin connectivity tools]</source>
<translation>[kylin-connectivity-tools]</translation>
</message>
@ -592,23 +592,23 @@
<translation type="vanished">QQ</translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1654"/>
<location filename="../ui/mainwindow.cpp" line="1655"/>
<source>Uploaded to</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1624"/>
<location filename="../ui/mainwindow.cpp" line="1625"/>
<source>Downloaded to</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1852"/>
<location filename="../ui/mainwindow.cpp" line="1867"/>
<location filename="../ui/mainwindow.cpp" line="1853"/>
<location filename="../ui/mainwindow.cpp" line="1868"/>
<source>Request sent successfully!</source>
<translation></translation>
</message>
<message>
<location filename="../ui/mainwindow.cpp" line="1853"/>
<location filename="../ui/mainwindow.cpp" line="1854"/>
<source>The connection request has been sent to the selected device. Please click [YES] in the opposite pop-up window</source>
<translation></translation>
</message>
@ -1017,12 +1017,17 @@
<context>
<name>SearchDeviceWin</name>
<message>
<location filename="../ui/connectinterface/searchdevicewin.cpp" line="48"/>
<location filename="../ui/connectinterface/searchdevicewin.cpp" line="40"/>
<source>Searching for nearby available devices...</source>
<translation>...</translation>
</message>
<message>
<location filename="../ui/connectinterface/searchdevicewin.cpp" line="160"/>
<location filename="../ui/connectinterface/searchdevicewin.cpp" line="76"/>
<source>No network</source>
<translation></translation>
</message>
<message>
<location filename="../ui/connectinterface/searchdevicewin.cpp" line="171"/>
<source>Search</source>
<translation></translation>
</message>
@ -1148,7 +1153,7 @@
<context>
<name>VideoForm</name>
<message>
<location filename="../projection/device/deviceui/videoform.cpp" line="837"/>
<location filename="../projection/device/deviceui/videoform.cpp" line="812"/>
<source>Control device not supported</source>
<translation></translation>
</message>

View File

@ -87,6 +87,11 @@ void ConnectInterface::setTheme(PublicAttributes::Theme theme)
void ConnectInterface::setInterFaceCodeInfo(const QString wifiInfo)
{
if (wifiInfo.isEmpty()) {
m_searchWin->showNoNetWork();
} else {
m_searchWin->showLoad();
}
m_mobileConnectWin->setInterFaceCodeInfo(wifiInfo);
}

View File

@ -27,19 +27,11 @@ void SearchDeviceWin::initUI()
listWidgetHLayout->setSpacing(0);
listWidgetHLayout->addWidget(m_stackedWidget);
m_listWidget = new QListWidget(this);
m_listWidget->setContentsMargins(0, 0, 0, 0);
m_listWidget->setSpacing(8);
//设置显示图标模式
m_listWidget->setViewMode(QListView::IconMode);
//自适应布局
m_listWidget->setResizeMode(QListView::Adjust);
//列表中的图标不可拖动
m_listWidget->setMovement(QListView::Static);
//去边框
m_listWidget->setFrameShape(QListWidget::NoFrame);
m_stackedWidget->addWidget(m_listWidget);
QVBoxLayout *mainVLayout = new QVBoxLayout();
mainVLayout->setMargin(0);
mainVLayout->setSpacing(0);
mainVLayout->addWidget(m_stackedWidget);
this->setLayout(mainVLayout);
m_loadAnimation = new LoadAnimation;
m_loadAnimation->setHighLight();
@ -63,20 +55,39 @@ void SearchDeviceWin::initUI()
loadVLayout->addStretch();
loadWid->setLayout(loadVLayout);
m_stackedWidget->addWidget(loadWid);
m_stackedWidget->setCurrentIndex(1);
m_stackedWidget->setCurrentIndex(WinIndex::WinLoad);
QVBoxLayout *mainVLayout = new QVBoxLayout();
mainVLayout->setMargin(0);
mainVLayout->setSpacing(0);
mainVLayout->addWidget(m_stackedWidget);
this->setLayout(mainVLayout);
m_listWidget = new QListWidget(this);
m_listWidget->setContentsMargins(0, 0, 0, 0);
m_listWidget->setSpacing(8);
//设置显示图标模式
m_listWidget->setViewMode(QListView::IconMode);
//自适应布局
m_listWidget->setResizeMode(QListView::Adjust);
//列表中的图标不可拖动
m_listWidget->setMovement(QListView::Static);
//去边框
m_listWidget->setFrameShape(QListWidget::NoFrame);
m_stackedWidget->addWidget(m_listWidget);
m_noNetWorkLab = new QLabel(this);
m_noNetWorkLab->setAlignment(Qt::AlignCenter);
m_noNetWorkLab->setText(tr("No network"));
m_stackedWidget->addWidget(m_noNetWorkLab);
}
void SearchDeviceWin::showLoad()
{
isSearchInitFinish = false;
showSearchBtn(false);
m_stackedWidget->setCurrentIndex(1);
m_stackedWidget->setCurrentIndex(WinIndex::WinLoad);
}
void SearchDeviceWin::showNoNetWork()
{
showSearchBtn(false);
m_stackedWidget->setCurrentIndex(WinIndex::WinNoNetWork);
}
void SearchDeviceWin::setSearchBtnState(bool isShow)
@ -144,7 +155,7 @@ void SearchDeviceWin::setItemInfo(const QMap<QString, KCommon::DiscoveryDeviceIn
});
it++;
}
m_stackedWidget->setCurrentIndex(0);
m_stackedWidget->setCurrentIndex(WinIndex::WinRequest);
isSearchInitFinish = true;
if (isShowSearchBtn && isSearchInitFinish) {
showSearchBtn(true);

View File

@ -28,6 +28,8 @@ public:
void showLoad();
void showNoNetWork();
void setSearchBtnState(bool isShow);
void changeFontSize(double fontSize);
@ -46,17 +48,22 @@ private:
void showSearchBtn(bool isShow);
private:
QListWidget *m_listWidget = nullptr;
enum WinIndex {
WinLoad = 0, // 加载页面
WinRequest, // 结果页面
WinNoNetWork, // 无网络页面
};
QListWidget *m_listWidget = nullptr;
LoadAnimation *m_loadAnimation = nullptr;
QStackedWidget *m_stackedWidget = nullptr;
LevitationButton *m_searchBtn = nullptr;
QLabel *m_noNetWorkLab = nullptr;
bool isShowSearchBtn = false;
bool isSearchInitFinish = false;
PublicAttributes::Theme m_theme = PublicAttributes::Theme::Light; // 当前主题
double m_fontSize = 10;
Q_SIGNALS:
};
#endif // SEARCHDEVICEWIN_H

View File

@ -976,6 +976,7 @@ void MainWindow::slotWifiConnected(QString wifiIP)
m_wifiIp = wifiIP;
if (m_connectInterfaceWin != nullptr) {
m_connectInterfaceWin->setInterFaceCodeInfo(wifiIP);
slotContinueSearch();
}
if (m_homepage != nullptr) {
m_homepage->setDeviceCode(GenerateTools::getIptoCode(m_wifiIp));

View File

@ -128,8 +128,6 @@ private:
void initPcSearchInfo();
void discInit();
void deInitDisc();
void connectMobileFileList();
void connectMobileStorage();
void addBackList(QStringList &list);
void checkAndroidHomePage();
void checkFileView(QStringList &pathList);
@ -142,8 +140,6 @@ Q_SIGNALS:
void sigConnected(QString);
void sigDisconnect();
void sigFileInfoList(const QMap<QString, FileInfo> &);
void sigClearSearchLine();
public Q_SLOTS:
// 外部
void setLocalPathList(const QStringList &list);