1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QDYNAMICTOOLBARSEPARATOR_P_H
5#define QDYNAMICTOOLBARSEPARATOR_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtWidgets/private/qtwidgetsglobal_p.h>
19#include "QtWidgets/qwidget.h"
20
21QT_REQUIRE_CONFIG(toolbar);
22
23QT_BEGIN_NAMESPACE
24
25class QStyleOption;
26class QToolBar;
27
28class QToolBarSeparator : public QWidget
29{
30 Q_OBJECT
31 Qt::Orientation orient;
32
33public:
34 explicit QToolBarSeparator(QToolBar *parent);
35
36 Qt::Orientation orientation() const;
37
38 QSize sizeHint() const override;
39
40 void paintEvent(QPaintEvent *) override;
41 void initStyleOption(QStyleOption *option) const;
42
43public Q_SLOTS:
44 void setOrientation(Qt::Orientation orientation);
45};
46
47QT_END_NAMESPACE
48
49#endif // QDYNAMICTOOLBARSEPARATOR_P_H
50

source code of qtbase/src/widgets/widgets/qtoolbarseparator_p.h