4#ifndef QDYNAMICTOOLBAR_H
5#define QDYNAMICTOOLBAR_H
7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtGui/qaction.h>
9#include <QtWidgets/qwidget.h>
20class QStyleOptionToolBar;
26 Q_PROPERTY(
bool movable READ isMovable WRITE setMovable NOTIFY movableChanged)
27 Q_PROPERTY(
Qt::ToolBarAreas allowedAreas READ allowedAreas WRITE setAllowedAreas
28 NOTIFY allowedAreasChanged)
29 Q_PROPERTY(
Qt::Orientation orientation READ orientation WRITE setOrientation
30 NOTIFY orientationChanged)
32 Q_PROPERTY(
Qt::ToolButtonStyle toolButtonStyle READ toolButtonStyle WRITE setToolButtonStyle
33 NOTIFY toolButtonStyleChanged)
35 Q_PROPERTY(
bool floatable READ isFloatable WRITE setFloatable)
42 void setMovable(
bool movable);
43 bool isMovable() const;
45 void setAllowedAreas(
Qt::ToolBarAreas areas);
46 Qt::ToolBarAreas allowedAreas() const;
48 inline
bool isAreaAllowed(
Qt::ToolBarArea
area)
const
49 {
return (allowedAreas() &
area) ==
area; }
57#if QT_WIDGETS_REMOVED_SINCE(6, 3)
62 const QObject *receiver,
const char* member);
73 inline QAction *actionAt(
int x,
int y)
const;
75 QAction *toggleViewAction()
const;
82 bool isFloatable()
const;
83 void setFloatable(
bool floatable);
84 bool isFloating()
const;
105 virtual void initStyleOption(QStyleOptionToolBar *
option)
const;
The QActionEvent class provides an event that is generated when a QAction is added,...
The QAction class provides an abstraction for user commands that can be added to different user inter...
The QIcon class provides scalable icons in different modes and states.
The QMainWindow class provides a main application window.
The QPaintEvent class contains event parameters for paint events.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
static int area(const QSize &s)
GLint GLint GLint GLint GLint x
[0]
#define QT_REQUIRE_CONFIG(feature)