GridCardViewOptions Class
GridCardViewOptions provides a set of options to configure the card view. More...
Header: | #include <GridCardViewOptions> |
Inherits: | GridViewOptionsAbstract |
Public Functions
Qt::Alignment | itemAlignment() const |
int | itemMargin() const |
int | itemPadding() const |
int | itemTitleHeight() const |
const QString & | itemTitleText() const |
int | itemWidth() const |
int | maximumItemCount() const |
int | minimumItemCount() const |
void | setItemAlignment(Qt::Alignment alignment) |
void | setItemMargin(int margin) |
void | setItemPadding(int padding) |
void | setItemTitleHeight(int height) |
void | setItemTitleText(const QString &text) |
void | setItemWidth(int width) |
void | setMaximumItemCount(int count) |
void | setMinimumItemCount(int count) |
Detailed Description
Member Function Documentation
Qt::Alignment GridCardViewOptions::itemAlignment() const
Returns the alignment of the cards if card view layout has a free space.
See also setItemAlignment().
int GridCardViewOptions::itemMargin() const
Returns the margin in pixels between neighboring cards.
See also setItemMargin().
int GridCardViewOptions::itemPadding() const
Returns the padding in pixels between edge of the cards and its content.
See also setItemPadding().
int GridCardViewOptions::itemTitleHeight() const
Returns the height of the card's title in pixels.
See also setItemTitleHeight().
const QString &GridCardViewOptions::itemTitleText() const
Returns the text of the card's title used before card number.
See also setItemTitleText().
int GridCardViewOptions::itemWidth() const
Returns the width of the cards in pixels.
See also setItemWidth().
int GridCardViewOptions::maximumItemCount() const
Returns the maximum count of cards per line in the card view.
See also setMaximumItemCount().
int GridCardViewOptions::minimumItemCount() const
Returns the minimum count of cards per line in the card view.
See also setMinimumItemCount().
void GridCardViewOptions::setItemAlignment(Qt::Alignment alignment)
Sets the alignment of the cards if the card view has a free space. By default Left alignment is used for vertical orientation and Top alignment for horizontal.
See also itemAlignment().
void GridCardViewOptions::setItemMargin(int margin)
Sets the margin in pixels between neighboring cards.
See also itemMargin().
void GridCardViewOptions::setItemPadding(int padding)
Sets the padding in pixels between edge of the cards and its content.
See also itemPadding().
void GridCardViewOptions::setItemTitleHeight(int height)
Sets the height of the card's title in pixels.
See also itemTitleHeight().
void GridCardViewOptions::setItemTitleText(const QString &text)
Sets the text of the card's title used before card number.
See also itemTitleText().
void GridCardViewOptions::setItemWidth(int width)
Sets the width of the cards in pixels.
See also itemWidth().
void GridCardViewOptions::setMaximumItemCount(int count)
Sets the maximum count of cards per line in the card view. By default 10 cards.
See also maximumItemCount().
void GridCardViewOptions::setMinimumItemCount(int count)
Sets the minimum count of cards per line in the card view. By default 2 cards.
See also minimumItemCount().