This commit is contained in:
zhuzichu 2023-10-11 11:18:48 +08:00
parent fecbf48482
commit a2e15fc3b0
6 changed files with 3 additions and 10 deletions

View File

@ -2,7 +2,6 @@ pragma Singleton
import QtQuick import QtQuick
import FluentUI import FluentUI
import "qrc:///example/qml/global"
FluObject{ FluObject{

View File

@ -2,7 +2,6 @@ pragma Singleton
import QtQuick import QtQuick
import FluentUI import FluentUI
import "qrc:///example/qml/global"
FluObject{ FluObject{

View File

@ -2,7 +2,6 @@ pragma Singleton
import QtQuick 2.15 import QtQuick 2.15
import FluentUI 1.0 import FluentUI 1.0
import "qrc:///example/qml/global"
FluObject{ FluObject{

View File

@ -2,7 +2,6 @@ pragma Singleton
import QtQuick 2.15 import QtQuick 2.15
import FluentUI 1.0 import FluentUI 1.0
import "qrc:///example/qml/global"
FluObject{ FluObject{

View File

@ -22,7 +22,6 @@ FluApp::~FluApp(){
void FluApp::init(QQuickWindow *window){ void FluApp::init(QQuickWindow *window){
this->_application = window; this->_application = window;
qputenv("QT_QUICK_CONTROLS_STYLE","Basic");
FramelessHelper::Quick::initialize(); FramelessHelper::Quick::initialize();
FramelessConfig::instance()->set(Global::Option::DisableLazyInitializationForMicaMaterial); FramelessConfig::instance()->set(Global::Option::DisableLazyInitializationForMicaMaterial);
FramelessConfig::instance()->set(Global::Option::CenterWindowBeforeShow); FramelessConfig::instance()->set(Global::Option::CenterWindowBeforeShow);

View File

@ -322,7 +322,6 @@ Rectangle {
id: column_text id: column_text
text: modelData text: modelData
anchors.fill: parent anchors.fill: parent
font.bold: true
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
} }
@ -464,6 +463,9 @@ Rectangle {
return [] return []
} }
} }
onContentYChanged: {
forceLayout()
}
delegate: Rectangle{ delegate: Rectangle{
id:item_control id:item_control
readonly property real cellPadding: 8 readonly property real cellPadding: 8
@ -482,10 +484,6 @@ Rectangle {
id:row_text id:row_text
anchors.centerIn: parent anchors.centerIn: parent
text: row + 1 text: row + 1
font.bold:{
d.selectionFlag
return true
}
} }
MouseArea{ MouseArea{
id:item_control_mouse id:item_control_mouse