The GridViewOptions class intended for configuring the behavior and appearance of different parts of QtitanDataGrid. More...
#include <Qtitan>
Inherits QObject.
Inherited by Qtitan::GridTableViewOptions.
GridViewOptions ( GridViewBase * view ) | |
bool | autoScroll () const |
const QColor & | backgroundColor () const |
const QColor & | borderColor () const |
int | borderWidth () const |
const QFont & | columnFont () const |
const QPen & | columnPen () const |
bool | groupsHeader () const |
const QBrush & | groupsHeaderBrush () const |
const QString & | groupsHeaderText () const |
const QColor & | groupsHeaderTextColor () const |
bool | isGroupSortEnabled () const |
bool | isSortEnabled () const |
bool | modelDecoration () const |
bool | rubberBandSelection () const |
ScrollBarsMode | scrollBars () const |
GridScrollStyle | scrollRowStyle () const |
void | setAutoScroll ( bool autoScroll ) |
void | setBackgroundColor ( const QColor & color ) |
void | setBorderColor ( const QColor & color ) |
void | setBorderWidth ( int width ) |
void | setColumnFont ( const QFont & font ) |
void | setColumnPen ( const QPen & pen ) |
void | setGroupSortEnabled ( bool enabled ) |
void | setGroupsHeader ( bool groupsHeader ) |
void | setGroupsHeaderBrush ( const QBrush & brush ) |
void | setGroupsHeaderText ( const QString & text ) |
void | setGroupsHeaderTextColor ( const QColor & color ) |
void | setModelDecoration ( bool enabled ) |
void | setRubberBandSelection ( bool enabled ) |
void | setScrollBars ( ScrollBarsMode mode ) |
void | setScrollRowStyle ( GridScrollStyle style ) |
void | setSortEnabled ( bool enabled ) |
void | setTransparent ( bool t ) |
bool | transparent () const |
GridViewBase * | view () const |
The GridViewOptions class intended for configuring the behavior and appearance of different parts of QtitanDataGrid.
The settings stored in this class relate to all types of views supported by the grid. To change the settings related to a specific view of Qtitan::GridTableView or Qtitan::GridBandedTableView, use the Qtitan::GridTableViewOptions or Qtitan::GridBandedTableViewOptions classes respectively. The Qtitan::GridViewOptions class is used for spawning settings classes of specific views.
Constructor of the Qtitan::GridViewOptions class. The constructor is called automatically when a grid view is created.
Returns the status of the grid view horizontal autoscrolling when an attempt is made to move the grid column by dragging it by the boundary of the visible part.
See also setAutoScroll().
See also setBackgroundColor().
Returns the grid view border color. The default value is Qt::black.
See also setBorderColor().
Returns the grid view border width (in pixels). The default value is 1px. The border color is set by the borderColor() function.
See also setBorderWidth().
Returns Font that is used for displaying text in grid columns.
See also setColumnFont().
Returns Pen, that is used for displaying text in grid columns.
See also setColumnPen().
Returns the visibility value of the grid grouping panel.
See also setGroupsHeader().
See also setGroupsHeaderBrush().
See also setGroupsHeaderText().
See also setGroupsHeaderTextColor().
Returns the status of the flag enabling the user to sort by a column taking part in sorting.
Returns the status of the flag allowing the user to sort by a column.
Returns the status of the flag allowing the use of decoration settings of the grid cells obtained from corresponding model roles, such as Qt::FontRole, Qt::DecorationRole, Qt::BackgroundRole and others. The default value is "false".
See also setModelDecoration().
Returns the status of the flag allowing the use of RubberBand for cell or row multi-selection. The default value is "true".
See also setRubberBandSelection().
Returns the scrollbar display mode value. The default value is Qtitan::ScrollAuto.
See also setScrollBars().
Returns the grid row scrolling mode value. Two types of scrolling are supported: by row and by pixel.
See also setScrollRowStyle() and Qtitan::GridScrollStyle.
Enables of disables the grid view horizontal autoscrolling when the grid is moved by the boundary of the visible part.
See also autoScroll().
See also backgroundColor().
Sets the grid view border color.
See also borderColor().
Sets the grid view border width in pixels. The border color is set by the setBorderColor() function.
See also borderWidth().
Defines the Font that is used for displaying text in grid columns.
See also columnFont().
Defines the Pen that is used for displaying text in grid columns.
See also columnPen().
Sets the status of the flag allowing the user to sort by a column taking part in sorting.
See also isGroupSortEnabled().
Sets the visibility status of the grid grouping panel.
See also groupsHeader().
See also groupsHeaderBrush().
See also groupsHeaderText().
See also groupsHeaderTextColor().
Sets the status of the flag allowing the use of decoration settings of the grid cells obtained from corresponding model roles, such as Qt::FontRole, Qt::DecorationRole, Qt::BackgroundRole and others.
See also modelDecoration().
Sets the status of the flag allowing the use of RubberBand for cell or row multi-selection.
See also rubberBandSelection().
Sets the scrollbar display mode.
See also scrollBars().
Sets the grid row scrolling mode. Two scrolling modes are supported: by row and by pixel.
See also scrollRowStyle() and Qtitan::GridScrollStyle.
Sets the status of the flag allowing the user to sort by a column.
See also isSortEnabled().
See also transparent().
See also setTransparent().