Skip to content

ui_qml.models.estimate_models ​

源文件 ui_qml/models/estimate_models.py · 由 scripts/gen_api_docs.py 自动生成,请勿手改

模块说明:

估价页面 — 表格模型

类 ​

class EstimateTableModel(继承 QAbstractTableModel) ​

估价表格模型

定义行:29

方法 ​

__init__ ​
python
def __init__(self)

⚠️ 待补 docstring

此函数暂无 docstring,欢迎补充。

定义行:32

set_discount ​
python
def set_discount(self, discount: float)

⚠️ 待补 docstring

此函数暂无 docstring,欢迎补充。

定义行:39

set_rows ​
python
def set_rows(self, rows: list[dict])

⚠️ 待补 docstring

此函数暂无 docstring,欢迎补充。

定义行:47

_recalc_totals ​
python
def _recalc_totals(self)

⚠️ 待补 docstring

此函数暂无 docstring,欢迎补充。

定义行:54

add_row ​
python
def add_row(self, row_data: dict)

⚠️ 待补 docstring

此函数暂无 docstring,欢迎补充。

定义行:64

remove_row ​
python
def remove_row(self, row_idx: int)

⚠️ 待补 docstring

此函数暂无 docstring,欢迎补充。

定义行:75

clear_all ​
python
def clear_all(self)

⚠️ 待补 docstring

此函数暂无 docstring,欢迎补充。

定义行:81

get_rows ​
python
def get_rows(self) -> list[dict]

⚠️ 待补 docstring

此函数暂无 docstring,欢迎补充。

定义行:87

rowCount ​
python
def rowCount(self, parent=None)

⚠️ 待补 docstring

此函数暂无 docstring,欢迎补充。

定义行:90

columnCount ​
python
def columnCount(self, parent=None)

⚠️ 待补 docstring

此函数暂无 docstring,欢迎补充。

定义行:93

flags ​
python
def flags(self, index)

⚠️ 待补 docstring

此函数暂无 docstring,欢迎补充。

定义行:96

setData ​
python
def setData(self, index, value, role=Qt.ItemDataRole.EditRole)

⚠️ 待补 docstring

此函数暂无 docstring,欢迎补充。

定义行:103

data ​
python
def data(self, index, role=Qt.ItemDataRole.DisplayRole)

⚠️ 待补 docstring

此函数暂无 docstring,欢迎补充。

定义行:119

_get_display ​
python
def _get_display(self, row: dict, col: int) -> str

⚠️ 待补 docstring

此函数暂无 docstring,欢迎补充。

定义行:152

headerData ​
python
def headerData(self, section, orientation, role=Qt.ItemDataRole.DisplayRole)

⚠️ 待补 docstring

此函数暂无 docstring,欢迎补充。

定义行:177

sort ​
python
def sort(self, column, order=Qt.SortOrder.AscendingOrder)

⚠️ 待补 docstring

此函数暂无 docstring,欢迎补充。

定义行:187