SciDAVis  1.D4
Public Slots | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Private Attributes
TableDoubleHeaderView Class Reference

Horizontal header for TableView displaying comments in a second header. More...

#include <TableDoubleHeaderView.h>

List of all members.

Public Slots

void headerDataChanged (Qt::Orientation orientation, int logicalFirst, int logicalLast)
void refresh ()

Public Member Functions

bool areCommentsShown () const
 Return whether comments are show currently.
virtual void setModel (QAbstractItemModel *model)
void showComments (bool on=true)
 Show or hide (if on = false) the column comments.
virtual QSize sizeHint () const
 TableDoubleHeaderView (QWidget *parent=0)
 ~TableDoubleHeaderView ()

Protected Slots

void sectionsInserted (const QModelIndex &parent, int logicalFirst, int logicalLast)

Protected Member Functions

virtual void paintSection (QPainter *painter, const QRect &rect, int logicalIndex) const

Protected Attributes

bool d_show_comments
 Flag: show/high column comments.

Private Attributes


Detailed Description

Horizontal header for TableView displaying comments in a second header.

Constructor & Destructor Documentation

TableDoubleHeaderView::TableDoubleHeaderView ( QWidget *  parent = 0)

References d_show_comments, and d_slave.

TableDoubleHeaderView::~TableDoubleHeaderView ( )

References d_slave.

Member Function Documentation

bool TableDoubleHeaderView::areCommentsShown ( ) const

Return whether comments are show currently.

References d_show_comments.

Referenced by TableView::areCommentsShown().

void TableDoubleHeaderView::headerDataChanged ( Qt::Orientation  orientation,
int  logicalFirst,
int  logicalLast 

References refresh().

Referenced by setModel().

void TableDoubleHeaderView::paintSection ( QPainter *  painter,
const QRect &  rect,
int  logicalIndex 
) const

References d_show_comments, d_slave, and sizeHint().

void TableDoubleHeaderView::refresh ( )

References d_slave.

Referenced by headerDataChanged(), and showComments().

void TableDoubleHeaderView::sectionsInserted ( const QModelIndex &  parent,
int  logicalFirst,
int  logicalLast 

References d_slave.

void TableDoubleHeaderView::setModel ( QAbstractItemModel *  model)
void TableDoubleHeaderView::showComments ( bool  on = true)

Show or hide (if on = false) the column comments.

References d_show_comments, and refresh().

Referenced by TableView::showComments().

QSize TableDoubleHeaderView::sizeHint ( ) const

References d_show_comments, and d_slave.

Referenced by paintSection().

Member Data Documentation

bool TableDoubleHeaderView::d_show_comments

Flag: show/high column comments.

Referenced by areCommentsShown(), paintSection(), showComments(), sizeHint(), and TableDoubleHeaderView().

TableCommentsHeaderView* TableDoubleHeaderView::d_slave

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