Custom tree view header class. More...

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 |
Custom tree view header class.
| QtxTreeView::Header::Header | ( | const bool | enableSortMenu, |
| QWidget * | parent = 0 |
||
| ) |
Constructor.
| enableSortMenu | show "Sorting" menu if true |
| parent | parent widget |
| QtxTreeView::Header::~Header | ( | ) |
Destructor.
|
protected |
Customize context menu event.
Shows popup menu with the list of the available columns allowing the user to show/hide the specified column.
| e | context 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 |
|
private |