QtlMovie 1.12 (A specialized FFmpeg front-end)
QtlFixedSizeTableWidget Class Reference

A subclass of QTableWidget which enforces a fixed table size. More...

Inheritance diagram for QtlFixedSizeTableWidget:

Public Member Functions

 QtlFixedSizeTableWidget (QWidget *parent=0)
 Constructor. More...
 
 QtlFixedSizeTableWidget (int rows, int columns, QWidget *parent=0)
 Constructor. More...
 
virtual QSize sizeHint () const Q_DECL_OVERRIDE
 Return the widget size hint. More...
 

Protected Member Functions

virtual void showEvent (QShowEvent *event) Q_DECL_OVERRIDE
 Show event handler. More...
 

Private Slots

void sectionResized ()
 Invoked when a header section is resized. More...
 

Private Member Functions

void enforceSize ()
 Enforce the table widget size. More...
 
void init ()
 Common initialization code for constructors. More...
 

Detailed Description

A subclass of QTableWidget which enforces a fixed table size.

Can be used to enforce the display of exactly all lines and columns.

Constructor & Destructor Documentation

◆ QtlFixedSizeTableWidget() [1/2]

QtlFixedSizeTableWidget::QtlFixedSizeTableWidget ( QWidget *  parent = 0)
explicit

Constructor.

Parameters
[in]parentOptional parent widget.

◆ QtlFixedSizeTableWidget() [2/2]

QtlFixedSizeTableWidget::QtlFixedSizeTableWidget ( int  rows,
int  columns,
QWidget *  parent = 0 
)

Constructor.

Parameters
[in]rowsNumber of rows in the table.
[in]columnsNumber of columns in the table.
[in]parentOptional parent widget.

Member Function Documentation

◆ sizeHint()

QSize QtlFixedSizeTableWidget::sizeHint ( ) const
virtual

Return the widget size hint.

Reimplemented from QWidget to always provide the exact size of all rows and columns.

Returns
The size hint.

◆ showEvent()

void QtlFixedSizeTableWidget::showEvent ( QShowEvent *  event)
protectedvirtual

Show event handler.

Reimplemented from QWidget.

Parameters
eventShow event.

◆ sectionResized

void QtlFixedSizeTableWidget::sectionResized ( )
privateslot

Invoked when a header section is resized.

◆ init()

void QtlFixedSizeTableWidget::init ( )
private

Common initialization code for constructors.

◆ enforceSize()

void QtlFixedSizeTableWidget::enforceSize ( )
private

Enforce the table widget size.


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