LibEngsas
Public Member Functions | List of all members
ETableView Class Reference

An improved Replacement for QTableView. More...

#include <etableview.h>

+ Inheritance diagram for ETableView:
+ Collaboration diagram for ETableView:

Public Member Functions

 ETableView (QWidget *parent=0)
 
void setModel (QAbstractItemModel *model)
 
void reloadDelegates ()
 
void deleteDelegates ()
 
void resizeAndHideColumns (QList< int > hideColumns, int expandingColumn)
 Resize all columns to their content and the afterwards available space is given to expandingColumn. More...
 

Detailed Description

An improved Replacement for QTableView.

It removes and deletes all remaining delegates from a previous used model.

Constructor & Destructor Documentation

ETableView::ETableView ( QWidget *  parent = 0)

Member Function Documentation

void ETableView::deleteDelegates ( )
Attention
it uses the columnCount() of the current model to walk through all columns, therefore call it before the model is reseted!

+ Here is the caller graph for this function:

void ETableView::reloadDelegates ( )

+ Here is the call graph for this function:

void ETableView::resizeAndHideColumns ( QList< int >  hideColumns,
int  expandingColumn 
)

Resize all columns to their content and the afterwards available space is given to expandingColumn.

void ETableView::setModel ( QAbstractItemModel *  model)

+ Here is the call graph for this function:


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