Compare commits

...

2 Commits

Author SHA1 Message Date
朱子楚\zhuzi 163c07f7b7 update 2024-02-25 14:37:26 +08:00
朱子楚\zhuzi ca2ac72fa8 update 2024-02-25 13:44:11 +08:00
5 changed files with 13 additions and 8 deletions

View File

@ -160,6 +160,7 @@ FluScrollablePage{
onPositiveClicked:{
showSuccess("点击确定按钮")
}
}
dialog.open()'
}

View File

@ -160,6 +160,7 @@ FluScrollablePage{
onPositiveClicked:{
showSuccess("点击确定按钮")
}
}
dialog.open()'
}

View File

@ -192,6 +192,7 @@ void Log::setup(const QString &app,int level)
qInfo()<<"===================================================";
qInfo()<<"[AppName]"<<g_app;
qInfo()<<"[AppVersion]"<<APPLICATION_VERSION;
qInfo()<<"[QtVersion]"<<QT_VERSION_STR;
#ifdef WIN32
qInfo()<<"[ProcessId]"<<QString::number(_getpid());
#else

View File

@ -532,12 +532,13 @@ Rectangle {
syncView: table_view
clip: true
model: TableModel{
TableModelColumn {}
id:model_rows
TableModelColumn { display: "rowIndex" }
}
Connections{
target: table_model
function onRowCountChanged(){
header_vertical.model.rows = table_model.rows
model_rows.rows = Array.from({length: table_model.rows.length}, (_, i) => ({rowIndex:i+1}));
}
}
onContentYChanged:{
@ -592,7 +593,7 @@ Rectangle {
FluText{
id:row_text
anchors.centerIn: parent
text: row + 1
text: model.display
}
MouseArea{
id:item_control_mouse

View File

@ -533,12 +533,13 @@ Rectangle {
syncView: table_view
clip: true
model: TableModel{
TableModelColumn {}
id:model_rows
TableModelColumn { display: "rowIndex" }
}
Connections{
target: table_model
function onRowCountChanged(){
header_vertical.model.rows = table_model.rows
model_rows.rows = Array.from({length: table_model.rows.length}, (_, i) => ({rowIndex:i+1}));
}
}
onContentYChanged:{
@ -593,7 +594,7 @@ Rectangle {
FluText{
id:row_text
anchors.centerIn: parent
text: row + 1
text: model.display
}
MouseArea{
id:item_control_mouse