41 void setOptionAction(QAction* action);
44 bool isHaveOptionAction()
const;
53 QWidget* lastWidget()
const;
56 void move(
int from,
int to);
60 void updateGeomArray();
63 int indexByAction(QAction* action)
const;
66 int panelTitleHeight()
const;
69 void setPanelTitleHeight(
int newTitleHeight);
72 bool isEnableShowPanelTitle()
const;
75 void setEnableShowPanelTitle(
bool on);
78 int largeButtonHeight()
const;
81 int panelTitleSpace()
const;
84 void setPanelTitleSpace(
int newTitleSpace);
90 void setToolButtonIconSize(
const QSize& smallSize,
const QSize& largeSize);
92 QPair< QSize, QSize > toolButtonIconSize()
const;
95 void setLargeIconSize(
const QSize& largeSize);
97 QSize largeIconSize()
const;
100 void setSmallIconSize(
const QSize& largeSize);
102 QSize smallIconSize()
const;
105 bool isEnableWordWrap()
const;
107 qreal buttonMaximumAspectRatio()
const;
111 void addItem(QLayoutItem* item) Q_DECL_OVERRIDE;
114 QLayoutItem* itemAt(
int index)
const Q_DECL_OVERRIDE;
117 QLayoutItem* takeAt(
int index) Q_DECL_OVERRIDE;
120 int count()
const Q_DECL_OVERRIDE;
123 bool isEmpty()
const Q_DECL_OVERRIDE;
126 void invalidate() Q_DECL_OVERRIDE;
129 Qt::Orientations expandingDirections()
const Q_DECL_OVERRIDE;
131 void setGeometry(
const QRect& rect) Q_DECL_OVERRIDE;
133 QSize minimumSize()
const Q_DECL_OVERRIDE;
135 QSize sizeHint()
const Q_DECL_OVERRIDE;
139 QSize optionActionButtonSize()
const;
146 void updateGeomArray(
const QRect& setrect);
148 void recalcExpandGeomArray(
const QRect& setrect);
150 void setEnableWordWrap(
bool on);
152 void setButtonMaximumAspectRatio(qreal fac = 1.4);
156 void columnWidthInfo(
int colindex,
int& width,
int& maximum)
const;
162 QList< SARibbonPanelItem* > mItems;
163 int mColumnCount { 0 };
164 bool mExpandFlag {
false };
166 QSize mSmallToolButtonIconSize { 22, 22 };
167 QSize mLargeToolButtonIconSize { 32, 32 };
168 bool mDirty {
true };
169 int mLargeHeight { 0 };
170 int mTitleHeight { 15 };
171 int mTitleSpace { 2 };
172 bool mEnableShowTitle {
true };
174 QRect mTitleLabelGeometry;
175 QToolButton* mOptionActionBtn {
nullptr };
176 QRect mOptionActionBtnGeometry;
177 bool mEnableWordWrap {
true };
178 qreal mButtonMaximumAspectRatio { 1.4 };
@ None
Undefined proportion, at this time it will be judged based on expandingDirections,...
Definition SARibbonPanelItem.h:38