Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:09:33

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