修改加载qml主题样式字段和button属性字段

This commit is contained in:
duchangfeng 2022-07-16 19:43:50 +08:00
parent ac66db7758
commit fbeae51c1b
3 changed files with 11 additions and 4 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
kylin-tablet-desktop-general (1.0.30.1-ok5) yangtze; urgency=medium
* 修改使用qml主题样式的问题
-- duchangfeng <duchangfeng@kylinos.cn> Sat, 16 Jul 2022 19:18:58 +0800
kylin-tablet-desktop-general (1.0.30.1-ok4) yangtze; urgency=medium
* 修复蓝牙图标无显示的问题

View File

@ -64,7 +64,7 @@ int main(int argc, char *argv[])
initUkuiLog4qt("kylin-tablet-desktop");
#endif
QQuickView qmlView;
QQuickStyle::setStyle("org.kylin.style");
QQuickStyle::setStyle("org.ukui.style");
// qml logger
// usage in qml:

View File

@ -19,7 +19,7 @@ import QtQml 2.15
import QtQuick.Layouts 1.15
import QtQuick.Controls 2.5
import QtQml.Models 2.2
import org.kylin.qqc2style.private 1.0 as StylePrivate
import org.ukui.qqc2style.private 1.0 as StylePrivate
Rectangle {
id: rectRoot
@ -64,7 +64,7 @@ Rectangle {
Button {
id: leftRectBtn
width: Style.widthScaleFactor * 126; height: Style.widthScaleFactor * 46
buttonType: "MinButton"
StylePrivate.StyleHelper.buttonType: "MinButton"
text: leftBtnText
onClicked: {
console.log("===取消卸载===")
@ -74,7 +74,7 @@ Rectangle {
Button {
id: rightRectBtn
width: Style.widthScaleFactor * 126; height: Style.widthScaleFactor * 46
buttonType: "blueButton"
StylePrivate.StyleHelper.buttonType: "blueButton"
text: rightBtnText
onClicked: {
console.log("===确认卸载===")