List of all members | Public Types | Properties | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Slots | Protected Member Functions | Protected Attributes
XTreeWidget Class Reference

#include <xtreewidget.h>

Inheritance diagram for XTreeWidget:
QTreeWidget QTreeView QAbstractItemView QAbstractScrollArea QFrame QWidget QObject QPaintDevice PeriodsListView

Public Types

enum  PopulateStyle { Replace, Append }


QString altDragString
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)


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 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 ()
bool acceptDrops () const
QString accessibleDescription () const
QString accessibleName () const
QList< QAction * > actions () const
void activated (const QModelIndex &index)
void activateWindow ()
void addAction (QAction *action)
void addActions (const QList< QAction * > &actions)
void addScrollBarWidget (QWidget *widget, Qt::Alignment alignment)
void addTopLevelItem (QTreeWidgetItem *item)
Q_INVOKABLE void addTopLevelItem (XTreeWidgetItem *item)
void addTopLevelItems (const QList< QTreeWidgetItem * > &items)
Q_INVOKABLE void addTopLevelItems (const QList< XTreeWidgetItem * > &items)
void adjustSize ()
bool allColumnsShowFocus () const
QString altDragString () const
bool alternatingRowColors () const
Q_INVOKABLE int altId () const
int autoExpandDelay () const
bool autoFillBackground () const
int autoScrollMargin () const
QPalette::ColorRole backgroundRole () const
QBackingStorebackingStore () const
QSize baseSize () const
bool blockSignals (bool block)
QWidgetchildAt (int x, int y) const
QWidgetchildAt (const QPoint &p) const
const QObjectList & children () const
QRect childrenRect () const
QRegion childrenRegion () const
void clearFocus ()
void clearMask ()
void clearSelection ()
void clicked (const QModelIndex &index)
bool close ()
void closePersistentEditor (QTreeWidgetItem *item, int column)
void closePersistentEditor (const QModelIndex &index)
Q_INVOKABLE void closePersistentEditor (XTreeWidgetItem *item, int column=0)
void collapse (const QModelIndex &index)
void collapseAll ()
void collapsed (const QModelIndex &index)
void collapseItem (const QTreeWidgetItem *item)
int colorCount () const
virtual Q_INVOKABLE int column (const QString) const
virtual Q_INVOKABLE QString column (const int) const
int columnAt (int x) const
Q_INVOKABLE int columnCount () const
int columnViewportPosition (int column) const
int columnWidth (int column) const
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
QMargins contentsMargins () const
QRect contentsRect () const
Qt::ContextMenuPolicy contextMenuPolicy () const
QWidgetcornerWidget () const
Q_INVOKABLE int currentColumn () const
QModelIndex currentIndex () const
virtual Q_INVOKABLE XTreeWidgetItemcurrentItem () const
void currentItemChanged (QTreeWidgetItem *current, QTreeWidgetItem *previous)
QCursor cursor () const
void customContextMenuRequested (const QPoint &pos)
virtual void dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector< int > &roles)
Qt::DropAction defaultDropAction () const
void deleteLater ()
int depth () const
void destroyed (QObject *obj)
int devicePixelRatio () const
bool disconnect (const char *signal, const QObject *receiver, const char *method) const
bool disconnect (const QObject *receiver, const char *method) const
void doubleClicked (const QModelIndex &index)
DragDropMode dragDropMode () const
bool dragDropOverwriteMode () const
bool dragEnabled () const
QString dragString () const
void dumpObjectInfo ()
void dumpObjectTree ()
QList< QByteArraydynamicPropertyNames () const
void edit (const QModelIndex &index)
void editItem (QTreeWidgetItem *item, int column)
Q_INVOKABLE void editItem (XTreeWidgetItem *item, int column=0)
EditTriggers editTriggers () const
WId effectiveWinId () const
void ensurePolished () const
void entered (const QModelIndex &index)
virtual bool eventFilter (QObject *watched, QEvent *event)
void expand (const QModelIndex &index)
void expandAll ()
void expanded (const QModelIndex &index)
void expandItem (const QTreeWidgetItem *item)
bool expandsOnDoubleClick () const
void expandToDepth (int depth)
findChild (const QString &name, Qt::FindChildOptions options) const
QList< T > findChildren (const QRegExp &regExp, Qt::FindChildOptions options) const
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const
QList< QTreeWidgetItem * > findItems (const QString &text, Qt::MatchFlags flags, int column) const
Q_INVOKABLE QList< XTreeWidgetItem * > findItems (const QString &text, Qt::MatchFlags flags, int column=0, int role=0) const
Q_INVOKABLE XTreeWidgetItemfindXTreeWidgetItemWithId (const XTreeWidget *ptree, const int pid)
Q_INVOKABLE XTreeWidgetItemfindXTreeWidgetItemWithId (const XTreeWidgetItem *ptreeitem, const int pid)
Qt::FocusPolicy focusPolicy () const
QWidgetfocusProxy () const
QWidgetfocusWidget () const
const QFontfont () const
QFontInfo fontInfo () const
QFontMetrics fontMetrics () const
QPalette::ColorRole foregroundRole () const
QRect frameGeometry () const
QRect frameRect () const
Shadow frameShadow () const
Shape frameShape () const
QSize frameSize () const
int frameStyle () const
int frameWidth () const
const QRectgeometry () const
void getContentsMargins (int *left, int *top, int *right, int *bottom) const
QPixmap grab (const QRect &rectangle)
void grabGesture (Qt::GestureType gesture, Qt::GestureFlags flags)
void grabKeyboard ()
void grabMouse (const QCursor &cursor)
void grabMouse ()
int grabShortcut (const QKeySequence &key, Qt::ShortcutContext context)
QGraphicsEffectgraphicsEffect () const
QGraphicsProxyWidgetgraphicsProxyWidget () const
bool hasAutoScroll () const
bool hasEditFocus () const
bool hasFocus () const
virtual bool hasHeightForWidth () const
bool hasMouseTracking () const
QHeaderViewheader () const
Q_INVOKABLE QTreeWidgetItemheaderItem () const
int height () const
virtual int heightForWidth (int w) const
int heightMM () const
void hide ()
void hideColumn (const QString &)
QScrollBarhorizontalScrollBar () const
Qt::ScrollBarPolicy horizontalScrollBarPolicy () const
ScrollMode horizontalScrollMode () const
QSize iconSize () const
void iconSizeChanged (const QSize &size)
Q_INVOKABLE int id () const
Q_INVOKABLE int id (const QString) const
int indentation () const
QModelIndex indexAbove (const QModelIndex &index) const
virtual QModelIndex indexAt (const QPoint &point) const
QModelIndex indexBelow (const QModelIndex &index) const
int indexOfTopLevelItem (QTreeWidgetItem *item) const
Q_INVOKABLE int indexOfTopLevelItem (XTreeWidgetItem *item) const
QWidgetindexWidget (const QModelIndex &index) const
bool inherits (const char *className) const
Qt::InputMethodHints inputMethodHints () const
virtual QVariant inputMethodQuery (Qt::InputMethodQuery query) const
void insertAction (QAction *before, QAction *action)
void insertActions (QAction *before, QList< QAction * > actions)
void insertTopLevelItem (int index, QTreeWidgetItem *item)
Q_INVOKABLE void insertTopLevelItem (int index, XTreeWidgetItem *item)
void insertTopLevelItems (int index, const QList< QTreeWidgetItem * > &items)
Q_INVOKABLE void insertTopLevelItems (int index, const QList< XTreeWidgetItem * > &items)
void installEventFilter (QObject *filterObj)
Q_INVOKABLE XTreeWidgetIteminvisibleRootItem () const
bool isActiveWindow () const
bool isAncestorOf (const QWidget *child) const
bool isAnimated () const
bool isColumnHidden (int column) const
bool isEnabled () const
bool isEnabledTo (const QWidget *ancestor) const
bool isEnabledToTLW () const
bool isExpanded (const QModelIndex &index) const
bool isFirstColumnSpanned (int row, const QModelIndex &parent) const
bool isFirstItemColumnSpanned (const QTreeWidgetItem *item) const
Q_INVOKABLE bool isFirstItemColumnSpanned (const XTreeWidgetItem *item) const
bool isFullScreen () const
bool isHeaderHidden () const
bool isHidden () const
bool isItemExpanded (const QTreeWidgetItem *item) const
bool isItemHidden (const QTreeWidgetItem *item) const
bool isItemSelected (const QTreeWidgetItem *item) const
bool isMaximized () const
bool isMinimized () const
bool isModal () const
bool isRowHidden (int row, const QModelIndex &parent) const
bool isSortingEnabled () const
bool isTopLevel () const
bool isVisible () const
bool isVisibleTo (const QWidget *ancestor) const
bool isWidgetType () const
bool isWindow () const
bool isWindowModified () const
bool isWindowType () const
QTreeWidgetItemitemAbove (const QTreeWidgetItem *item) const
Q_INVOKABLE XTreeWidgetItemitemAbove (const XTreeWidgetItem *item) const
void itemActivated (QTreeWidgetItem *item, int column)
Q_INVOKABLE QTreeWidgetItemitemAt (const QPoint &p) const
Q_INVOKABLE QTreeWidgetItemitemAt (int x, int y) const
QTreeWidgetItemitemBelow (const QTreeWidgetItem *item) const
Q_INVOKABLE QTreeWidgetItemitemBelow (const XTreeWidgetItem *item) const
void itemChanged (QTreeWidgetItem *item, int column)
void itemClicked (QTreeWidgetItem *item, int column)
void itemCollapsed (QTreeWidgetItem *item)
QAbstractItemDelegateitemDelegate (const QModelIndex &index) const
QAbstractItemDelegateitemDelegate () const
QAbstractItemDelegateitemDelegateForColumn (int column) const
QAbstractItemDelegateitemDelegateForRow (int row) const
void itemDoubleClicked (QTreeWidgetItem *item, int column)
void itemEntered (QTreeWidgetItem *item, int column)
void itemExpanded (QTreeWidgetItem *item)
void itemPressed (QTreeWidgetItem *item, int column)
void itemSelectionChanged ()
bool itemsExpandable () const
QWidgetitemWidget (QTreeWidgetItem *item, int column) const
Q_INVOKABLE QWidgetitemWidget (XTreeWidgetItem *item, int column) const
virtual void keyboardSearch (const QString &search)
void killTimer (int id)
QLayoutlayout () const
Qt::LayoutDirection layoutDirection () const
int lineWidth () const
QLocale locale () const
int logicalDpiX () const
int logicalDpiY () const
void lower ()
QPoint mapFrom (const QWidget *parent, const QPoint &pos) const
QPoint mapFromGlobal (const QPoint &pos) const
QPoint mapFromParent (const QPoint &pos) const
QPoint mapTo (const QWidget *parent, const QPoint &pos) const
QPoint mapToGlobal (const QPoint &pos) const
QPoint mapToParent (const QPoint &pos) const
QRegion mask () const
int maximumHeight () const
QSize maximumSize () const
QSize maximumViewportSize () const
int maximumWidth () const
virtual const QMetaObjectmetaObject () const
int midLineWidth () const
int minimumHeight () const
QSize minimumSize () const
virtual QSize minimumSizeHint () const
int minimumWidth () const
QAbstractItemModelmodel () const
void move (int x, int y)
void move (const QPoint &)
Q_INVOKABLE void moveColumn (int from, int to)
void moveToThread (QThread *targetThread)
QWidgetnativeParentWidget () const
QWidgetnextInFocusChain () const
QRect normalGeometry () const
QString objectName () const
void objectNameChanged (const QString &objectName)
void openPersistentEditor (QTreeWidgetItem *item, int column)
void openPersistentEditor (const QModelIndex &index)
Q_INVOKABLE void openPersistentEditor (XTreeWidgetItem *item, int column=0)
void overrideWindowFlags (Qt::WindowFlags flags)
virtual QPaintEnginepaintEngine () const
bool paintingActive () const
const QPalettepalette () const
QObjectparent () const
QWidgetparentWidget () const
int physicalDpiX () const
int physicalDpiY () const
Q_INVOKABLE void populate (XSqlQuery, bool=false, PopulateStyle=Replace)
Q_INVOKABLE void populate (XSqlQuery, int, bool=false, PopulateStyle=Replace)
void populate (const QString &, bool=false)
void populate (const QString &, int, bool=false)
bool populateLinear ()
QPoint pos () const
void pressed (const QModelIndex &index)
QWidgetpreviousInFocusChain () const
QVariant property (const char *name) const
void raise ()
Q_INVOKABLE QVariant rawValue (const QString colname) const
QRect rect () const
void releaseKeyboard ()
void releaseMouse ()
void releaseShortcut (int id)
void removeAction (QAction *action)
void removeEventFilter (QObject *obj)
void removeItemWidget (QTreeWidgetItem *item, int column)
Q_INVOKABLE void removeItemWidget (XTreeWidgetItem *item, int column)
void render (QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, RenderFlags renderFlags)
void render (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, RenderFlags renderFlags)
void repaint ()
void repaint (int x, int y, int w, int h)
void repaint (const QRegion &rgn)
void repaint (const QRect &rect)
virtual void reset ()
void resetIndentation ()
void resize (int w, int h)
void resize (const QSize &)
void resizeColumnToContents (int column)
bool restoreGeometry (const QByteArray &geometry)
QModelIndex rootIndex () const
bool rootIsDecorated () const
QByteArray saveGeometry () const
void sCopyCellToClipboard ()
void sCopyColumnToClipboard ()
void sCopyRowToClipboard ()
void sCopyVisibleToClipboard ()
void scroll (int dx, int dy)
void scroll (int dx, int dy, const QRect &r)
QWidgetList scrollBarWidgets (Qt::Alignment alignment)
virtual void scrollTo (const QModelIndex &index, ScrollHint hint)
void scrollToBottom ()
void scrollToItem (const QTreeWidgetItem *item, QAbstractItemView::ScrollHint hint)
void scrollToTop ()
virtual void selectAll ()
Q_INVOKABLE QList< XTreeWidgetItem * > selectedItems () const
QAbstractItemView::SelectionBehavior selectionBehavior () const
QAbstractItemView::SelectionMode selectionMode () const
QItemSelectionModelselectionModel () const
void setAcceptDrops (bool on)
void setAccessibleDescription (const QString &description)
void setAccessibleName (const QString &name)
void setAllColumnsShowFocus (bool enable)
void setAltDragString (QString)
void setAlternatingRowColors (bool enable)
void setAnimated (bool enable)
void setAttribute (Qt::WidgetAttribute attribute, bool on)
void setAutoExpandDelay (int delay)
void setAutoFillBackground (bool enabled)
void setAutoScroll (bool enable)
void setAutoScrollMargin (int margin)
void setBackgroundRole (QPalette::ColorRole role)
void setBaseSize (const QSize &)
void setBaseSize (int basew, int baseh)
virtual Q_INVOKABLE void setColumnCount (int columns)
void setColumnHidden (int column, bool hide)
virtual Q_INVOKABLE void setColumnLocked (int, bool)
virtual Q_INVOKABLE void setColumnVisible (int, bool)
void setColumnWidth (int column, int width)
void setContentsMargins (int left, int top, int right, int bottom)
void setContentsMargins (const QMargins &margins)
void setContextMenuPolicy (Qt::ContextMenuPolicy policy)
void setCornerWidget (QWidget *widget)
void setCurrentIndex (const QModelIndex &index)
void setCurrentItem (QTreeWidgetItem *item)
void setCurrentItem (QTreeWidgetItem *item, int column)
void setCurrentItem (QTreeWidgetItem *item, int column, QItemSelectionModel::SelectionFlags command)
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 setCursor (const QCursor &)
void setDefaultDropAction (Qt::DropAction dropAction)
void setDisabled (bool disable)
void setDragDropMode (DragDropMode behavior)
void setDragDropOverwriteMode (bool overwrite)
void setDragEnabled (bool enable)
void setDragString (QString)
void setDropIndicatorShown (bool enable)
void setEditFocus (bool enable)
void setEditTriggers (EditTriggers triggers)
void setEnabled (bool)
void setExpanded (const QModelIndex &index, bool expanded)
void setExpandsOnDoubleClick (bool enable)
void setFirstColumnSpanned (int row, const QModelIndex &parent, bool span)
void setFirstItemColumnSpanned (const QTreeWidgetItem *item, bool span)
Q_INVOKABLE void setFirstItemColumnSpanned (const XTreeWidgetItem *item, bool span)
void setFixedHeight (int h)
void setFixedSize (const QSize &s)
void setFixedSize (int w, int h)
void setFixedWidth (int w)
void setFocus ()
void setFocus (Qt::FocusReason reason)
void setFocusPolicy (Qt::FocusPolicy policy)
void setFocusProxy (QWidget *w)
void setFont (const QFont &)
void setForegroundRole (QPalette::ColorRole role)
void setFrameRect (const QRect &)
void setFrameShadow (Shadow)
void setFrameShape (Shape)
void setFrameStyle (int style)
void setGeometry (int x, int y, int w, int h)
void setGeometry (const QRect &)
void setGraphicsEffect (QGraphicsEffect *effect)
void setHeader (QHeaderView *header)
void setHeaderHidden (bool hide)
void setHeaderItem (QTreeWidgetItem *item)
Q_INVOKABLE void setHeaderItem (XTreeWidgetItem *item)
Q_INVOKABLE void setHeaderLabel (const QString &label)
Q_INVOKABLE void setHeaderLabels (const QStringList &labels)
void setHidden (bool hidden)
void setHorizontalScrollBar (QScrollBar *scrollBar)
void setHorizontalScrollBarPolicy (Qt::ScrollBarPolicy)
void setHorizontalScrollMode (ScrollMode mode)
void setIconSize (const QSize &size)
Q_INVOKABLE void setId (int pId, bool pClear=true)
Q_INVOKABLE void setId (int pId, int pAltId, bool pClear=true)
void setIndentation (int i)
void setIndexWidget (const QModelIndex &index, QWidget *widget)
void setInputMethodHints (Qt::InputMethodHints hints)
void setItemDelegate (QAbstractItemDelegate *delegate)
void setItemDelegateForColumn (int column, QAbstractItemDelegate *delegate)
void setItemDelegateForRow (int row, QAbstractItemDelegate *delegate)
void setItemExpanded (const QTreeWidgetItem *item, bool expand)
void setItemHidden (const QTreeWidgetItem *item, bool hide)
void setItemSelected (const QTreeWidgetItem *item, bool select)
void setItemsExpandable (bool enable)
void setItemWidget (QTreeWidgetItem *item, int column, QWidget *widget)
Q_INVOKABLE void setItemWidget (XTreeWidgetItem *item, int column, QWidget *widget)
void setLayout (QLayout *layout)
void setLayoutDirection (Qt::LayoutDirection direction)
void setLineWidth (int)
void setLocale (const QLocale &locale)
void setMask (const QBitmap &bitmap)
void setMask (const QRegion &region)
void setMaximumHeight (int maxh)
void setMaximumSize (int maxw, int maxh)
void setMaximumSize (const QSize &)
void setMaximumWidth (int maxw)
void setMidLineWidth (int)
void setMinimumHeight (int minh)
void setMinimumSize (const QSize &)
void setMinimumSize (int minw, int minh)
void setMinimumWidth (int minw)
virtual void setModel (QAbstractItemModel *model)
void setMouseTracking (bool enable)
void setObjectName (const QString &name)
void setPalette (const QPalette &)
void setParent (QWidget *parent, Qt::WindowFlags f)
void setParent (QWidget *parent)
void setParent (QObject *parent)
void setPopulateLinear (bool alwaysLinear=true)
bool setProperty (const char *name, const QVariant &value)
virtual void setRootIndex (const QModelIndex &index)
void setRootIsDecorated (bool show)
void setRowHidden (int row, const QModelIndex &parent, bool hide)
void setSelectionBehavior (QAbstractItemView::SelectionBehavior behavior)
void setSelectionMode (QAbstractItemView::SelectionMode mode)
virtual void setSelectionModel (QItemSelectionModel *selectionModel)
void setShortcutAutoRepeat (int id, bool enable)
void setShortcutEnabled (int id, bool enable)
void setSizeAdjustPolicy (SizeAdjustPolicy policy)
void setSizeIncrement (const QSize &)
void setSizeIncrement (int w, int h)
void setSizePolicy (QSizePolicy)
void setSizePolicy (QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical)
void setSortingEnabled (bool enable)
void setStatusTip (const QString &)
void setStyle (QStyle *style)
void setStyleSheet (const QString &styleSheet)
void setTabKeyNavigation (bool enable)
void setTextElideMode (Qt::TextElideMode mode)
void setToolTip (const QString &)
void setToolTipDuration (int msec)
void setTreePosition (int index)
void setUniformRowHeights (bool uniform)
void setUpdatesEnabled (bool enable)
void setupUi (QWidget *widget)
virtual void setupViewport (QWidget *viewport)
void setVerticalScrollBar (QScrollBar *scrollBar)
void setVerticalScrollBarPolicy (Qt::ScrollBarPolicy)
void setVerticalScrollMode (ScrollMode mode)
void setViewport (QWidget *widget)
virtual void setVisible (bool visible)
void setWhatsThis (const QString &)
void setWindowFilePath (const QString &filePath)
void setWindowFlags (Qt::WindowFlags type)
void setWindowIcon (const QIcon &icon)
void setWindowIconText (const QString &)
void setWindowModality (Qt::WindowModality windowModality)
void setWindowModified (bool)
void setWindowOpacity (qreal level)
void setWindowRole (const QString &role)
void setWindowState (Qt::WindowStates windowState)
void setWindowTitle (const QString &)
void setWordWrap (bool on)
void sExport ()
void show ()
void showColumn (int colnum)
void showColumn (const QString &)
bool showDropIndicator () const
void showFullScreen ()
void showMaximized ()
void showMinimized ()
void showNormal ()
bool signalsBlocked () const
QSize size () const
SizeAdjustPolicy sizeAdjustPolicy () const
virtual QSize sizeHint () const
QSize sizeHintForIndex (const QModelIndex &index) const
virtual int sizeHintForRow (int row) const
QSize sizeIncrement () const
QSizePolicy sizePolicy () const
void sortByColumn (int column, Qt::SortOrder order)
void sortByColumn (int column)
Q_INVOKABLE int sortColumn () const
virtual Q_INVOKABLE void sortItems (int column, Qt::SortOrder order)
Q_INVOKABLE Qt::SortOrder sortOrder () const
void sSearch (const QString &)
void stackUnder (QWidget *w)
int startTimer (int interval, Qt::TimerType timerType)
QString statusTip () const
QStylestyle () const
QString styleSheet () const
bool tabKeyNavigation () const
Q_INVOKABLE QTreeWidgetItemtakeTopLevelItem (int index)
bool testAttribute (Qt::WidgetAttribute attribute) const
Qt::TextElideMode textElideMode () const
QThreadthread () const
Q_INVOKABLE QString toCsv () const
Q_INVOKABLE QString toHtml () const
QString toolTip () const
int toolTipDuration () const
virtual Q_INVOKABLE XTreeWidgetItemtopLevelItem (int idx) const
Q_INVOKABLE int topLevelItemCount () const
QWidgettopLevelWidget () const
Q_INVOKABLE QString toTxt () const
Q_INVOKABLE QString toVcf () const
int treePosition () const
bool underMouse () const
void ungrabGesture (Qt::GestureType gesture)
bool uniformRowHeights () const
void unsetCursor ()
void unsetLayoutDirection ()
void unsetLocale ()
void update (int x, int y, int w, int h)
void update (const QRect &rect)
void update (const QRegion &rgn)
void update ()
void update (const QModelIndex &index)
void updateGeometry ()
bool updatesEnabled () const
QScrollBarverticalScrollBar () const
Qt::ScrollBarPolicy verticalScrollBarPolicy () const
ScrollMode verticalScrollMode () const
QWidgetviewport () const
void viewportEntered ()
QRegion visibleRegion () const
QRect visualItemRect (const QTreeWidgetItem *item) const
Q_INVOKABLE QRect visualItemRect (const XTreeWidgetItem *item) const
virtual QRect visualRect (const QModelIndex &index) const
QString whatsThis () const
int width () const
int widthMM () const
QWidgetwindow () const
QString windowFilePath () const
Qt::WindowFlags windowFlags () const
QWindowwindowHandle () const
QIcon windowIcon () const
void windowIconChanged (const QIcon &icon)
QString windowIconText () const
void windowIconTextChanged (const QString &iconText)
Qt::WindowModality windowModality () const
qreal windowOpacity () const
QString windowRole () const
Qt::WindowStates windowState () const
QString windowTitle () const
void windowTitleChanged (const QString &title)
Qt::WindowType windowType () const
WId winId () const
bool wordWrap () const
int x () const
int y () const

