Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-10-02 09:19:43

0001 // Copyright (C) 2016 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0003 // Qt-Security score:significant reason:default
0004 
0005 #ifndef QSIZEGRIP_H
0006 #define QSIZEGRIP_H
0007 
0008 #include <QtWidgets/qtwidgetsglobal.h>
0009 #include <QtWidgets/qwidget.h>
0010 
0011 QT_REQUIRE_CONFIG(sizegrip);
0012 
0013 QT_BEGIN_NAMESPACE
0014 
0015 class QSizeGripPrivate;
0016 class Q_WIDGETS_EXPORT QSizeGrip : public QWidget
0017 {
0018     Q_OBJECT
0019 public:
0020     explicit QSizeGrip(QWidget *parent);
0021     ~QSizeGrip();
0022 
0023     QSize sizeHint() const override;
0024     void setVisible(bool) override;
0025 
0026 protected:
0027     void paintEvent(QPaintEvent *) override;
0028     void mousePressEvent(QMouseEvent *) override;
0029     void mouseMoveEvent(QMouseEvent *) override;
0030     void mouseReleaseEvent(QMouseEvent *mouseEvent) override;
0031     void moveEvent(QMoveEvent *moveEvent) override;
0032     void showEvent(QShowEvent *showEvent) override;
0033     void hideEvent(QHideEvent *hideEvent) override;
0034     bool eventFilter(QObject *, QEvent *) override;
0035     bool event(QEvent *) override;
0036 
0037 public:
0038 
0039 private:
0040     Q_DECLARE_PRIVATE(QSizeGrip)
0041     Q_DISABLE_COPY(QSizeGrip)
0042     Q_PRIVATE_SLOT(d_func(), void _q_showIfNotHidden())
0043 };
0044 
0045 QT_END_NAMESPACE
0046 
0047 #endif // QSIZEGRIP_H