#include <xtreewidget.h>
Public Types | |
| enum | PopulateStyle { Replace, Append } |
Properties | |
| QString | altDragString |
| bool | alwaysForgetful |
| QString | dragString |
| bool | populateLinear |
Public Slots | |
| void | addColumn (const QString &, int, int, bool=true, const QString=QString(), const QString=QString(), const int scale=0) |
| void | clear () |
| void | hideColumn (int colnum) |
Signals | |
| void | currentItemChanged (XTreeWidgetItem *, XTreeWidgetItem *) |
| void | itemActivated (XTreeWidgetItem *item, int column) |
| void | itemChanged (XTreeWidgetItem *item, int column) |
| void | itemClicked (XTreeWidgetItem *item, int column) |
| void | itemCollapsed (XTreeWidgetItem *item) |
| void | itemDoubleClicked (XTreeWidgetItem *item, int column) |
| void | itemEntered (XTreeWidgetItem *item, int column) |
| void | itemExpanded (XTreeWidgetItem *item) |
| void | itemPressed (XTreeWidgetItem *item, int column) |
| void | itemSelected (int) |
| void | newId (int) |
| void | populated () |
| void | populateHeaderMenu (QMenu *, QTreeWidgetItem *, int) |
| void | populateMenu (QMenu *, QTreeWidgetItem *) |
| void | populateMenu (QMenu *, QTreeWidgetItem *, int) |
| void | populateMenu (QMenu *, XTreeWidgetItem *) |
| void | populateMenu (QMenu *, XTreeWidgetItem *, int) |
| void | resorted () |
| void | valid (bool) |
Public Member Functions | |
| XTreeWidget (QWidget *) | |
| ~XTreeWidget () | |
| Q_INVOKABLE void | addTopLevelItem (XTreeWidgetItem *item) |
| Q_INVOKABLE void | addTopLevelItems (const QList< XTreeWidgetItem * > &items) |
| QString | altDragString () const |
| Q_INVOKABLE int | altId () const |
| bool | alwaysForgetful () |
| Q_INVOKABLE void | closePersistentEditor (XTreeWidgetItem *item, int column=0) |
| virtual Q_INVOKABLE QString | column (const int) const |
| virtual Q_INVOKABLE int | column (const QString) const |
| Q_INVOKABLE int | columnCount () const |
| Q_INVOKABLE int | currentColumn () const |
| virtual Q_INVOKABLE XTreeWidgetItem * | currentItem () const |
| QString | dragString () const |
| Q_INVOKABLE void | editItem (XTreeWidgetItem *item, int column=0) |
| Q_INVOKABLE QList< XTreeWidgetItem * > | findItems (const QString &text, Qt::MatchFlags flags, int column=0, int role=0) const |
| Q_INVOKABLE XTreeWidgetItem * | findXTreeWidgetItemWithId (const XTreeWidget *ptree, const int pid) |
| Q_INVOKABLE XTreeWidgetItem * | findXTreeWidgetItemWithId (const XTreeWidgetItem *ptreeitem, const int pid) |
| Q_INVOKABLE QTreeWidgetItem * | headerItem () const |
| void | hideColumn (const QString &) |
| Q_INVOKABLE int | id () const |
| Q_INVOKABLE int | id (const QString) const |
| Q_INVOKABLE int | indexOfTopLevelItem (XTreeWidgetItem *item) const |
| Q_INVOKABLE void | insertTopLevelItem (int index, XTreeWidgetItem *item) |
| Q_INVOKABLE void | insertTopLevelItems (int index, const QList< XTreeWidgetItem * > &items) |
| Q_INVOKABLE XTreeWidgetItem * | invisibleRootItem () const |
| Q_INVOKABLE bool | isFirstItemColumnSpanned (const XTreeWidgetItem *item) const |
| Q_INVOKABLE XTreeWidgetItem * | itemAbove (const XTreeWidgetItem *item) const |
| Q_INVOKABLE QTreeWidgetItem * | itemAt (const QPoint &p) const |
| Q_INVOKABLE QTreeWidgetItem * | itemAt (int x, int y) const |
| Q_INVOKABLE QTreeWidgetItem * | itemBelow (const XTreeWidgetItem *item) const |
| Q_INVOKABLE QWidget * | itemWidget (XTreeWidgetItem *item, int column) const |
| void | keyPressEvent (QKeyEvent *e) |
| void | merge (int low, int high, int mid) |
| void | mergeSort (int low, int high) |
| Q_INVOKABLE void | moveColumn (int from, int to) |
| Q_INVOKABLE void | openPersistentEditor (XTreeWidgetItem *item, int column=0) |
| void | populate (const QString &, bool=false) |
| void | populate (const QString &, int, bool=false) |
| Q_INVOKABLE void | populate (XSqlQuery, bool=false, PopulateStyle=Replace) |
| Q_INVOKABLE void | populate (XSqlQuery, int, bool=false, PopulateStyle=Replace) |
| bool | populateLinear () |
| Q_INVOKABLE QVariant | rawValue (const QString colname) const |
| Q_INVOKABLE void | removeItemWidget (XTreeWidgetItem *item, int column) |
| void | sCopyCellToClipboard () |
| void | sCopyColumnToClipboard () |
| void | sCopyRowToClipboard () |
| void | sCopyVisibleToClipboard () |
| Q_INVOKABLE QList< XTreeWidgetItem * > | selectedItems () const |
| void | setAltDragString (QString) |
| void | setAlwaysForgetful (bool alwaysForgetful=true) |
| virtual Q_INVOKABLE void | setColumnCount (int columns) |
| virtual Q_INVOKABLE void | setColumnLocked (int, bool) |
| virtual Q_INVOKABLE void | setColumnVisible (int, bool) |
| Q_INVOKABLE void | setCurrentItem (XTreeWidgetItem *item) |
| Q_INVOKABLE void | setCurrentItem (XTreeWidgetItem *item, int column) |
| Q_INVOKABLE void | setCurrentItem (XTreeWidgetItem *item, int column, QItemSelectionModel::SelectionFlags command) |
| void | setDragString (QString) |
| Q_INVOKABLE void | setFirstItemColumnSpanned (const XTreeWidgetItem *item, bool span) |
| Q_INVOKABLE void | setHeaderItem (XTreeWidgetItem *item) |
| Q_INVOKABLE void | setHeaderLabel (const QString &label) |
| Q_INVOKABLE void | setHeaderLabels (const QStringList &labels) |
| Q_INVOKABLE void | setId (int pId, bool pClear=true) |
| Q_INVOKABLE void | setId (int pId, int pAltId, bool pClear=true) |
| Q_INVOKABLE void | setItemWidget (XTreeWidgetItem *item, int column, QWidget *widget) |
| void | setPopulateLinear (bool alwaysLinear=true) |
| void | sExport () |
| void | showColumn (const QString &) |
| void | showColumn (int colnum) |
| Q_INVOKABLE QList< QPair< int, Qt::SortOrder > > | sortColumnOrder () |
| virtual Q_INVOKABLE void | sortItems (int column=0, Qt::SortOrder order=Qt::AscendingOrder) |
| void | sSearch (const QString &) |
| void | sToggleForgetfulness () |
| Q_INVOKABLE QTreeWidgetItem * | takeTopLevelItem (int index) |
| Q_INVOKABLE QString | toCsv () |
| Q_INVOKABLE QString | toHtml () const |
| virtual Q_INVOKABLE XTreeWidgetItem * | topLevelItem (int idx) const |
| Q_INVOKABLE int | topLevelItemCount () const |
| Q_INVOKABLE QString | toSV (QString pSep) const |
| Q_INVOKABLE QString | toTxt () const |
| Q_INVOKABLE QString | toVcf () const |
| Q_INVOKABLE QRect | visualItemRect (const XTreeWidgetItem *item) const |
Public Attributes | |
| bool | _forgetful |
| QString | _settingsName |
Static Public Attributes | |
| static GuiClientInterface * | _guiClientInterface |
Protected Slots | |
| void | populateCalculatedColumns () |
| void | populateWorker () |
| void | sCurrentItemChanged (QTreeWidgetItem *current, QTreeWidgetItem *previous) |
| void | sHeaderClicked (int) |
| void | sItemActivated (QTreeWidgetItem *item, int column) |
| void | sItemChanged (QTreeWidgetItem *item, int column) |
| void | sItemClicked (QTreeWidgetItem *item, int column) |
| void | sItemCollapsed (QTreeWidgetItem *item) |
| void | sItemDoubleClicked (QTreeWidgetItem *item, int column) |
| void | sItemEntered (QTreeWidgetItem *item, int column) |
| void | sItemExpanded (QTreeWidgetItem *item) |
| void | sItemPressed (QTreeWidgetItem *item, int column) |
Protected Member Functions | |
| virtual void | mouseMoveEvent (QMouseEvent *) |
| virtual void | mousePressEvent (QMouseEvent *) |
| virtual void | resizeEvent (QResizeEvent *) |
Protected Attributes | |
| QPoint | dragStartPosition |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
| XTreeWidget::XTreeWidget | ( | QWidget * | pParent | ) |
| XTreeWidget::~XTreeWidget | ( | ) |
|
slot |
|
inline |
| void XTreeWidget::addTopLevelItems | ( | const QList< XTreeWidgetItem * > & | items | ) |
| QString XTreeWidget::altDragString | ( | ) | const |
| int XTreeWidget::altId | ( | ) | const |
| bool XTreeWidget::alwaysForgetful | ( | ) |
|
slot |
|
inline |
|
virtual |
|
virtual |
|
inline |
|
inline |
|
virtual |
|
signal |
| QString XTreeWidget::dragString | ( | ) | const |
|
inline |
| QList< XTreeWidgetItem * > XTreeWidget::findItems | ( | const QString & | text, |
| Qt::MatchFlags | flags, | ||
| int | column = 0, |
||
| int | role = 0 |
||
| ) | const |
| XTreeWidgetItem * XTreeWidget::findXTreeWidgetItemWithId | ( | const XTreeWidget * | ptree, |
| const int | pid | ||
| ) |
| XTreeWidgetItem * XTreeWidget::findXTreeWidgetItemWithId | ( | const XTreeWidgetItem * | ptreeitem, |
| const int | pid | ||
| ) |
|
inline |
| void XTreeWidget::hideColumn | ( | const QString & | pColumn | ) |
|
inlineslot |
| int XTreeWidget::id | ( | ) | const |
| int XTreeWidget::id | ( | const QString | p | ) | const |
|
inline |
|
inline |
| void XTreeWidget::insertTopLevelItems | ( | int | index, |
| const QList< XTreeWidgetItem * > & | items | ||
| ) |
| XTreeWidgetItem * XTreeWidget::invisibleRootItem | ( | ) | const |
|
inline |
| XTreeWidgetItem * XTreeWidget::itemAbove | ( | const XTreeWidgetItem * | item | ) | const |
|
signal |
|
inline |
|
inline |
|
inline |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
inline |
| void XTreeWidget::keyPressEvent | ( | QKeyEvent * | e | ) |
| void XTreeWidget::merge | ( | int | low, |
| int | high, | ||
| int | mid | ||
| ) |
| void XTreeWidget::mergeSort | ( | int | low, |
| int | high | ||
| ) |
|
protectedvirtual |
|
protectedvirtual |
|
inline |
|
signal |
|
inline |
| void XTreeWidget::populate | ( | const QString & | pSql, |
| bool | pUseAltId = false |
||
| ) |
| void XTreeWidget::populate | ( | const QString & | pSql, |
| int | pIndex, | ||
| bool | pUseAltId = false |
||
| ) |
| void XTreeWidget::populate | ( | XSqlQuery | pQuery, |
| bool | pUseAltId = false, |
||
| PopulateStyle | popstyle = Replace |
||
| ) |
| void XTreeWidget::populate | ( | XSqlQuery | pQuery, |
| int | pIndex, | ||
| bool | pUseAltId = false, |
||
| PopulateStyle | popstyle = Replace |
||
| ) |
|
protectedslot |
|
signal |
|
signal |
| bool XTreeWidget::populateLinear | ( | ) |
|
signal |
|
signal |
|
signal |
|
signal |
|
protectedslot |
| QVariant XTreeWidget::rawValue | ( | const QString | colname | ) | const |
Returns the Raw Value of the first selected row on colname
|
inline |
|
protectedvirtual |
|
signal |
| void XTreeWidget::sCopyCellToClipboard | ( | ) |
| void XTreeWidget::sCopyColumnToClipboard | ( | ) |
| void XTreeWidget::sCopyRowToClipboard | ( | ) |
| void XTreeWidget::sCopyVisibleToClipboard | ( | ) |
|
protectedslot |
| QList< XTreeWidgetItem * > XTreeWidget::selectedItems | ( | ) | const |
| void XTreeWidget::setAltDragString | ( | QString | pAltDragString | ) |
| void XTreeWidget::setAlwaysForgetful | ( | bool | alwaysForgetful = true | ) |
|
virtual |
|
virtual |
|
virtual |
|
inline |
|
inline |
|
inline |
| void XTreeWidget::setDragString | ( | QString | pDragString | ) |
|
inline |
|
inline |
|
inline |
|
inline |
| void XTreeWidget::setId | ( | int | pId, |
| bool | pClear = true |
||
| ) |
Selects a row with a matching value pId on the first column in the result set. If pClear is true then any previous selections are cleared.
| void XTreeWidget::setId | ( | int | pId, |
| int | pAltId, | ||
| bool | pClear = true |
||
| ) |
Selects a row with a matching values pId and pAltId on the first and second columns respectively in the result set. If pClear is true then any previous selections are cleared.
|
inline |
| void XTreeWidget::setPopulateLinear | ( | bool | alwaysLinear = true | ) |
| void XTreeWidget::sExport | ( | ) |
|
protectedslot |
| void XTreeWidget::showColumn | ( | const QString & | pColumn | ) |
|
inline |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
| QList< QPair< int, Qt::SortOrder > > XTreeWidget::sortColumnOrder | ( | ) |
|
virtual |
| void XTreeWidget::sSearch | ( | const QString & | pTarget | ) |
| void XTreeWidget::sToggleForgetfulness | ( | ) |
|
inline |
| QString XTreeWidget::toCsv | ( | ) |
| QString XTreeWidget::toHtml | ( | ) | const |
|
virtual |
|
inline |
| QString XTreeWidget::toSV | ( | QString | pSep | ) | const |
| QString XTreeWidget::toTxt | ( | ) | const |
| QString XTreeWidget::toVcf | ( | ) | const |
|
signal |
|
inline |
| bool XTreeWidget::_forgetful |
|
static |
| QString XTreeWidget::_settingsName |
|
protected |
| Generated on Fri Apr 9 2021 | xTuple ERP Programmer Reference, Version 6.0.0 |
1.8.17
|