Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QtxTreeView::Header Class Reference

Custom tree view header class. More...

Inheritance diagram for QtxTreeView::Header:
Inheritance graph

Public Member Functions

 Header (const bool, QWidget *=0)
 Constructor. More...
 
 ~Header ()
 Destructor. More...
 
void setSortMenuEnabled (const bool)
 
bool sortMenuEnabled () const
 

Protected Member Functions

void contextMenuEvent (QContextMenuEvent *)
 Customize context menu event. More...
 

Private Attributes

bool myEnableSortMenu
 

Detailed Description

Constructor & Destructor Documentation

QtxTreeView::Header::Header ( const bool  enableSortMenu,
QWidget parent = 0 
)
Parameters
enableSortMenushow "Sorting" menu if true
parentparent widget
QtxTreeView::Header::~Header ( )

Member Function Documentation

void QtxTreeView::Header::contextMenuEvent ( QContextMenuEvent *  e)
protected

Shows popup menu with the list of the available columns allowing the user to show/hide the specified column.

Parameters
econtext menu event

References Qtx::AppropriateRole, QtxTreeView::emitSortingEnabled(), QtxTreeView::onHeaderClicked(), Qtx::simplifySeparators(), and Qtx::Toggled.

void QtxTreeView::Header::setSortMenuEnabled ( const bool  enableSortMenu)
bool QtxTreeView::Header::sortMenuEnabled ( ) const

Member Data Documentation

bool QtxTreeView::Header::myEnableSortMenu
private

The documentation for this class was generated from the following file: