Relacs Core Library  0.9.8
Classes | Public Member Functions | Public Attributes | List of all members
TreeWrapper< T > Class Template Reference

#include <filterselector.h>

Classes

class  Category
 

Public Member Functions

 TreeWrapper (const std::initializer_list< QString > &headings)
 
CategoryaddCategory (const std::initializer_list< QString > &texts, const T &data={})
 

Public Attributes

QTreeWidget * Widget
 
std::map< QTreeWidgetItem
*, Category
Categories
 

Detailed Description

template<typename T>
class relacs::TreeWrapper< T >

Helper class to allow easy control of tree views

Constructor & Destructor Documentation

TreeWrapper ( const std::initializer_list< QString > &  headings)
inline

Constructs a new tree view with given headings

Member Function Documentation

Category& addCategory ( const std::initializer_list< QString > &  texts,
const T &  data = {} 
)
inline

Adds a category with optionally data

Member Data Documentation

QTreeWidget* Widget
std::map<QTreeWidgetItem*, Category> Categories

stores interal structure


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