blob: c69b83e5d5d050ec46a9f0d6f3ce60456c155152 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef QSIZEGRIP_H
#define QSIZEGRIP_H
#include <QtWidgets/qtwidgetsglobal.h>
#include <QtWidgets/qwidget.h>
QT_REQUIRE_CONFIG(sizegrip);
QT_BEGIN_NAMESPACE
class QSizeGripPrivate;
class Q_WIDGETS_EXPORT QSizeGrip : public QWidget
{
Q_OBJECT
public:
explicit QSizeGrip(QWidget *parent);
~QSizeGrip();
QSize sizeHint() const override;
void setVisible(bool) override;
protected:
void paintEvent(QPaintEvent *) override;
void mousePressEvent(QMouseEvent *) override;
void mouseMoveEvent(QMouseEvent *) override;
void mouseReleaseEvent(QMouseEvent *mouseEvent) override;
void moveEvent(QMoveEvent *moveEvent) override;
void showEvent(QShowEvent *showEvent) override;
void hideEvent(QHideEvent *hideEvent) override;
bool eventFilter(QObject *, QEvent *) override;
bool event(QEvent *) override;
public:
private:
Q_DECLARE_PRIVATE(QSizeGrip)
Q_DISABLE_COPY(QSizeGrip)
Q_PRIVATE_SLOT(d_func(), void _q_showIfNotHidden())
};
QT_END_NAMESPACE
#endif // QSIZEGRIP_H
|