管理上下文标签的类
更多...
#include <SARibbonContextCategory.h>
|
class | PrivateData |
| The SARibbonContextCategoryPrivate class
|
|
|
void | hide () |
| hide contextCategory/隐藏上下文标签
|
|
void | show () |
| show contextCategory/显示上下文标签
|
|
|
QWidget * | parentWidget () const |
|
virtual bool | eventFilter (QObject *watched, QEvent *e) override |
|
◆ addCategoryPage() [1/2]
SARibbonCategory * SARibbonContextCategory::addCategoryPage |
( |
const QString & |
title | ) |
|
◆ addCategoryPage() [2/2]
◆ categoryList()
获取所有的SARibbonCategory*
- 返回
◆ categoryPage()
◆ categoryPageAdded
◆ categoryPageRemoved
void SARibbonContextCategory::categoryPageRemoved |
( |
SARibbonCategory * |
category | ) |
|
|
signal |
◆ categoryTitleChanged
void SARibbonContextCategory::categoryTitleChanged |
( |
SARibbonCategory * |
category, |
|
|
const QString & |
title |
|
) |
| |
|
signal |
上下文标签维护的标签页名字发生了改变
- 参数
-
category | 发生改变的上下文标签页 |
title | 新名字 |
◆ contextTitle()
QString SARibbonContextCategory::contextTitle |
( |
| ) |
const |
◆ contextTitleChanged
void SARibbonContextCategory::contextTitleChanged |
( |
const QString & |
title | ) |
|
|
signal |
◆ hide
void SARibbonContextCategory::hide |
( |
| ) |
|
|
slot |
hide contextCategory/隐藏上下文标签
此方法等同于:
ribbon->hideContextCategory(this);
◆ isHaveCategory()
bool SARibbonContextCategory::isHaveCategory |
( |
SARibbonCategory * |
category | ) |
const |
判断上下文是否维护了此SARibbonCategory
- 参数
-
- 返回
◆ setContextTitle()
void SARibbonContextCategory::setContextTitle |
( |
const QString & |
contextTitle | ) |
|
◆ show
void SARibbonContextCategory::show |
( |
| ) |
|
|
slot |
show contextCategory/显示上下文标签
此方法等同于:
ribbon->showContextCategory(this);
◆ takeCategory()
移除这个category,这时SARibbonContextCategory不再管理这个category
- 参数
-
- 返回
- 成功移除返回true
该类的文档由以下文件生成:
- /home/runner/work/SARibbon/SARibbon/src/SARibbonBar/SARibbonContextCategory.h
- /home/runner/work/SARibbon/SARibbon/src/SARibbonBar/SARibbonContextCategory.cpp