HAL
hal::DetailsTableUtilities Class Reference

Helper class consisting of usefull details-related functions. More...

#include <details_table_utilities.h>

Collaboration diagram for hal::DetailsTableUtilities:
Collaboration graph

Static Public Member Functions

static QSize tableViewSize (const QTableView *table, int nrows, int ncols)
 
static QSize tableWidgetSize (const QTableWidget *table)
 
static void setDefaultTableStyle (QTableView *table)
 

Detailed Description

Helper class consisting of usefull details-related functions.

A utility class used to gather details-tables related helperfunctions.

Definition at line 41 of file details_table_utilities.h.

Member Function Documentation

◆ setDefaultTableStyle()

◆ tableViewSize()

QSize hal::DetailsTableUtilities::tableViewSize ( const QTableView table,
int  nrows,
int  ncols 
)
static

Calculates the "actual" width and height for the given table.

Parameters
table- The view for which to calculate the size.
nrows- The view's (model's) number of rows.
ncols- The view's (model's) number of columns.
Returns
The calculated size of the table.

Definition at line 13 of file details_table_utilities.cpp.

References QTableView::columnWidth(), QWidget::height, QTableView::horizontalHeader(), QTableView::rowHeight(), QTableView::verticalHeader(), and QWidget::width.

Referenced by tableWidgetSize().

◆ tableWidgetSize()

QSize hal::DetailsTableUtilities::tableWidgetSize ( const QTableWidget table)
static

Caluclates the "actual" width and height for the given table.

Parameters
table- The table for which to calculate the size.
Returns
The calculated size of the table.

Definition at line 8 of file details_table_utilities.cpp.

References QTableWidget::columnCount, QTableWidget::rowCount, and tableViewSize().


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