Static Public Member Functions

QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
QWidgetcreateWindowContainer (QWindow *window, QWidget *parent, Qt::WindowFlags flags)
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
bool disconnect (const QMetaObject::Connection &connection)
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
QWidgetfind (WId id)
QWidgetkeyboardGrabber ()
QWidgetmouseGrabber ()
void setTabOrder (QWidget *first, QWidget *second)
QString tr (const char *sourceText, const char *disambiguation, int n)
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)

Public Attributes

typedef EditTriggers
typedef RenderFlags

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 actionEvent (QActionEvent *event)
virtual void changeEvent (QEvent *ev)
virtual void childEvent (QChildEvent *event)
virtual void closeEditor (QWidget *editor, QAbstractItemDelegate::EndEditHint hint)
virtual void closeEvent (QCloseEvent *event)
void columnCountChanged (int oldCount, int newCount)
void columnMoved ()
void columnResized (int column, int oldSize, int newSize)
virtual void commitData (QWidget *editor)
virtual void connectNotify (const QMetaMethod &signal)
virtual void contextMenuEvent (QContextMenuEvent *e)
void create (WId window, bool initializeWindow, bool destroyOldWindow)
virtual void currentChanged (const QModelIndex &current, const QModelIndex &previous)
virtual void customEvent (QEvent *event)
void destroy (bool destroyWindow, bool destroySubWindows)
QPoint dirtyRegionOffset () const
virtual void disconnectNotify (const QMetaMethod &signal)
virtual void dragEnterEvent (QDragEnterEvent *event)
virtual void dragLeaveEvent (QDragLeaveEvent *event)
virtual void dragMoveEvent (QDragMoveEvent *event)
virtual void drawBranches (QPainter *painter, const QRect &rect, const QModelIndex &index) const
virtual void drawRow (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
void drawTree (QPainter *painter, const QRegion &region) const
virtual void dropEvent (QDropEvent *event)
DropIndicatorPosition dropIndicatorPosition () const
virtual bool dropMimeData (QTreeWidgetItem *parent, int index, const QMimeData *data, Qt::DropAction action)
virtual bool edit (const QModelIndex &index, EditTrigger trigger, QEvent *event)
virtual void editorDestroyed (QObject *editor)
virtual void enterEvent (QEvent *event)
virtual bool event (QEvent *e)
void executeDelayedItemsLayout ()
virtual void focusInEvent (QFocusEvent *event)
bool focusNextChild ()
virtual bool focusNextPrevChild (bool next)
virtual void focusOutEvent (QFocusEvent *event)
bool focusPreviousChild ()
virtual void hideEvent (QHideEvent *event)
virtual int horizontalOffset () const
int horizontalStepsPerItem () const
QModelIndex indexFromItem (QTreeWidgetItem *item, int column) const
int indexRowSizeHint (const QModelIndex &index) const
virtual void initPainter (QPainter *painter) const
void initStyleOption (QStyleOptionFrame *option) const
virtual void inputMethodEvent (QInputMethodEvent *event)
virtual bool isIndexHidden (const QModelIndex &index) const
bool isSignalConnected (const QMetaMethod &signal) const
QTreeWidgetItemitemFromIndex (const QModelIndex &index) const
QList< QTreeWidgetItem * > items (const QMimeData *data) const
virtual void keyPressEvent (QKeyEvent *event)
virtual void keyReleaseEvent (QKeyEvent *event)
virtual void leaveEvent (QEvent *event)
virtual int metric (PaintDeviceMetric m) const
virtual QMimeDatamimeData (const QList< QTreeWidgetItem * > &items) const
virtual QStringList mimeTypes () const
virtual void mouseDoubleClickEvent (QMouseEvent *event)
virtual void mouseMoveEvent (QMouseEvent *)
virtual void mousePressEvent (QMouseEvent *)
virtual void mouseReleaseEvent (QMouseEvent *event)
virtual QModelIndex moveCursor (CursorAction cursorAction, Qt::KeyboardModifiers modifiers)
virtual void moveEvent (QMoveEvent *event)
virtual bool nativeEvent (const QByteArray &eventType, void *message, long *result)
virtual void paintEvent (QPaintEvent *event)
int receivers (const char *signal) const
virtual void resizeEvent (QResizeEvent *)
int rowHeight (const QModelIndex &index) const
virtual void rowsAboutToBeRemoved (const QModelIndex &parent, int start, int end)
virtual void rowsInserted (const QModelIndex &parent, int start, int end)
void rowsRemoved (const QModelIndex &parent, int start, int end)
void scheduleDelayedItemsLayout ()
virtual void scrollContentsBy (int dx, int dy)
void scrollDirtyRegion (int dx, int dy)
virtual QModelIndexList selectedIndexes () const
virtual void selectionChanged (const QItemSelection &selected, const QItemSelection &deselected)
virtual QItemSelectionModel::SelectionFlags selectionCommand (const QModelIndex &index, const QEvent *event) const
QObjectsender () const
int senderSignalIndex () const
void setDirtyRegion (const QRegion &region)
void setHorizontalStepsPerItem (int steps)
virtual void setSelection (const QRect &rect, QItemSelectionModel::SelectionFlags command)
void setState (State state)
void setVerticalStepsPerItem (int steps)
void setViewportMargins (const QMargins &margins)
void setViewportMargins (int left, int top, int right, int bottom)
virtual void showEvent (QShowEvent *event)
virtual int sizeHintForColumn (int column) const
virtual void startDrag (Qt::DropActions supportedActions)
State state () const
virtual Qt::DropActions supportedDropActions () const
virtual void tabletEvent (QTabletEvent *event)
virtual void timerEvent (QTimerEvent *event)
virtual void updateGeometries ()
void updateMicroFocus ()
virtual int verticalOffset () const
int verticalStepsPerItem () const
virtual QStyleOptionViewItem viewOptions () const
virtual bool viewportEvent (QEvent *event)
QMargins viewportMargins () const
virtual QSize viewportSizeHint () const
virtual QRegion visualRegionForSelection (const QItemSelection &selection) const
virtual void wheelEvent (QWheelEvent *e)

Protected Attributes

QPoint dragStartPosition

Member Enumeration Documentation


Property Documentation

QString XTreeWidget::altDragString
QString XTreeWidget::dragString
bool XTreeWidget::populateLinear

Constructor & Destructor Documentation

XTreeWidget::XTreeWidget ( QWidget pParent)
XTreeWidget::~XTreeWidget ( )

Member Function Documentation

void XTreeWidget::addColumn ( const QString pString,
int  pWidth,
int  pAlignment,
bool  pVisible = true,
const QString  pEditColumn = QString(),
const QString  pDisplayColumn = QString(),
const int  scale = 0 
Q_INVOKABLE void XTreeWidget::addTopLevelItem ( XTreeWidgetItem item)
void XTreeWidget::addTopLevelItems ( const QList< XTreeWidgetItem * > &  items)
QString XTreeWidget::altDragString ( ) const
int XTreeWidget::altId ( ) const
void XTreeWidget::clear ( )
Q_INVOKABLE void XTreeWidget::closePersistentEditor ( XTreeWidgetItem item,
int  column = 0 
int XTreeWidget::column ( const QString  pName) const
QString XTreeWidget::column ( const int  pIndex) const
Q_INVOKABLE int XTreeWidget::columnCount ( ) const
Q_INVOKABLE int XTreeWidget::currentColumn ( ) const
XTreeWidgetItem * XTreeWidget::currentItem ( ) const
void XTreeWidget::currentItemChanged ( XTreeWidgetItem ,
QString XTreeWidget::dragString ( ) const
Q_INVOKABLE void XTreeWidget::editItem ( XTreeWidgetItem item,
int  column = 0 
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 
Q_INVOKABLE QTreeWidgetItem* XTreeWidget::headerItem ( ) const
void XTreeWidget::hideColumn ( int  colnum)
void XTreeWidget::hideColumn ( const QString pColumn)
int XTreeWidget::id ( ) const
int XTreeWidget::id ( const QString  p) const
Q_INVOKABLE int XTreeWidget::indexOfTopLevelItem ( XTreeWidgetItem item) const
Q_INVOKABLE void XTreeWidget::insertTopLevelItem ( int  index,
XTreeWidgetItem item 
void XTreeWidget::insertTopLevelItems ( int  index,
const QList< XTreeWidgetItem * > &  items 
XTreeWidgetItem * XTreeWidget::invisibleRootItem ( ) const
Q_INVOKABLE bool XTreeWidget::isFirstItemColumnSpanned ( const XTreeWidgetItem item) const
XTreeWidgetItem * XTreeWidget::itemAbove ( const XTreeWidgetItem item) const
void XTreeWidget::itemActivated ( XTreeWidgetItem item,
int  column 
Q_INVOKABLE QTreeWidgetItem* XTreeWidget::itemAt ( const QPoint p) const
Q_INVOKABLE QTreeWidgetItem* XTreeWidget::itemAt ( int  x,
int  y 
) const
Q_INVOKABLE QTreeWidgetItem* XTreeWidget::itemBelow ( const XTreeWidgetItem item) const
void XTreeWidget::itemChanged ( XTreeWidgetItem item,
int  column 
void XTreeWidget::itemClicked ( XTreeWidgetItem item,
int  column 
void XTreeWidget::itemCollapsed ( XTreeWidgetItem item)
void XTreeWidget::itemDoubleClicked ( XTreeWidgetItem item,
int  column 
void XTreeWidget::itemEntered ( XTreeWidgetItem item,
int  column 
void XTreeWidget::itemExpanded ( XTreeWidgetItem item)
void XTreeWidget::itemPressed ( XTreeWidgetItem item,
int  column 
void XTreeWidget::itemSelected ( int  )
Q_INVOKABLE QWidget* XTreeWidget::itemWidget ( XTreeWidgetItem item,
int  column 
) const
void XTreeWidget::mouseMoveEvent ( QMouseEvent event)

Reimplemented from QTreeView.

void XTreeWidget::mousePressEvent ( QMouseEvent event)

Reimplemented from QTreeView.

Q_INVOKABLE void XTreeWidget::moveColumn ( int  from,
int  to 
void XTreeWidget::newId ( int  )
Q_INVOKABLE void XTreeWidget::openPersistentEditor ( XTreeWidgetItem item,
int  column = 0 
void XTreeWidget::populate ( XSqlQuery  pQuery,
bool  pUseAltId = false,
PopulateStyle  popstyle = Replace 
void XTreeWidget::populate ( XSqlQuery  pQuery,
int  pIndex,
bool  pUseAltId = false,
PopulateStyle  popstyle = Replace 
void XTreeWidget::populate ( const QString pSql,
bool  pUseAltId = false 
void XTreeWidget::populate ( const QString pSql,
int  pIndex,
bool  pUseAltId = false 
void XTreeWidget::populateCalculatedColumns ( )
void XTreeWidget::populated ( )
bool XTreeWidget::populateLinear ( )
void XTreeWidget::populateMenu ( QMenu ,
void XTreeWidget::populateMenu ( QMenu ,
QTreeWidgetItem ,
void XTreeWidget::populateMenu ( QMenu ,
void XTreeWidget::populateMenu ( QMenu ,
XTreeWidgetItem ,
void XTreeWidget::populateWorker ( )
QVariant XTreeWidget::rawValue ( const QString  colname) const

Returns the Raw Value of the first selected row on colname

Q_INVOKABLE void XTreeWidget::removeItemWidget ( XTreeWidgetItem item,
int  column 
void XTreeWidget::resizeEvent ( QResizeEvent e)

Reimplemented from QAbstractItemView.

void XTreeWidget::resorted ( )
void XTreeWidget::sCopyCellToClipboard ( )
void XTreeWidget::sCopyColumnToClipboard ( )
void XTreeWidget::sCopyRowToClipboard ( )
void XTreeWidget::sCopyVisibleToClipboard ( )
void XTreeWidget::sCurrentItemChanged ( QTreeWidgetItem current,
QTreeWidgetItem previous 
QList< XTreeWidgetItem * > XTreeWidget::selectedItems ( ) const
void XTreeWidget::setAltDragString ( QString  pAltDragString)
void XTreeWidget::setColumnCount ( int  columns)
void XTreeWidget::setColumnLocked ( int  pColumn,
bool  pLocked 
void XTreeWidget::setColumnVisible ( int  pColumn,
bool  pVisible 
Q_INVOKABLE void XTreeWidget::setCurrentItem ( XTreeWidgetItem item)
Q_INVOKABLE void XTreeWidget::setCurrentItem ( XTreeWidgetItem item,
int  column 
Q_INVOKABLE void XTreeWidget::setCurrentItem ( XTreeWidgetItem item,
int  column,
QItemSelectionModel::SelectionFlags  command 
void XTreeWidget::setDragString ( QString  pDragString)
Q_INVOKABLE void XTreeWidget::setFirstItemColumnSpanned ( const XTreeWidgetItem item,
bool  span 
Q_INVOKABLE void XTreeWidget::setHeaderItem ( XTreeWidgetItem item)
Q_INVOKABLE void XTreeWidget::setHeaderLabel ( const QString label)
Q_INVOKABLE void XTreeWidget::setHeaderLabels ( const QStringList labels)
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.

Q_INVOKABLE void XTreeWidget::setItemWidget ( XTreeWidgetItem item,
int  column,
QWidget widget 
void XTreeWidget::setPopulateLinear ( bool  alwaysLinear = true)
void XTreeWidget::sExport ( )
void XTreeWidget::sHeaderClicked ( int  column)
void XTreeWidget::showColumn ( int  colnum)
void XTreeWidget::showColumn ( const QString pColumn)
void XTreeWidget::sItemActivated ( QTreeWidgetItem item,
int  column 
void XTreeWidget::sItemChanged ( QTreeWidgetItem item,
int  column 
void XTreeWidget::sItemClicked ( QTreeWidgetItem item,
int  column 
void XTreeWidget::sItemCollapsed ( QTreeWidgetItem item)
void XTreeWidget::sItemDoubleClicked ( QTreeWidgetItem item,
int  column 
void XTreeWidget::sItemEntered ( QTreeWidgetItem item,
int  column 
void XTreeWidget::sItemExpanded ( QTreeWidgetItem item)
void XTreeWidget::sItemPressed ( QTreeWidgetItem item,
int  column 
Q_INVOKABLE int XTreeWidget::sortColumn ( ) const
void XTreeWidget::sortItems ( int  column,
Qt::SortOrder  order 
Q_INVOKABLE Qt::SortOrder XTreeWidget::sortOrder ( ) const
void XTreeWidget::sSearch ( const QString pTarget)
Q_INVOKABLE QTreeWidgetItem* XTreeWidget::takeTopLevelItem ( int  index)
QString XTreeWidget::toCsv ( ) const
QString XTreeWidget::toHtml ( ) const
XTreeWidgetItem * XTreeWidget::topLevelItem ( int  idx) const
Q_INVOKABLE int XTreeWidget::topLevelItemCount ( ) const
QString XTreeWidget::toTxt ( ) const
QString XTreeWidget::toVcf ( ) const
void XTreeWidget::valid ( bool  )
Q_INVOKABLE QRect XTreeWidget::visualItemRect ( const XTreeWidgetItem item) const

Member Data Documentation

GuiClientInterface * XTreeWidget::_guiClientInterface
QPoint XTreeWidget::dragStartPosition

The documentation for this class was generated from the following files:

Generated on Fri Aug 11 2017 xTuple ERP Programmer Reference, Version 4.11.0 doxygen 1.8.10