Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qtoolbarextension_p.h
Go to the documentation of this file.
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 QDYNAMICTOOLBAREXTENSION_P_H
5#define QDYNAMICTOOLBAREXTENSION_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/qtoolbutton.h"
20
22
24
26{
28
29public:
30 explicit QToolBarExtension(QWidget *parent);
31 void paintEvent(QPaintEvent *) override;
32 QSize sizeHint() const override;
33
34public Q_SLOTS:
35 void setOrientation(Qt::Orientation o);
36
37protected:
38 bool event(QEvent *e) override;
39
40private:
41 Qt::Orientation m_orientation;
42};
43
45
46#endif // QDYNAMICTOOLBAREXTENSION_P_H
\inmodule QtCore
Definition qcoreevent.h:45
The QPaintEvent class contains event parameters for paint events.
Definition qevent.h:486
\inmodule QtCore
Definition qsize.h:25
The QToolButton class provides a quick-access button to commands or options, usually used inside a QT...
Definition qtoolbutton.h:20
QSize sizeHint() const override
\reimp
void paintEvent(QPaintEvent *) override
Paints the button in response to the paint event.
The QWidget class is the base class of all user interface objects.
Definition qwidget.h:99
Combined button and popup list for selecting options.
Orientation
Definition qnamespace.h:98
struct _cl_event * event
#define Q_AUTOTEST_EXPORT
#define QT_REQUIRE_CONFIG(feature)
#define Q_OBJECT
#define Q_SLOTS