45 #include <QtGui/qtreeview.h> 46 #include <QtGui/qtreewidgetitemiterator.h> 47 #include <QtCore/qvariant.h> 48 #include <QtCore/qvector.h> 56 #ifndef QT_NO_TREEWIDGET 87 inline void setSelected(
bool select);
88 inline bool isSelected()
const;
90 inline void setHidden(
bool hide);
91 inline bool isHidden()
const;
93 inline void setExpanded(
bool expand);
94 inline bool isExpanded()
const;
96 inline void setFirstColumnSpanned(
bool span);
97 inline bool isFirstColumnSpanned()
const;
99 inline void setDisabled(
bool disabled);
100 inline bool isDisabled()
const;
106 Qt::ItemFlags flags()
const;
107 void setFlags(Qt::ItemFlags flags);
111 inline void setText(
int column,
const QString &
text);
115 inline void setIcon(
int column,
const QIcon &icon);
119 inline void setStatusTip(
int column,
const QString &statusTip);
121 #ifndef QT_NO_TOOLTIP 124 inline void setToolTip(
int column,
const QString &toolTip);
127 #ifndef QT_NO_WHATSTHIS 130 inline void setWhatsThis(
int column,
const QString &whatsThis);
135 inline void setFont(
int column,
const QFont &font);
177 #ifndef QT_NO_DATASTREAM 185 if (index < 0 || index >= children.size())
187 executePendingSort();
188 return children.at(index);
203 inline int type()
const {
return rtti; }
208 void emitDataChanged();
212 QVariant childrenCheckState(
int column)
const;
214 void executePendingSort()
const;
232 #ifndef QT_NO_STATUSTIP 237 #ifndef QT_NO_TOOLTIP 242 #ifndef QT_NO_WHATSTHIS 251 { executePendingSort();
return children.indexOf(achild); }
253 #ifndef QT_NO_DATASTREAM 273 void setColumnCount(
int columns);
277 int topLevelItemCount()
const;
290 inline void setHeaderLabel(
const QString &label);
293 int currentColumn()
const;
296 void setCurrentItem(
QTreeWidgetItem *item,
int column, QItemSelectionModel::SelectionFlags command);
302 int sortColumn()
const;
319 int column = 0)
const;
328 void setFirstItemColumnSpanned(
const QTreeWidgetItem *item,
bool span);
352 void itemSelectionChanged();
360 virtual Qt::DropActions supportedDropActions()
const;
388 { setItemWidget(item, column, 0); }
391 {
return itemAt(
QPoint(ax, ay)); }
426 #endif // QT_NO_TREEWIDGET 432 #endif // QTREEWIDGET_H The QVariant class acts like a union for the most common Qt data types.
The QColor class provides colors based on RGB, HSV or CMYK values.
void openPersistentEditor(const QModelIndex &index)
Opens a persistent editor on the item at the given index.
The QItemSelectionModel class keeps track of a view's selected items.
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
static void clear(QVariant::Private *d)
int select(int, fd_set *, fd_set *, fd_set *, struct timeval *)
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
#define Q_PRIVATE_SLOT(d, signature)
void setSelectionModel(QItemSelectionModel *selectionModel)
Reimplemented Function
void setModel(QAbstractItemModel *model)
Reimplemented Function
The QString class provides a Unicode character string.
The QVector class is a template class that provides a dynamic array.
bool operator<(int priority, const QPair< QRunnable *, int > &p)
void dropEvent(QDropEvent *event)
This function is called with the given event when a drop event occurs over the widget.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QTreeView class provides a default model/view implementation of a tree view.
static bool setData(const QByteArray &data, STGMEDIUM *pmedium)
The QStringList class provides a list of strings.
static const char * data(const QByteArray &arr)
void setSortingEnabled(bool enable)
The QMimeData class provides a container for data that records information about its MIME type...
The QAbstractItemModel class provides the abstract interface for item model classes.
The QBrush class defines the fill pattern of shapes drawn by QPainter.
bool isSortingEnabled() const
The QItemSelection class manages information about selected items in a model.
The QDropEvent class provides an event which is sent when a drag and drop action is completed...
The QFont class specifies a font used for drawing text.
The QPoint class defines a point in the plane using integer precision.
The QModelIndex class is used to locate data in a data model.
The QRect class defines a rectangle in the plane using integer precision.
T qvariant_cast(const QVariant &)
The QSize class defines the size of a two-dimensional object using integer point precision.
#define Q_DECLARE_PRIVATE(Class)
The QDataStream class provides serialization of binary data to a QIODevice.
void closePersistentEditor(const QModelIndex &index)
Closes the persistent editor for the item at the given index.
bool event(QEvent *event)
Reimplemented Function
The QEvent class is the base class of all event classes.
The QList class is a template class that provides lists.
The QIcon class provides scalable icons in different modes and states.