Compare commits
2 Commits
86c94c6c75
...
163c07f7b7
Author | SHA1 | Date |
---|---|---|
|
163c07f7b7 | |
|
ca2ac72fa8 |
|
@ -37,7 +37,7 @@ FluScrollablePage{
|
||||||
positiveText:"确定"
|
positiveText:"确定"
|
||||||
onPositiveClicked:{
|
onPositiveClicked:{
|
||||||
showSuccess("点击确定按钮")
|
showSuccess("点击确定按钮")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dialog.open()'
|
dialog.open()'
|
||||||
}
|
}
|
||||||
|
@ -159,6 +159,7 @@ FluScrollablePage{
|
||||||
positiveText:"确定"
|
positiveText:"确定"
|
||||||
onPositiveClicked:{
|
onPositiveClicked:{
|
||||||
showSuccess("点击确定按钮")
|
showSuccess("点击确定按钮")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
dialog.open()'
|
dialog.open()'
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ FluScrollablePage{
|
||||||
positiveText:"确定"
|
positiveText:"确定"
|
||||||
onPositiveClicked:{
|
onPositiveClicked:{
|
||||||
showSuccess("点击确定按钮")
|
showSuccess("点击确定按钮")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dialog.open()'
|
dialog.open()'
|
||||||
}
|
}
|
||||||
|
@ -159,6 +159,7 @@ FluScrollablePage{
|
||||||
positiveText:"确定"
|
positiveText:"确定"
|
||||||
onPositiveClicked:{
|
onPositiveClicked:{
|
||||||
showSuccess("点击确定按钮")
|
showSuccess("点击确定按钮")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
dialog.open()'
|
dialog.open()'
|
||||||
}
|
}
|
||||||
|
|
|
@ -192,6 +192,7 @@ void Log::setup(const QString &app,int level)
|
||||||
qInfo()<<"===================================================";
|
qInfo()<<"===================================================";
|
||||||
qInfo()<<"[AppName]"<<g_app;
|
qInfo()<<"[AppName]"<<g_app;
|
||||||
qInfo()<<"[AppVersion]"<<APPLICATION_VERSION;
|
qInfo()<<"[AppVersion]"<<APPLICATION_VERSION;
|
||||||
|
qInfo()<<"[QtVersion]"<<QT_VERSION_STR;
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
qInfo()<<"[ProcessId]"<<QString::number(_getpid());
|
qInfo()<<"[ProcessId]"<<QString::number(_getpid());
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -532,12 +532,13 @@ Rectangle {
|
||||||
syncView: table_view
|
syncView: table_view
|
||||||
clip: true
|
clip: true
|
||||||
model: TableModel{
|
model: TableModel{
|
||||||
TableModelColumn {}
|
id:model_rows
|
||||||
|
TableModelColumn { display: "rowIndex" }
|
||||||
}
|
}
|
||||||
Connections{
|
Connections{
|
||||||
target: table_model
|
target: table_model
|
||||||
function onRowCountChanged(){
|
function onRowCountChanged(){
|
||||||
header_vertical.model.rows = table_model.rows
|
model_rows.rows = Array.from({length: table_model.rows.length}, (_, i) => ({rowIndex:i+1}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onContentYChanged:{
|
onContentYChanged:{
|
||||||
|
@ -592,7 +593,7 @@ Rectangle {
|
||||||
FluText{
|
FluText{
|
||||||
id:row_text
|
id:row_text
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: row + 1
|
text: model.display
|
||||||
}
|
}
|
||||||
MouseArea{
|
MouseArea{
|
||||||
id:item_control_mouse
|
id:item_control_mouse
|
||||||
|
|
|
@ -533,12 +533,13 @@ Rectangle {
|
||||||
syncView: table_view
|
syncView: table_view
|
||||||
clip: true
|
clip: true
|
||||||
model: TableModel{
|
model: TableModel{
|
||||||
TableModelColumn {}
|
id:model_rows
|
||||||
|
TableModelColumn { display: "rowIndex" }
|
||||||
}
|
}
|
||||||
Connections{
|
Connections{
|
||||||
target: table_model
|
target: table_model
|
||||||
function onRowCountChanged(){
|
function onRowCountChanged(){
|
||||||
header_vertical.model.rows = table_model.rows
|
model_rows.rows = Array.from({length: table_model.rows.length}, (_, i) => ({rowIndex:i+1}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onContentYChanged:{
|
onContentYChanged:{
|
||||||
|
@ -593,7 +594,7 @@ Rectangle {
|
||||||
FluText{
|
FluText{
|
||||||
id:row_text
|
id:row_text
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: row + 1
|
text: model.display
|
||||||
}
|
}
|
||||||
MouseArea{
|
MouseArea{
|
||||||
id:item_control_mouse
|
id:item_control_mouse
|
||||||
|
|
Loading…
Reference in New Issue