SARibbon 2.5.2
SARibbon wiki
载入中...
搜索中...
未找到
SARibbonPanelItem类 参考

#include <SARibbonPanelItem.h>

类 SARibbonPanelItem 继承关系图:

Public 类型

enum  RowProportion { None , Large , Medium , Small }
 

Public 成员函数

 SARibbonPanelItem (QWidget *widget)
 Constructor for SARibbonPanelItem
 
 ~SARibbonPanelItem ()
 Destructor for SARibbonPanelItem
 
bool isEmpty () const Q_DECL_OVERRIDE
 Check if the item is empty
 

Public 属性

short rowIndex
 Record which row the current item belongs to, -1 in hide mode
 
int columnIndex
 Record which column the current item belongs to, -1 in hide mode
 
QRect itemWillSetGeometry
 This will be updated when calling SARibbonPanelLayout::updateGeomArray, the actual setting will use QWidgetItem::setGeometry to set Geometry
 
QAction * action
 
bool customWidget
 < Record action, reference QToolBarLayoutItem
 
SARibbonPanelItem::RowProportion rowProportion
 Row proportion, there are three types of proportions in ribbon: large, medium and small, see RowProportion
 

详细描述

成员枚举类型说明

◆ RowProportion

枚举值
None 

Undefined proportion, at this time it will be judged based on expandingDirections, if there is Qt::Vertical, it is equivalent to Large, otherwise it is Small

Large 

Large proportion, the height of a widget will fill the entire panel

Medium 

Medium proportion, only works when SARibbonPanel::panelLayoutMode is SARibbonPanel::ThreeRowMode, and when both in the same column are Medium, they will occupy two rows in three rows

Small 

Small proportion, occupies one row of SARibbonPanel, Medium will also become Small when conditions are not met, but will not become Large

构造及析构函数说明

◆ SARibbonPanelItem()

SARibbonPanelItem::SARibbonPanelItem ( QWidget *  widget)
explicit

Constructor for SARibbonPanelItem

◆ ~SARibbonPanelItem()

SARibbonPanelItem::~SARibbonPanelItem ( )

Destructor for SARibbonPanelItem

成员函数说明

◆ isEmpty()

bool SARibbonPanelItem::isEmpty ( ) const

Check if the item is empty

类成员变量说明

◆ customWidget

bool SARibbonPanelItem::customWidget

< Record action, reference QToolBarLayoutItem

For action without window, there will actually be a SARibbonToolButton, which needs to be deleted during destruction


该类的文档由以下文件生成: