SARibbon 2.5.2
SARibbon wiki
载入中...
搜索中...
未找到
SARibbonApplicationWidget.h
1#ifndef SARIBBONAPPLICATIONWIDGET_H
2#define SARIBBONAPPLICATIONWIDGET_H
3#include "SARibbonGlobal.h"
4#include <QFrame>
5class QShowEvent;
6class QKeyEvent;
19class SA_RIBBON_EXPORT SARibbonApplicationWidget : public QFrame
20{
21 Q_OBJECT
22public:
23 // Constructor for SARibbonApplicationWidget
25
26protected:
27 // Resizes the widget to match the parent's size
28 virtual void resizeToParent(const QSize& parentSize);
29
30protected:
31 // Event filter to handle parent window events
32 bool eventFilter(QObject* obj, QEvent* ev) override;
33 // Handles the show event
34 void showEvent(QShowEvent* event) override;
35 // Handles key press events
36 void keyPressEvent(QKeyEvent* ev) override;
37};
38
39#endif // SARIBBONAPPLICATIONWIDGET_H
Definition SARibbonApplicationWidget.h:20
Definition SARibbonMainWindow.h:86