knode
treewidget.cpp
Go to the documentation of this file.
82 bool TreeWidget::saveLayout( KConfig * config, const QString &groupName, const QString &keyName ) const
170 bool TreeWidget::restoreLayout( KConfig * config, const QString &groupName, const QString &keyName )
void customContextMenuRequested(const QPoint &pos)
KDEPIM_EXPORT void saveState(QWidget *widget, KConfigGroup &config)
Type type() const
void setMovable(bool movable)
A common QTreeWidget extension.
QTreeWidgetItem * child(int index) const
QObject * sender() const
void setChecked(bool)
virtual void changeEvent(QEvent *e)
Reimplemented in order to catch style change events and explicitly disable animations.
Definition: treewidget.cpp:57
QVariant data() const
ResizeMode resizeMode(int logicalIndex) const
virtual bool fillHeaderContextMenu(KMenu *menu, const QPoint &clickPoint)
Called by this class to fill the contextual menu shown when the user right clicks on one of the heade...
Definition: treewidget.cpp:212
bool isEmpty() const
QPoint mapToGlobal(const QPoint &pos) const
cascadingSectionResizes
void setAnimated(bool enable)
bool isSortIndicatorShown() const
void setColumnHidden(int logicalIndex, bool hide)
Hides or shows the column specified by logicalIndex.
Definition: treewidget.cpp:198
typedef Alignment
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void setManualColumnHidingEnabled(bool enable)
Enables or disables manual column hiding by the means of a contextual menu.
Definition: treewidget.cpp:182
void resizeSection(int logicalIndex, int size)
bool isColumnHidden(int logicalIndex) const
Returns true if the column specified by logicalIndex is actually hidden.
Definition: treewidget.cpp:207
void setHeaderItem(QTreeWidgetItem *item)
minimumSectionSize
int toInt(bool *ok) const
bool isSectionHidden(int logicalIndex) const
bool setColumnText(int columnIndex, const QString &label)
Convenience function that changes the header text for the specified column.
Definition: treewidget.cpp:300
bool restoreLayout(KConfigGroup &group, const QString &keyName=QString())
Attempts to restore the layout of this tree from the specified key of the specified KConfigGroup...
Definition: treewidget.cpp:91
void setObjectName(const QString &name)
bool isEmpty() const
virtual void changeEvent(QEvent *ev)
defaultAlignment
void toggleColumn(int logicalIndex)
Toggle the visibility state of the specified column.
Definition: treewidget.cpp:244
#define KPIM_TREEWIDGET_DEFAULT_CONFIG_KEY
Definition: treewidget.cpp:37
int columnCount() const
void setColumnCount(int columns)
bool saveLayout(KConfigGroup &group, const QString &keyName=QString()) const
Stores the layout of this tree view to the specified KConfigGroup.
Definition: treewidget.cpp:72
KDEPIM_EXPORT void restoreState(QWidget *widget, const KConfigGroup &config)
int sectionSize(int logicalIndex) const
QByteArray fromHex(const QByteArray &hexEncoded)
void setData(const QVariant &userData)
void setContextMenuPolicy(Qt::ContextMenuPolicy policy)
void setCheckable(bool)
TreeWidget(QWidget *parent, const char *name=0)
Constructs a TreeWidget.
Definition: treewidget.cpp:39
State state() const
QTreeWidgetItem * lastItem() const
Convenience function that returns the last item in the view.
Definition: treewidget.cpp:318
bool isMovable() const
QTreeWidgetItem * headerItem() const
int addColumn(const QString &label, int headerAlignment=Qt::AlignLeft|Qt::AlignVCenter)
Convenience function that adds a column to this tree widget and returns its logical index...
Definition: treewidget.cpp:279
bool isClickable() const
void setResizeMode(ResizeMode mode)
void setClickable(bool clickable)
void setText(int column, const QString &text)
void setTextAlignment(int column, int alignment)
QHeaderView * header() const
QTreeWidgetItem * topLevelItem(int index) const
void columnVisibilityChanged(int logicalIndex)
This signal is emitted when an existing column is shown or hidden either by the means of the popup me...
QTreeWidgetItem * firstItem() const
Convenience function that returns the first item in the view.
Definition: treewidget.cpp:311
int topLevelItemCount() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
int childCount() const
QString text(int column) const
void setSectionHidden(int logicalIndex, bool hide)
int count() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.