• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

ktimetracker

Public Types | Signals | Public Member Functions | Protected Slots | Protected Attributes | Properties | List of all members
TreeViewHeaderContextMenu Class Reference

#include <treeviewheadercontextmenu.h>

Inheritance diagram for TreeViewHeaderContextMenu:
Inheritance graph
[legend]

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.

Author
Mathias Soeken msoek.nosp@m.en@t.nosp@m.zi.de

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

TreeViewHeaderContextMenu::TreeViewHeaderContextMenu ( QObject *  parent,
QTreeView *  widget,
int  style = AlwaysCheckBox,
QVector< int >  excludedColumns = QVector<int>() 
)
explicit

Definition at line 33 of file treeviewheadercontextmenu.cpp.

TreeViewHeaderContextMenu::~TreeViewHeaderContextMenu ( )

Definition at line 55 of file treeviewheadercontextmenu.cpp.

Member Function Documentation

void TreeViewHeaderContextMenu::addExcludedColumn ( int  column)
inline

Definition at line 80 of file treeviewheadercontextmenu.h.

void TreeViewHeaderContextMenu::addExcludedColumns ( QVector< int >  columns)
inline

Definition at line 81 of file treeviewheadercontextmenu.h.

void TreeViewHeaderContextMenu::columnToggled ( int  )
signal
KMenu* TreeViewHeaderContextMenu::menu ( ) const
inline

Definition at line 82 of file treeviewheadercontextmenu.h.

void TreeViewHeaderContextMenu::slotAboutToShow ( )
protectedslot

Definition at line 112 of file treeviewheadercontextmenu.cpp.

void TreeViewHeaderContextMenu::slotTriggered ( QAction *  action)
protectedslot

Definition at line 99 of file treeviewheadercontextmenu.cpp.

int TreeViewHeaderContextMenu::style ( ) const
inline

Definition at line 79 of file treeviewheadercontextmenu.h.

void TreeViewHeaderContextMenu::updateActions ( )
protectedslot

Definition at line 70 of file treeviewheadercontextmenu.cpp.

Member Data Documentation

QHash<QAction*, int> TreeViewHeaderContextMenu::mActionColumnMapping
protected

Definition at line 75 of file treeviewheadercontextmenu.h.

QVector<QAction*> TreeViewHeaderContextMenu::mActions
protected

Definition at line 72 of file treeviewheadercontextmenu.h.

KMenu* TreeViewHeaderContextMenu::mContextMenu
protected

Definition at line 73 of file treeviewheadercontextmenu.h.

QVector<int> TreeViewHeaderContextMenu::mExcludedColumns
protected

Definition at line 76 of file treeviewheadercontextmenu.h.

int TreeViewHeaderContextMenu::mStyle
protected

Definition at line 74 of file treeviewheadercontextmenu.h.

QTreeView* TreeViewHeaderContextMenu::mWidget
protected

Definition at line 71 of file treeviewheadercontextmenu.h.

Property Documentation

KMenu TreeViewHeaderContextMenu::menu
read

Definition at line 50 of file treeviewheadercontextmenu.h.

int TreeViewHeaderContextMenu::style
read

Definition at line 49 of file treeviewheadercontextmenu.h.


The documentation for this class was generated from the following files:
  • treeviewheadercontextmenu.h
  • treeviewheadercontextmenu.cpp
This file is part of the KDE documentation.
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.

ktimetracker

Skip menu "ktimetracker"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal