![]() |
SARibbon 2.5.2
SARibbon wiki
|
#include <SARibbonPanelItem.h>
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 | |
| 枚举值 | |
|---|---|
| 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 |
|
explicit |
Constructor for SARibbonPanelItem
| SARibbonPanelItem::~SARibbonPanelItem | ( | ) |
Destructor for SARibbonPanelItem
| bool SARibbonPanelItem::isEmpty | ( | ) | const |
Check if the item is empty
| bool SARibbonPanelItem::customWidget |
< Record action, reference QToolBarLayoutItem
For action without window, there will actually be a SARibbonToolButton, which needs to be deleted during destruction