GridColumnBase Class

GridColumnBase provides base functionality for columns. All columns classes are derived from this class. More...

Header: #include <GridColumnBase>
Inherits: QObject
Inherited By:

GridColumn and GridTableBand

Public Functions

const QColor &backgroundColor() const
const QString &caption() const
GridColumnEditor *columnEditor() const
const QColor &decorationColor() const
Qtitan::ItemPosition fixedKind() const
Qtitan::ItemPosition fixedPosition() const
const QFont &font() const
const QString &htmlCaption() const
const QIcon &icon() const
int index() const
bool isCaptionVisible() const
bool isHidingEnabled() const
bool isMenuButtonVisible() const
bool isMovingEnabled() const
bool isShowingFirst() const
bool isShowingLast() const
int maxWidth() const
int minWidth() const
const QPen &pen() const
void setBackgroundColor(const QColor &color)
void setCaption(const QString &caption)
void setCaptionVisible(bool visible)
void setColumnEditor(GridColumnEditor *editor)
void setDecorationColor(const QColor &color)
void setFixedKind(Qtitan::ItemPosition position)
void setFixedPosition(Qtitan::ItemPosition position)
void setFont(const QFont &font)
void setHidingEnabled(bool enabled)
void setHtmlCaption(const QString &caption)
void setIcon(const QIcon &icon)
void setMaxWidth(int max)
void setMenuButtonVisible(bool visible)
void setMinWidth(int min)
void setMovingEnabled(bool enabled)
void setPen(const QPen &pen)
void setTextColor(const QColor &color)
void setVisualIndex(int visualIndex)
void setWidth(int width)
QColor textColor() const
int visualIndex() const
int width() const

Detailed Description

Member Function Documentation

const QColor &GridColumnBase::backgroundColor() const

Note: Getter function for property backgroundColor.

See also setBackgroundColor and setDecorationColor.

GridColumnEditor *GridColumnBase::columnEditor() const

Returns the column editor installed to the column.

See also setColumnEditor().

const QColor &GridColumnBase::decorationColor() const

Note: Getter function for property decorationColor.

See also setBackgroundColor and setDecorationColor.

Qtitan::ItemPosition GridColumnBase::fixedKind() const

Deprecated

See also setFixedKind().

Qtitan::ItemPosition GridColumnBase::fixedPosition() const

Returns the fixed position of the column on a view. Column can be fixed on the left side or on the right side. Fixed column can't be scrolled horizontally.

See also setFixedPosition() and Qtitan::ItemPosition.

bool GridColumnBase::isMenuButtonVisible() const

Returns a visibility of culumn header menu button. By default it is not visible.

Note: Getter function for property menuButtonVisible.

bool GridColumnBase::isShowingFirst() const

Returns "true" if the column is showing the first in a row.

bool GridColumnBase::isShowingLast() const

Returns "true" if the column is showing the last in a row.

const QPen &GridColumnBase::pen() const

See also setPen.

void GridColumnBase::setBackgroundColor(const QColor &color)

Allows you to quickly set the background color for the column. The setting is similar to the setDecorationColor(), but without changing the alpha channel.

Note: Setter function for property backgroundColor.

See also backgroundColor().

void GridColumnBase::setColumnEditor(GridColumnEditor *editor)

Sets the column editor installed to the column. Column editor allows embed a custom QWidget to any grid column or band for BandedTableView cases.

See also columnEditor() and GridColumnEditor.

void GridColumnBase::setDecorationColor(const QColor &color)

Allows you to quickly set the decoration color for the column. The setting lowers the alpha channel by the half of the color so that the color looks like a tint. You can use this setting to highlight a column visually and make it stand out from the others. If you wish to control alpha channel then use setBackgroundColor() instead.

Note: Setter function for property decorationColor.

See also decorationColor().

void GridColumnBase::setFixedKind(Qtitan::ItemPosition position)

Deprecated

See also fixedKind().

void GridColumnBase::setFixedPosition(Qtitan::ItemPosition position)

Sets the fixed position of the column on a view.

See also fixedPosition() and Qtitan::ItemPosition.

void GridColumnBase::setMenuButtonVisible(bool visible)

Sets a visibility of culumn header menu button to visible. Normally the button is on the top left of column header. By default it is not visible.

Note: Setter function for property menuButtonVisible.

See also isMenuButtonVisible().

void GridColumnBase::setPen(const QPen &pen)

Sets the pen for the column.

See also pen().

void GridColumnBase::setTextColor(const QColor &color)

Sets the text color for the column.

Note: Setter function for property textColor.

See also textColor().

QColor GridColumnBase::textColor() const

Note: Getter function for property textColor.

See also setTextColor.