QtCanpool 3.3.0
载入中...
搜索中...
未找到
ribbongallery.h
浏览该文件的文档.
1
5#pragma once
6
7#include "qxribbon_global.h"
9
10#include <QFrame>
11
13
14class RibbonGalleryPrivate;
15
37class QX_RIBBON_EXPORT RibbonGallery : public QFrame
38{
39 Q_OBJECT
40public:
41 RibbonGallery(QWidget *parent = Q_NULLPTR);
42 virtual ~RibbonGallery();
43
44 RibbonGalleryGroup *addGalleryGroup();
45 RibbonGalleryGroup *addGalleryGroup(const QString &title, QList<QAction *> actions);
46 void addGalleryGroup(RibbonGalleryGroup *group);
47 RibbonGalleryGroup *currentViewGroup() const;
48 void setCurrentViewGroup(RibbonGalleryGroup *group);
49
50 virtual QSize sizeHint() const Q_DECL_OVERRIDE;
51 static void setGalleryButtonMaximumWidth(int w = 15);
52Q_SIGNALS:
53 void triggered(QAction *action);
54 void hovered(QAction *action);
55public Q_SLOTS:
56 virtual void pageUp();
57 virtual void pageDown();
58 virtual void showMoreDetail();
59protected Q_SLOTS:
60 void onItemClicked(const QModelIndex &index);
61 virtual void onTriggered(QAction *action);
62protected:
63 void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE;
64 void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
65private:
67};
68
void triggered(QAction *action)
void hovered(QAction *action)
#define QX_DECLARE_PRIVATE(Class)
#define Q_NULLPTR
Copyleft (C) 2025 maminjie canpool@163.com SPDX-License-Identifier: MulanPSL-2.0
#define QX_RIBBON_EXPORT
#define QX_RIBBON_END_NAMESPACE
#define QX_RIBBON_BEGIN_NAMESPACE