PdmTableView Class
Header: | #include <PdmTableView> |
Inherits: | QWidget |
Public Functions
PdmTableView(QWidget *parent = nullptr) | |
~PdmTableView() |
- 213 public functions inherited from QWidget
Public Slots
QVariantList | allDataMap(const QString &iIndexKeyStr = QString( "" ), const QString &iVisibleKeyStr = QString( "" ), bool iIncludeHiddenBol = true) |
QVariantList | allPrimaryKey(bool iIncludeHiddenBol = true) |
QModelIndex | appendRow(const QVariant &iRowDataVar) |
QModelIndexList | appendRows(const QVariantList &iRowsDataVarLst) |
void | clearData() |
QMenu * | contextMenu() |
QVariant | currentPrimaryKey() |
QVariant | currentRowDataList() |
QVariant | currentRowDataMap() |
QStringList | dataKeyList() const |
int | dragMode() const |
QModelIndex | findRow(const QVariant &iValueVar, const QString &iColnameStr = QString( "" )) |
QModelIndexList | findRows(const QVariant &iValueVar, const QString &iColnameStr = QString( "" ), int iFilterInt = 1) |
QModelIndexList | findRows(const QVariantList &iValueVarLst, const QString &iColnameStr = QString( "" ), int iFilterInt = 1) |
QModelIndexList | findRows(const QRegExp &iRegExp, const QStringList &iColnameStrLst = QStringList(), int iFilterInt = 1) |
int | gridLineMode() const |
QVariantList | headerItem() |
THeaderViewPopup * | headerPopup() |
bool | isColumnVisible(const QString iColNameStr) |
bool | isColumnVisible(int iColumnInt) |
QMap<QString, bool> | isColumnVisible(const QStringList &iColumnStrLst = QStringList()) |
void | loadData(const QVariantList &iDataVarLst) |
void | moveRowsBottom(const QModelIndexList &iModelIndexLst) |
void | moveRowsDown(const QModelIndexList &iModelIndexLst) |
void | moveRowsTop(const QModelIndexList &iModelIndexLst) |
void | moveRowsUp(const QModelIndexList &iModelIndexLst) |
void | moveSelectedRowsBottom() |
void | moveSelectedRowsDown() |
void | moveSelectedRowsTop() |
void | moveSelectedRowsUp() |
QModelIndex | prependRow(const QVariant &iRowDataVar) |
QModelIndexList | prependRows(const QVariantList &iRowsDataVarLst) |
void | refreshRowVisible() |
bool | removeRow(const QModelIndex &iModelIndex) |
bool | removeRows(const QModelIndexList &iModelIndexLst) |
bool | removeSelectedRows() |
void | restorSaveState(const QString &iData) |
QVariantMap | rowDataMap(const QString &iPrimaryKeyStr) |
QString | saveState() |
void | selectRow(const QVariant &iKeyVar, QItemSelectionModel::SelectionFlags iFlag = QItemSelectionModel::Select | QItemSelectionModel::Rows) |
void | selectRow(const QModelIndex &iKeyModelIndex, QItemSelectionModel::SelectionFlags iFlag = QItemSelectionModel::Select | QItemSelectionModel::Rows) |
void | selectRows(const QVariantList &iKeyVarLst, QItemSelectionModel::SelectionFlags iFlag = QItemSelectionModel::Select | QItemSelectionModel::Rows) |
void | selectRows(const QModelIndexList &iKeyModelIndex, QItemSelectionModel::SelectionFlags iFlag = QItemSelectionModel::Select | QItemSelectionModel::Rows) |
QModelIndexList | selectedIndexes() |
QVariantList | selectedPrimaryKeys(bool iIncludeHiddenBol = false) |
QVariantList | selectedRowDataMaps(bool iIncludeHiddenBol = false) |
void | setColumnState(int iColumnInt, const QVariantMap &iStateVarMap, bool iResetBol = false) |
void | setColumnVisible(const QString iColNameStr, bool iVisibleBol) |
void | setColumnVisible(int iColumnInt, bool iVisibleBol) |
void | setColumnVisible(QMap<QString, bool> iVisiblesBol) |
void | setContextMenu(QMenu *iMenu) |
void | setDataKeyList(const QStringList &iKeysStrLst) |
void | setDragMode(int iDragModeInt) |
void | setGridLineMode(int iModeInt) |
void | setHeaderItem(const QVariantList &iHeaderItemVarLst) |
void | setHeaderPopupEnabled(bool iBol) |
void | setMoveBarVisible(bool iVisible) |
void | setPrimaryKey(const QString &iKeyStr) |
void | setRowData(const QModelIndex &iModelIndex, const QVariant &iRowDataVar, bool iResetBol = false) |
void | setRowDataByPrimaryKey(const QVariant &iPrimaryKey, const QVariant &iRowDataVar, bool iResetBol = false) |
void | setRowKeyValue(const QModelIndex &iModelIndex, const QString &iKeyStr, const QVariant &iValueVar) |
void | setRowKeyValueByPrimaryKey(const QVariant &iPrimaryKey, const QString &iKeyStr, const QVariant &iValueVar) |
void | setRowVisible(const QModelIndex &iModelIndex, bool iVisibleBol) |
void | setVisibleKey(const QString &iKeyStr) |
void | showContextMenu(const QPoint &iPoint) |
void | showHeaderPopup(const QPoint &iPoint) |
void | unselectAll() |
- 19 public slots inherited from QWidget
Signals
void | anyDataChanged() |
void | dataChanged() |
void | indexWidgetCommit(QWidget *oWidget, const QModelIndex &iModelIndex) |
void | rowCheckStateChanged(QModelIndex) |
void | rowsInserted() |
void | rowsMoved() |
void | rowsRemoved() |
- 3 signals inherited from QWidget
Additional Inherited Members
- 58 properties inherited from QWidget
- 5 static public members inherited from QWidget
- 35 protected functions inherited from QWidget
- 1 protected slot inherited from QWidget
Detailed Description
Member Function Documentation
PdmTableView::PdmTableView(QWidget *parent = nullptr)
Default constructs an instance of PdmTableView.
PdmTableView::~PdmTableView()
Destroys the instance of PdmTableView.
[slot]
QVariantList PdmTableView::allDataMap(const QString &iIndexKeyStr = QString( "" ), const QString &iVisibleKeyStr = QString( "" ), bool iIncludeHiddenBol = true)
[slot]
QVariantList PdmTableView::allPrimaryKey(bool iIncludeHiddenBol = true)
[signal]
void PdmTableView::anyDataChanged()
[slot]
QModelIndex PdmTableView::appendRow(const QVariant &iRowDataVar)
[slot]
QModelIndexList PdmTableView::appendRows(const QVariantList &iRowsDataVarLst)
[slot]
void PdmTableView::clearData()
[slot]
QMenu *PdmTableView::contextMenu()
See also setContextMenu().
[slot]
QVariant PdmTableView::currentPrimaryKey()
[slot]
QVariant PdmTableView::currentRowDataList()
[slot]
QVariant PdmTableView::currentRowDataMap()
[signal]
void PdmTableView::dataChanged()
[slot]
QStringList PdmTableView::dataKeyList() const
See also setDataKeyList().
[slot]
int PdmTableView::dragMode() const
See also setDragMode().
[slot]
QModelIndex PdmTableView::findRow(const QVariant &iValueVar, const QString &iColnameStr = QString( "" ))
[slot]
QModelIndexList PdmTableView::findRows(const QVariant &iValueVar, const QString &iColnameStr = QString( "" ), int iFilterInt = 1)
[slot]
QModelIndexList PdmTableView::findRows(const QVariantList &iValueVarLst, const QString &iColnameStr = QString( "" ), int iFilterInt = 1)
[slot]
QModelIndexList PdmTableView::findRows(const QRegExp &iRegExp, const QStringList &iColnameStrLst = QStringList(), int iFilterInt = 1)
[slot]
int PdmTableView::gridLineMode() const
See also setGridLineMode().
[slot]
QVariantList PdmTableView::headerItem()
See also setHeaderItem().
[slot]
THeaderViewPopup *PdmTableView::headerPopup()
[signal]
void PdmTableView::indexWidgetCommit(QWidget *oWidget, const QModelIndex &iModelIndex)
[slot]
bool PdmTableView::isColumnVisible(const QString iColNameStr)
[slot]
bool PdmTableView::isColumnVisible(int iColumnInt)
[slot]
QMap<QString, bool> PdmTableView::isColumnVisible(const QStringList &iColumnStrLst = QStringList())
[slot]
void PdmTableView::loadData(const QVariantList &iDataVarLst)
[slot]
void PdmTableView::moveRowsBottom(const QModelIndexList &iModelIndexLst)
[slot]
void PdmTableView::moveRowsDown(const QModelIndexList &iModelIndexLst)
[slot]
void PdmTableView::moveRowsTop(const QModelIndexList &iModelIndexLst)
[slot]
void PdmTableView::moveRowsUp(const QModelIndexList &iModelIndexLst)
[slot]
void PdmTableView::moveSelectedRowsBottom()
[slot]
void PdmTableView::moveSelectedRowsDown()
[slot]
void PdmTableView::moveSelectedRowsTop()
[slot]
void PdmTableView::moveSelectedRowsUp()
[slot]
QModelIndex PdmTableView::prependRow(const QVariant &iRowDataVar)
[slot]
QModelIndexList PdmTableView::prependRows(const QVariantList &iRowsDataVarLst)
[slot]
void PdmTableView::refreshRowVisible()
[slot]
bool PdmTableView::removeRow(const QModelIndex &iModelIndex)
[slot]
bool PdmTableView::removeRows(const QModelIndexList &iModelIndexLst)
[slot]
bool PdmTableView::removeSelectedRows()
[slot]
void PdmTableView::restorSaveState(const QString &iData)
[signal]
void PdmTableView::rowCheckStateChanged(QModelIndex)
[slot]
QVariantMap PdmTableView::rowDataMap(const QString &iPrimaryKeyStr)
[signal]
void PdmTableView::rowsInserted()
[signal]
void PdmTableView::rowsMoved()
[signal]
void PdmTableView::rowsRemoved()
[slot]
QString PdmTableView::saveState()
[slot]
void PdmTableView::selectRow(const QVariant &iKeyVar, QItemSelectionModel::SelectionFlags iFlag = QItemSelectionModel::Select | QItemSelectionModel::Rows)
[slot]
void PdmTableView::selectRow(const QModelIndex &iKeyModelIndex, QItemSelectionModel::SelectionFlags iFlag = QItemSelectionModel::Select | QItemSelectionModel::Rows)
[slot]
void PdmTableView::selectRows(const QVariantList &iKeyVarLst, QItemSelectionModel::SelectionFlags iFlag = QItemSelectionModel::Select | QItemSelectionModel::Rows)
[slot]
void PdmTableView::selectRows(const QModelIndexList &iKeyModelIndex, QItemSelectionModel::SelectionFlags iFlag = QItemSelectionModel::Select | QItemSelectionModel::Rows)
[slot]
QModelIndexList PdmTableView::selectedIndexes()
[slot]
QVariantList PdmTableView::selectedPrimaryKeys(bool iIncludeHiddenBol = false)
[slot]
QVariantList PdmTableView::selectedRowDataMaps(bool iIncludeHiddenBol = false)
[slot]
void PdmTableView::setColumnState(int iColumnInt, const QVariantMap &iStateVarMap, bool iResetBol = false)
[slot]
void PdmTableView::setColumnVisible(const QString iColNameStr, bool iVisibleBol)
See also isColumnVisible().
[slot]
void PdmTableView::setColumnVisible(int iColumnInt, bool iVisibleBol)
[slot]
void PdmTableView::setColumnVisible(QMap<QString, bool> iVisiblesBol)
[slot]
void PdmTableView::setContextMenu(QMenu *iMenu)
See also contextMenu().
[slot]
void PdmTableView::setDataKeyList(const QStringList &iKeysStrLst)
See also dataKeyList().
[slot]
void PdmTableView::setDragMode(int iDragModeInt)
See also dragMode().
[slot]
void PdmTableView::setGridLineMode(int iModeInt)
See also gridLineMode().
[slot]
void PdmTableView::setHeaderItem(const QVariantList &iHeaderItemVarLst)
See also headerItem().