From 973805495d5cd13bfd3095ac2f666b4469e8f8a4 Mon Sep 17 00:00:00 2001 From: "huheng@kylinos.cn" Date: Fri, 12 May 2023 16:35:53 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(UI=E6=A8=A1=E5=9D=97):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AE=BE=E5=A4=87=E7=B1=BB=E5=9E=8B=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/util.h | 15 ++++++------- res/devicetype/tv.svg | 29 +++++++++++++++++++++++++ res/resources.qrc | 1 + ui/connectinterface/searchdevicewin.cpp | 2 +- 4 files changed, 38 insertions(+), 9 deletions(-) create mode 100644 res/devicetype/tv.svg diff --git a/common/util.h b/common/util.h index e1b0df6..f04fd36 100644 --- a/common/util.h +++ b/common/util.h @@ -7,17 +7,16 @@ #include -namespace KCommon -{ +namespace KCommon { enum DeviceType { - PC = 0, - Android = 1, + UNKNOWN = 0, + PC = 1, Phone = 2, + TV = 3, }; -struct DiscoveryDeviceInfo -{ +struct DiscoveryDeviceInfo { QString uuid; QString ip; QString port; @@ -28,6 +27,6 @@ struct DiscoveryDeviceInfo QString getUserName(); QString getHostName(); -} // namespace KCommon +} // namespace KCommon -#endif // KYLIN_CONNECTIVITY_UTIL_H +#endif // KYLIN_CONNECTIVITY_UTIL_H diff --git a/res/devicetype/tv.svg b/res/devicetype/tv.svg new file mode 100644 index 0000000..eea3981 --- /dev/null +++ b/res/devicetype/tv.svg @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/resources.qrc b/res/resources.qrc index 00ecda8..2f345a2 100644 --- a/res/resources.qrc +++ b/res/resources.qrc @@ -82,5 +82,6 @@ view/exit-dark-default.svg view/exit-hover.svg view/exit-light-default.svg + devicetype/tv.svg diff --git a/ui/connectinterface/searchdevicewin.cpp b/ui/connectinterface/searchdevicewin.cpp index ea566fa..1939e7e 100644 --- a/ui/connectinterface/searchdevicewin.cpp +++ b/ui/connectinterface/searchdevicewin.cpp @@ -131,7 +131,7 @@ void SearchDeviceWin::setItemInfo(const QMap