|
ADTF Qt5
|
#include <adaptive_horiz_header_view.h>
Inherits QHeaderView.
Public Types | |
| enum class | HeaderLayoutMode { Auto , Manual } |
Public Member Functions | |
| cAdaptiveHorizontalHeaderView (QAbstractItemView *pParent=nullptr) | |
| cAdaptiveHorizontalHeaderView (const QList< QAction * > &oAdditionalActions, QAbstractItemView *pParent=nullptr) | |
| cAdaptiveHorizontalHeaderView (const QList< QAction * > &oAdditionalActions, const QMap< int, int > &oDefaultSectionSizes, QAbstractItemView *pParent=nullptr) | |
| ~cAdaptiveHorizontalHeaderView () override=default | |
| void | SetLayoutMode (const HeaderLayoutMode eMode) |
| HeaderLayoutMode | GetLayoutMode () const |
| void | InitHeader () |
Static Public Member Functions | |
| static void | ApplyViewState (const QVariantMap &oSettings, QTreeView *pView) |
| static QVariantMap | BuildViewState (QTreeView *pView) |
A header view which has adaptable column widths
|
strong |
Enum to differentiate the layout modes
|
explicit |
C-TOR
|
explicit |
C-TOR
|
explicit |
C-TOR
|
overridedefault |
D-TOR
|
static |
Loads the last view settings from a settings file
| oSettings | The settings to load |
| pView | The parent tree view |
|
static |
Saves the current view settings in a settings file
| pView | The parent tree view |
| HeaderLayoutMode cAdaptiveHorizontalHeaderView::GetLayoutMode | ( | ) | const |
Getter
| void cAdaptiveHorizontalHeaderView::InitHeader | ( | ) |
Initializes the header Needed to be outside of the constructor, because the model has to be attached first
| void cAdaptiveHorizontalHeaderView::SetLayoutMode | ( | const HeaderLayoutMode | eMode | ) |
Setter
| eMode | The new layout mode |