![]() |
SARibbon 2.2.3
SARibbon wiki
|
Gallery控件 更多...
#include <SARibbonGallery.h>
类 | |
class | PrivateData |
The SARibbonGalleryPrivate class 更多... | |
Public 槽 | |
virtual void | pageUp () |
下翻页 | |
virtual void | pageDown () |
上翻页 | |
virtual void | showMoreDetail () |
显示更多触发,默认弹出内部管理的SARibbonGalleryViewport,用户可重载此函数实现自定义的弹出 | |
信号 | |
void | triggered (QAction *action) |
转发管理的SARibbonGalleryGroup::triggered 所有加入SARibbonGallery的action都会被一个QActionGroup管理,可以通过 | |
void | hovered (QAction *action) |
转发管理的SARibbonGalleryGroup::hovered | |
Public 成员函数 | |
SARibbonGallery (QWidget *parent=0) | |
virtual QSize | sizeHint () const Q_DECL_OVERRIDE |
SARibbonGalleryGroup * | addGalleryGroup () |
获取一个空白SARibbonGalleryGroup | |
void | addGalleryGroup (SARibbonGalleryGroup *group) |
添加一组SARibbonGalleryGroup | |
SARibbonGalleryGroup * | addCategoryActions (const QString &title, QList< QAction * > actions) |
添加一组actions | |
void | setCurrentViewGroup (SARibbonGalleryGroup *group) |
SARibbonGalleryGroup * | currentViewGroup () const |
SARibbonGalleryViewport * | getPopupViewPort () const |
获取弹出窗口 | |
静态 Public 成员函数 | |
static void | setGalleryButtonMaximumWidth (int w) |
设置最右边三个控制按钮的最大宽度(默认15) | |
Protected 槽 | |
void | onItemClicked (const QModelIndex &index) |
virtual void | onTriggered (QAction *action) |
Protected 成员函数 | |
void | resizeEvent (QResizeEvent *event) Q_DECL_OVERRIDE |
void | paintEvent (QPaintEvent *event) Q_DECL_OVERRIDE |
Gallery控件
Gallery控件是由一个当前激活的
示例如下:
SARibbonGalleryGroup * SARibbonGallery::addCategoryActions | ( | const QString & | title, |
QList< QAction * > | actions ) |
添加一组actions
title | actions组的名字 |
actions |
SARibbonGalleryGroup * SARibbonGallery::addGalleryGroup | ( | ) |
获取一个空白SARibbonGalleryGroup
void SARibbonGallery::addGalleryGroup | ( | SARibbonGalleryGroup * | group | ) |
添加一组SARibbonGalleryGroup
group |
SARibbonGalleryViewport * SARibbonGallery::getPopupViewPort | ( | ) | const |
获取弹出窗口
|
signal |
转发管理的SARibbonGalleryGroup::hovered
action |
|
static |
设置最右边三个控制按钮的最大宽度(默认15)
w |
|
signal |
转发管理的SARibbonGalleryGroup::triggered 所有加入SARibbonGallery的action都会被一个QActionGroup管理,可以通过
action |