32 Q_PROPERTY(
bool isCanCustomize READ isCanCustomize WRITE setCanCustomize)
33 Q_PROPERTY(QString pageName READ pageName WRITE setPageName)
42 QString pageName()
const;
43 void setPageName(
const QString &title);
44 QString title()
const;
50 RibbonGroup *insertGroup(
int index,
const QString &title);
53 RibbonGroup *groupByName(
const QString &title)
const;
54 RibbonGroup *groupByObjectName(
const QString &objname)
const;
58 void moveGroup(
int from,
int to);
63 bool removeGroup(
int index);
66 int groupCount()
const;
67 QList<RibbonGroup *> groupList()
const;
68 QList<RibbonGroup *> groups()
const;
70 void setBackgroundBrush(
const QBrush &brush);
72 QSize sizeHint()
const Q_DECL_OVERRIDE;
74 bool isPageContext()
const;
76 bool isCanCustomize()
const;
77 void setCanCustomize(
bool b);
79 void updateItemGeometry();
81 void setTitle(
const QString &title);
84 void markIsPageContext(
bool isPageContext =
true);
86 bool event(QEvent *e) Q_DECL_OVERRIDE;
87 void resizeEvent(QResizeEvent *e) Q_DECL_OVERRIDE;
88 void wheelEvent(QWheelEvent *event) Q_DECL_OVERRIDE;