Multi diag tools
Public Member Functions | List of all members
Mdt::ItemModel::ColumnFormatMap Class Reference

Stores formats for certain column in a item model. More...

#include <ColumnFormatMap.h>

Public Member Functions

template<typename T >
void setFormatForColumn (int column, const T &format)
 Set format for given column. More...
 
void clearFormatForColumn (int column)
 Clear format for given column. More...
 
QVariant formatForColumn (int column) const
 Get format for given column. More...
 

Detailed Description

Stores formats for certain column in a item model.

Definition at line 33 of file ColumnFormatMap.h.

Member Function Documentation

void Mdt::ItemModel::ColumnFormatMap::clearFormatForColumn ( int  column)

Clear format for given column.

Does nothing if no format was set for column .

Precondition
column must be >= 0

Definition at line 25 of file ColumnFormatMap.cpp.

QVariant Mdt::ItemModel::ColumnFormatMap::formatForColumn ( int  column) const
inline

Get format for given column.

Returns a QVariant with value of type passed in setFormatForColumn() if a format was set for column, otherwise a null QVariant.

Precondition
column must be >= 0

Definition at line 64 of file ColumnFormatMap.h.

template<typename T >
void Mdt::ItemModel::ColumnFormatMap::setFormatForColumn ( int  column,
const T &  format 
)
inline

Set format for given column.

Precondition
column must be >= 0

Definition at line 42 of file ColumnFormatMap.h.


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