ktimetracker
#include <treeviewheadercontextmenu.h>
Public Types | |
enum | { AlwaysCheckBox, CheckBoxOnChecked, ShowHideText } |
Signals | |
void | columnToggled (int) |
Public Member Functions | |
TreeViewHeaderContextMenu (QObject *parent, QTreeView *widget, int style=AlwaysCheckBox, QVector< int > excludedColumns=QVector< int >()) | |
~TreeViewHeaderContextMenu () | |
void | addExcludedColumn (int column) |
void | addExcludedColumns (QVector< int > columns) |
KMenu * | menu () const |
int | style () const |
Protected Slots | |
void | slotAboutToShow () |
void | slotTriggered (QAction *) |
void | updateActions () |
Protected Attributes | |
QHash< QAction *, int > | mActionColumnMapping |
QVector< QAction * > | mActions |
KMenu * | mContextMenu |
QVector< int > | mExcludedColumns |
int | mStyle |
QTreeView * | mWidget |
Properties | |
KMenu | menu |
int | style |
Detailed Description
ContextMenu for QTreeView::header() to toggle the visible state of the columns.
It is possible to exclude columns from inserting in the menu either by the excludedColumns
parameter in the constructor, by addExcludedColumn or addExcludedColumns.
You can also change the display style of the items in the menu.
Definition at line 47 of file treeviewheadercontextmenu.h.
Member Enumeration Documentation
anonymous enum |
Enumerator | |
---|---|
AlwaysCheckBox | |
CheckBoxOnChecked | |
ShowHideText |
Definition at line 53 of file treeviewheadercontextmenu.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 33 of file treeviewheadercontextmenu.cpp.
TreeViewHeaderContextMenu::~TreeViewHeaderContextMenu | ( | ) |
Definition at line 55 of file treeviewheadercontextmenu.cpp.
Member Function Documentation
|
inline |
Definition at line 80 of file treeviewheadercontextmenu.h.
|
inline |
Definition at line 81 of file treeviewheadercontextmenu.h.
|
signal |
|
inline |
Definition at line 82 of file treeviewheadercontextmenu.h.
|
protectedslot |
Definition at line 112 of file treeviewheadercontextmenu.cpp.
|
protectedslot |
Definition at line 99 of file treeviewheadercontextmenu.cpp.
|
inline |
Definition at line 79 of file treeviewheadercontextmenu.h.
|
protectedslot |
Definition at line 70 of file treeviewheadercontextmenu.cpp.
Member Data Documentation
|
protected |
Definition at line 75 of file treeviewheadercontextmenu.h.
|
protected |
Definition at line 72 of file treeviewheadercontextmenu.h.
|
protected |
Definition at line 73 of file treeviewheadercontextmenu.h.
|
protected |
Definition at line 76 of file treeviewheadercontextmenu.h.
|
protected |
Definition at line 74 of file treeviewheadercontextmenu.h.
|
protected |
Definition at line 71 of file treeviewheadercontextmenu.h.
Property Documentation
|
read |
Definition at line 50 of file treeviewheadercontextmenu.h.
|
read |
Definition at line 49 of file treeviewheadercontextmenu.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.