QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Signals | Public Member Functions | List of all members
QgsTreeWidgetItem Class Reference

Custom QTreeWidgetItem with extra signal when item is edited and numeric sorting. More...

#include <qgssinglebandpseudocolorrendererwidget.h>

Inheritance diagram for QgsTreeWidgetItem:
Inheritance graph
[legend]

Signals

void itemEdited (QTreeWidgetItem *item, int column)
 This signal is emitted when the contents of the column in the specified item has been edited by the user. More...
 

Public Member Functions

 QgsTreeWidgetItem (QTreeWidget *parent, int type=Type)
 Constructs a tree widget item of the specified type and appends it to the items in the given parent. More...
 
virtual bool operator< (const QTreeWidgetItem &other) const
 Returns true if the text in the item is less than the text in the other item, otherwise returns false. More...
 
virtual void setData (int column, int role, const QVariant &value)
 Sets the value for the item's column and role to the given value. More...
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
virtual ~QObject ()
 
bool blockSignals (bool block)
 
QObjectchild (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const QObject *receiver, const char *method)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArraydynamicPropertyNames () const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObjectparent () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThreadthread () const
 
- Public Member Functions inherited from QTreeWidgetItem
 QTreeWidgetItem (int type)
 
 QTreeWidgetItem (const QStringList &strings, int type)
 
 QTreeWidgetItem (QTreeWidget *parent, const QStringList &strings, int type)
 
 QTreeWidgetItem (QTreeWidgetItem *parent, QTreeWidgetItem *preceding, int type)
 
 QTreeWidgetItem (const QTreeWidgetItem &other)
 
 QTreeWidgetItem (QTreeWidget *parent, QTreeWidgetItem *preceding, int type)
 
 QTreeWidgetItem (QTreeWidget *parent, int type)
 
 QTreeWidgetItem (QTreeWidgetItem *parent, int type)
 
 QTreeWidgetItem (QTreeWidgetItem *parent, const QStringList &strings, int type)
 
virtual ~QTreeWidgetItem ()
 
void addChild (QTreeWidgetItem *child)
 
void addChildren (const QList< QTreeWidgetItem * > &children)
 
QBrush background (int column) const
 
QColor backgroundColor (int column) const
 
Qt::CheckState checkState (int column) const
 
QTreeWidgetItemchild (int index) const
 
int childCount () const
 
QTreeWidgetItem::ChildIndicatorPolicy childIndicatorPolicy () const
 
virtual QTreeWidgetItemclone () const
 
int columnCount () const
 
virtual QVariant data (int column, int role) const
 
Qt::ItemFlags flags () const
 
QFont font (int column) const
 
QBrush foreground (int column) const
 
QIcon icon (int column) const
 
int indexOfChild (QTreeWidgetItem *child) const
 
void insertChild (int index, QTreeWidgetItem *child)
 
void insertChildren (int index, const QList< QTreeWidgetItem * > &children)
 
bool isDisabled () const
 
bool isExpanded () const
 
bool isFirstColumnSpanned () const
 
bool isHidden () const
 
bool isSelected () const
 
QTreeWidgetItemoperator= (const QTreeWidgetItem &other)
 
QTreeWidgetItemparent () const
 
virtual void read (QDataStream &in)
 
void removeChild (QTreeWidgetItem *child)
 
void setBackground (int column, const QBrush &brush)
 
void setBackgroundColor (int column, const QColor &color)
 
void setCheckState (int column, Qt::CheckState state)
 
void setChildIndicatorPolicy (QTreeWidgetItem::ChildIndicatorPolicy policy)
 
void setDisabled (bool disabled)
 
void setExpanded (bool expand)
 
void setFirstColumnSpanned (bool span)
 
void setFlags (QFlags< Qt::ItemFlag > flags)
 
void setFont (int column, const QFont &font)
 
void setForeground (int column, const QBrush &brush)
 
void setHidden (bool hide)
 
void setIcon (int column, const QIcon &icon)
 
void setSelected (bool select)
 
void setSizeHint (int column, const QSize &size)
 
void setStatusTip (int column, const QString &statusTip)
 
void setText (int column, const QString &text)
 
void setTextAlignment (int column, int alignment)
 
void setTextColor (int column, const QColor &color)
 
void setToolTip (int column, const QString &toolTip)
 
void setWhatsThis (int column, const QString &whatsThis)
 
QSize sizeHint (int column) const
 
void sortChildren (int column, Qt::SortOrder order)
 
QString statusTip (int column) const
 
QTreeWidgetItemtakeChild (int index)
 
QList< QTreeWidgetItem * > takeChildren ()
 
QString text (int column) const
 
int textAlignment (int column) const
 
QColor textColor (int column) const
 
QString toolTip (int column) const
 
QTreeWidgettreeWidget () const
 
int type () const
 
QString whatsThis (int column) const
 
virtual void write (QDataStream &out) const
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
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)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObjectsender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 
- Protected Member Functions inherited from QTreeWidgetItem
void emitDataChanged ()
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Properties inherited from QObject
 objectName
 

Detailed Description

Custom QTreeWidgetItem with extra signal when item is edited and numeric sorting.

Definition at line 97 of file qgssinglebandpseudocolorrendererwidget.h.

Constructor & Destructor Documentation

◆ QgsTreeWidgetItem()

QgsTreeWidgetItem::QgsTreeWidgetItem ( QTreeWidget parent,
int  type = Type 
)
inlineexplicit

Constructs a tree widget item of the specified type and appends it to the items in the given parent.

Definition at line 102 of file qgssinglebandpseudocolorrendererwidget.h.

Member Function Documentation

◆ itemEdited

void QgsTreeWidgetItem::itemEdited ( QTreeWidgetItem item,
int  column 
)
signal

This signal is emitted when the contents of the column in the specified item has been edited by the user.

◆ operator<()

bool QgsTreeWidgetItem::operator< ( const QTreeWidgetItem other) const
virtual

Returns true if the text in the item is less than the text in the other item, otherwise returns false.

Compares on numeric value of text if possible, otherwise on text.

Reimplemented from QTreeWidgetItem.

Definition at line 47 of file qgssinglebandpseudocolorrendererwidget.cpp.

◆ setData()

void QgsTreeWidgetItem::setData ( int  column,
int  role,
const QVariant value 
)
virtual

Sets the value for the item's column and role to the given value.

Reimplemented from QTreeWidgetItem.

Definition at line 33 of file qgssinglebandpseudocolorrendererwidget.cpp.


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