Gallery 的组
更多...
#include <qxribbon/ribbongallerygroup.h>
Gallery 的组
组负责显示管理 Gallery Item
在文件 ribbongallerygroup.h 第 21 行定义.
◆ DisplayRow
定义Gallery在一个group下面显示的图标行数
| 枚举值 |
|---|
| DisplayOneRow | 显示1行,默认
|
| DisplayTwoRow | |
| DisplayThreeRow | |
在文件 ribbongallerygroup.h 第 37 行定义.
◆ GalleryGroupStyle
GalleryGroup显示的样式
| 枚举值 |
|---|
| IconWithText | 图标带文字
|
| IconWithWordWrapText | 图标带文字,文字会换行显示,此模式只会对DisplayOneRow生效,如果不是DisplayOneRow,等同IconWithText
|
| IconOnly | 只有图标
|
在文件 ribbongallerygroup.h 第 28 行定义.
◆ RibbonGalleryGroup()
| QxRibbon::RibbonGalleryGroup::RibbonGalleryGroup |
( |
QWidget * |
w = Q_NULLPTR | ) |
|
|
explicit |
◆ ~RibbonGalleryGroup()
| QxRibbon::RibbonGalleryGroup::~RibbonGalleryGroup |
( |
| ) |
|
|
virtual |
◆ actionGroup()
| QActionGroup * QxRibbon::RibbonGalleryGroup::actionGroup |
( |
| ) |
const |
◆ addItem() [1/2]
| void QxRibbon::RibbonGalleryGroup::addItem |
( |
const QString & |
text, |
|
|
const QIcon & |
icon |
|
) |
| |
◆ addItem() [2/2]
| void QxRibbon::RibbonGalleryGroup::addItem |
( |
QAction * |
act | ) |
|
◆ addItems()
| void QxRibbon::RibbonGalleryGroup::addItems |
( |
const QList< QAction * > & |
acts | ) |
|
◆ displayRow()
◆ galleryGroupStyle()
◆ gridMaximumWidth()
| int QxRibbon::RibbonGalleryGroup::gridMaximumWidth |
( |
| ) |
const |
◆ gridMinimumWidth()
| int QxRibbon::RibbonGalleryGroup::gridMinimumWidth |
( |
| ) |
const |
◆ groupTitle()
| QString QxRibbon::RibbonGalleryGroup::groupTitle |
( |
| ) |
const |
◆ groupTitleChanged()
| void QxRibbon::RibbonGalleryGroup::groupTitleChanged |
( |
const QString & |
title | ) |
|
◆ hovered()
| void QxRibbon::RibbonGalleryGroup::hovered |
( |
QAction * |
action | ) |
|
等同QActionGroup的hovered 所有加入RibbonGalleryGroup的action都会被一个QActionGroup管理,可以通过
- 参见
- actionGroup获取到对应的actiongroup
- 注解
- 此属性需要通过QAbstractItemView::entered(const QModelIndex
&index)激活,因此要保证设置了setMouseTracking(true)
- 参数
-
◆ isRecalcGridSizeBlock()
| bool QxRibbon::RibbonGalleryGroup::isRecalcGridSizeBlock |
( |
| ) |
const |
◆ onItemClicked()
| void QxRibbon::RibbonGalleryGroup::onItemClicked |
( |
const QModelIndex & |
index | ) |
|
◆ onItemEntered()
| void QxRibbon::RibbonGalleryGroup::onItemEntered |
( |
const QModelIndex & |
index | ) |
|
◆ recalcGridSize() [1/2]
| void QxRibbon::RibbonGalleryGroup::recalcGridSize |
( |
| ) |
|
◆ recalcGridSize() [2/2]
| void QxRibbon::RibbonGalleryGroup::recalcGridSize |
( |
int |
galleryHeight | ) |
|
◆ selectByIndex()
| void QxRibbon::RibbonGalleryGroup::selectByIndex |
( |
int |
i | ) |
|
◆ setDisplayRow()
| void QxRibbon::RibbonGalleryGroup::setDisplayRow |
( |
DisplayRow |
r | ) |
|
◆ setGalleryGroupStyle()
◆ setGridMaximumWidth()
| void QxRibbon::RibbonGalleryGroup::setGridMaximumWidth |
( |
int |
w | ) |
|
◆ setGridMinimumWidth()
| void QxRibbon::RibbonGalleryGroup::setGridMinimumWidth |
( |
int |
w | ) |
|
◆ setGroupTitle()
| void QxRibbon::RibbonGalleryGroup::setGroupTitle |
( |
const QString & |
title | ) |
|
◆ setRecalcGridSizeBlock()
| void QxRibbon::RibbonGalleryGroup::setRecalcGridSizeBlock |
( |
bool |
on = true | ) |
|
◆ sizeHint()
| QSize QxRibbon::RibbonGalleryGroup::sizeHint |
( |
| ) |
const |
|
override |
◆ triggered()
| void QxRibbon::RibbonGalleryGroup::triggered |
( |
QAction * |
action | ) |
|
等同QActionGroup的triggered 所有加入RibbonGalleryGroup的action都会被一个QActionGroup管理,可以通过
- 参见
- actionGroup获取到对应的actiongroup
- 参数
-
该类的文档由以下文件生成: