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 )
KDEPIM_EXPORT void saveState(QWidget *widget, KConfigGroup &config)
A common QTreeWidget extension.
virtual void changeEvent(QEvent *e)
Reimplemented in order to catch style change events and explicitly disable animations.
Definition: treewidget.cpp:57
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
void setColumnHidden(int logicalIndex, bool hide)
Hides or shows the column specified by logicalIndex.
Definition: treewidget.cpp:198
void setManualColumnHidingEnabled(bool enable)
Enables or disables manual column hiding by the means of a contextual menu.
Definition: treewidget.cpp:182
bool isColumnHidden(int logicalIndex) const
Returns true if the column specified by logicalIndex is actually hidden.
Definition: treewidget.cpp:207
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 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
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)
TreeWidget(QWidget *parent, const char *name=0)
Constructs a TreeWidget.
Definition: treewidget.cpp:39
QTreeWidgetItem * lastItem() const
Convenience function that returns the last item in the view.
Definition: treewidget.cpp:318
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
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
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.