blob: 7cf2931ffd549a77aad8916c1c9bd33d32956d7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// SPDX-License-Identifier: GPL-2.0-or-later
#ifndef FQTERMOVERLAYWIDGET_H
#define FQTERMOVERLAYWIDGET_H
#include <QFrame>
#include <QResizeEvent>
#include <QEvent>
#include <QHBoxLayout>
namespace FQTerm {
class OverlayWidget: public QFrame {
public:
/**
* The widget is parented to the toplevelwidget of alignWidget,
* this could be an issue if that widget has an autoAdd Layout
*/
OverlayWidget(QWidget *parent, QWidget *anchor);
virtual void reposition();
protected:
virtual void resizeEvent(QResizeEvent*);
virtual bool eventFilter(QObject *, QEvent*);
virtual bool event(QEvent*);
private:
QWidget *anchor_;
QWidget *parent_;
};
} // namespace FQTerm
#endif // FQTERMOVERLAYWIDGET_H
|