修改加载qml主题样式字段和button属性字段
This commit is contained in:
parent
ac66db7758
commit
fbeae51c1b
|
@ -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
|
||||
|
||||
* 修复蓝牙图标无显示的问题
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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("===确认卸载===")
|
||||
|
|
Loading…
Reference in New Issue