SARibbon 2.5.1
SARibbon wiki
载入中...
搜索中...
未找到
SARibbonPanelItem.h
1#ifndef SARIBBONPANELITEM_H
2#define SARIBBONPANELITEM_H
3#include "SARibbonGlobal.h"
4#include <QWidgetItem>
5#include <QAction>
16class SA_RIBBON_EXPORT SARibbonPanelItem : public QWidgetItem
17{
18public:
23 {
27 Small
28 };
29 explicit SARibbonPanelItem(QWidget* widget);
31
32 bool isEmpty() const Q_DECL_OVERRIDE;
33
34 short rowIndex;
35 int columnIndex;
36 QRect itemWillSetGeometry;
37 QAction* action;
38 bool customWidget;
40};
41#ifndef SA_ActionPropertyName_RowProportion
42#define SA_ActionPropertyName_RowProportion "_sa_RowProportion"
43#endif
44#ifndef SA_ActionPropertyName_ToolButtonPopupMode
45#define SA_ActionPropertyName_ToolButtonPopupMode "_sa_ToolButtonPopupMode"
46#endif
47#ifndef SA_ActionPropertyName_ToolButtonStyle
48#define SA_ActionPropertyName_ToolButtonStyle "_sa_ToolButtonStyle"
49#endif
50#endif // SARIBBONPANELITEM_H
是对panel所有子窗口的抽象,参考qt的toolbar
Definition SARibbonPanelItem.h:17
RowProportion
定义了行的占比,ribbon中有large,media和small三种占比
Definition SARibbonPanelItem.h:23
@ Medium
中占比,在SARibbonPanel::panelLayoutMode 为 SARibbonPanel::ThreeRowMode 时才会起作用,且要同一列里两个都是Medium时,会在三行中占据两行
Definition SARibbonPanelItem.h:26
@ Large
大占比,一个widget的高度会充满整个panel
Definition SARibbonPanelItem.h:25
@ None
为定义占比,这时候将会依据expandingDirections来判断,如果能有Qt::Vertical,就等同于Large,否则就是Small
Definition SARibbonPanelItem.h:24
Ribbon interface adapted tool button / Ribbon界面适用的toolButton
Definition SARibbonToolButton.h:20