#include <SARibbonGallery.h>
|
| class | PrivateData |
| | The SARibbonGalleryPrivate class
|
| |
|
| virtual void | pageUp () |
| | Scroll up one page in the current gallery group
|
| |
| virtual void | pageDown () |
| | Scroll down one page in the current gallery group
|
| |
| virtual void | showMoreDetail () |
| | Show the popup viewport with all gallery groups
|
| |
|
| void | onItemClicked (const QModelIndex &index) |
| | Slot called when an item in a gallery group is clicked
|
| |
| virtual void | onTriggered (QAction *action) |
| | Slot called when an action is triggered from the gallery
|
| |
|
| void | resizeEvent (QResizeEvent *event) override |
| | Handle resize events for the gallery
|
| |
◆ SARibbonGallery()
| SARibbonGallery::SARibbonGallery |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ ~SARibbonGallery()
| SARibbonGallery::~SARibbonGallery |
( |
| ) |
|
|
virtual |
◆ addCategoryActions()
| SARibbonGalleryGroup * SARibbonGallery::addCategoryActions |
( |
const QString & |
title, |
|
|
QList< QAction * > |
actions |
|
) |
| |
Quickly add a set of actions as a gallery group
添加一组actions
- 参数
-
- 返回
- 返回SARibbonGalleryGroup,用户可以通过修改SARibbonGalleryGroup属性控制其显示方法
◆ addGalleryGroup() [1/2]
◆ addGalleryGroup() [2/2]
◆ currentViewGroup()
Get the currently displayed gallery group
◆ getPopupViewPort()
Get the popup viewport widget
获取弹出窗口
- 返回
◆ hovered
| void SARibbonGallery::hovered |
( |
QAction * |
action | ) |
|
|
signal |
◆ onItemClicked
| void SARibbonGallery::onItemClicked |
( |
const QModelIndex & |
index | ) |
|
|
protectedslot |
Slot called when an item in a gallery group is clicked
◆ onTriggered
| void SARibbonGallery::onTriggered |
( |
QAction * |
action | ) |
|
|
protectedvirtualslot |
Slot called when an action is triggered from the gallery
◆ pageDown
| void SARibbonGallery::pageDown |
( |
| ) |
|
|
virtualslot |
Scroll down one page in the current gallery group
上翻页
◆ pageUp
| void SARibbonGallery::pageUp |
( |
| ) |
|
|
virtualslot |
Scroll up one page in the current gallery group
下翻页
◆ resizeEvent()
| void SARibbonGallery::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
overrideprotected |
Handle resize events for the gallery
◆ setCurrentViewGroup()
Set the currently displayed gallery group
◆ setGalleryButtonMaximumWidth()
| void SARibbonGallery::setGalleryButtonMaximumWidth |
( |
int |
w | ) |
|
|
static |
Set the maximum width for gallery control buttons (default 15)
设置最右边三个控制按钮的最大宽度(默认15)
- 参数
-
◆ showMoreDetail
| void SARibbonGallery::showMoreDetail |
( |
| ) |
|
|
virtualslot |
Show the popup viewport with all gallery groups
显示更多触发,默认弹出内部管理的SARibbonGalleryViewport,用户可重载此函数实现自定义的弹出
◆ triggered
| void SARibbonGallery::triggered |
( |
QAction * |
action | ) |
|
|
signal |
该类的文档由以下文件生成:
- /home/runner/work/SARibbon/SARibbon/src/SARibbonBar/SARibbonGallery.h
- /home/runner/work/SARibbon/SARibbon/src/SARibbonBar/SARibbonGallery.cpp