SARibbon
2.5.2
SARibbon wiki
载入中...
搜索中...
未找到
SARibbonApplicationWidget.h
1
#ifndef SARIBBONAPPLICATIONWIDGET_H
2
#define SARIBBONAPPLICATIONWIDGET_H
3
#include "SARibbonGlobal.h"
4
#include <QFrame>
5
class
QShowEvent;
6
class
QKeyEvent;
7
class
SARibbonMainWindow
;
19
class
SA_RIBBON_EXPORT
SARibbonApplicationWidget
:
public
QFrame
20
{
21
Q_OBJECT
22
public
:
23
// Constructor for SARibbonApplicationWidget
24
SARibbonApplicationWidget
(
SARibbonMainWindow
* parent);
25
26
protected
:
27
// Resizes the widget to match the parent's size
28
virtual
void
resizeToParent(
const
QSize& parentSize);
29
30
protected
:
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
SARibbonApplicationWidget
Definition
SARibbonApplicationWidget.h:20
SARibbonMainWindow
Definition
SARibbonMainWindow.h:86
src
SARibbonBar
SARibbonApplicationWidget.h
制作者
1.9.8