KanoopGuiQt 1.3.0
Qt GUI utility library
Loading...
Searching...
No Matches
TableHeader::IntMap Class Reference

An int-keyed map of TableHeader objects with bulk-operation helpers. More...

#include <tableheader.h>

+ Inheritance diagram for TableHeader::IntMap:
+ Collaboration diagram for TableHeader::IntMap:

Public Member Functions

List toSortedList () const
 Return all headers as a list sorted by key (column index).
 
void setTextColorForType (int type, const QColor &color)
 Set the text colour for the header with the given type.
 
void setHeaderVisible (int type, bool visible)
 Set visibility for the header with the given type.
 
void setEntityMetadataForType (int type, const EntityMetadata &metadata)
 Attach EntityMetadata to the header with the given type.
 

Detailed Description

An int-keyed map of TableHeader objects with bulk-operation helpers.

Definition at line 180 of file tableheader.h.

Member Function Documentation

◆ setEntityMetadataForType()

void TableHeader::IntMap::setEntityMetadataForType ( int  type,
const EntityMetadata &  metadata 
)
inline

Attach EntityMetadata to the header with the given type.

Parameters
typeHeader type to find
metadataMetadata to associate

Definition at line 230 of file tableheader.h.

References TableHeader::setEntityMetadata(), and TableHeader::type().

◆ setHeaderVisible()

void TableHeader::IntMap::setHeaderVisible ( int  type,
bool  visible 
)
inline

Set visibility for the header with the given type.

Parameters
typeHeader type to find
visibletrue to show, false to hide

Definition at line 217 of file tableheader.h.

References TableHeader::type().

◆ setTextColorForType()

void TableHeader::IntMap::setTextColorForType ( int  type,
const QColor &  color 
)
inline

Set the text colour for the header with the given type.

Parameters
typeHeader type to find
colorNew text colour

Definition at line 203 of file tableheader.h.

References TableHeader::setColumnTextColor(), and TableHeader::type().

◆ toSortedList()

List TableHeader::IntMap::toSortedList ( ) const
inline

Return all headers as a list sorted by key (column index).

Returns
Sorted TableHeader::List

Definition at line 187 of file tableheader.h.


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