Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-06-15 08:34:10

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 QFOCUSFRAME_H
0006 #define QFOCUSFRAME_H
0007 
0008 #include <QtWidgets/qtwidgetsglobal.h>
0009 #include <QtWidgets/qwidget.h>
0010 
0011 QT_BEGIN_NAMESPACE
0012 
0013 
0014 class QFocusFramePrivate;
0015 class QStyleOption;
0016 
0017 class Q_WIDGETS_EXPORT QFocusFrame : public QWidget
0018 {
0019     Q_OBJECT
0020 public:
0021     QFocusFrame(QWidget *parent = nullptr);
0022     ~QFocusFrame();
0023 
0024     void setWidget(QWidget *widget);
0025     QWidget *widget() const;
0026 
0027 protected:
0028     bool event(QEvent *e) override;
0029 
0030     bool eventFilter(QObject *, QEvent *) override;
0031     void paintEvent(QPaintEvent *) override;
0032     virtual void initStyleOption(QStyleOption *option) const;
0033 
0034 private:
0035     Q_DECLARE_PRIVATE(QFocusFrame)
0036     Q_DISABLE_COPY(QFocusFrame)
0037 };
0038 
0039 QT_END_NAMESPACE
0040 
0041 #endif // QFOCUSFRAME_H