QtGui/qtoolbar.h Source File
Go to the documentation of this file.
42 #ifndef QDYNAMICTOOLBAR_H
43 #define QDYNAMICTOOLBAR_H
55 class QToolBarPrivate;
66 Q_PROPERTY(
bool movable READ isMovable WRITE setMovable
68 NOTIFY movableChanged)
69 Q_PROPERTY(Qt::ToolBarAreas allowedAreas READ allowedAreas WRITE setAllowedAreas
70 DESIGNABLE (qobject_cast<QMainWindow *>(
parentWidget()) != 0)
71 NOTIFY allowedAreasChanged)
73 DESIGNABLE (qobject_cast<QMainWindow *>(
parentWidget()) == 0)
74 NOTIFY orientationChanged)
75 Q_PROPERTY(
QSize iconSize READ iconSize WRITE setIconSize NOTIFY iconSizeChanged)
77 NOTIFY toolButtonStyleChanged)
79 Q_PROPERTY(
bool floatable READ isFloatable WRITE setFloatable)
86 void setMovable(
bool movable);
87 bool isMovable()
const;
89 void setAllowedAreas(Qt::ToolBarAreas areas);
90 Qt::ToolBarAreas allowedAreas()
const;
93 {
return (allowedAreas() & area) == area; }
100 #ifdef Q_NO_USING_KEYWORD
121 inline QAction *actionAt(
int x,
int y)
const;
123 QAction *toggleViewAction()
const;
125 QSize iconSize()
const;
130 bool isFloatable()
const;
131 void setFloatable(
bool floatable);
132 bool isFloating()
const;
135 void setIconSize(
const QSize &iconSize);
139 void actionTriggered(
QAction *action);
140 void movableChanged(
bool movable);
141 void allowedAreasChanged(Qt::ToolBarAreas allowedAreas);
143 void iconSizeChanged(
const QSize &iconSize);
145 void topLevelChanged(
bool topLevel);
146 void visibilityChanged(
bool visible);
160 inline QT3_SUPPORT
void setLabel(
const QString &label)
162 inline QT3_SUPPORT
QString label()
const
174 friend class QMainWindowLayout;
175 friend class QToolBarLayout;
176 friend class QToolBarAreaLayout;
180 {
return actionAt(
QPoint(ax, ay)); }
182 #endif // QT_NO_TOOLBAR
188 #endif // QDYNAMICTOOLBAR_H
GLXDrawable GLXDrawable member
#define Q_PRIVATE_SLOT(d, signature)
#define QT_BEGIN_NAMESPACE
GLuint const GLchar * name
virtual void childEvent(QChildEvent *)