Public Slots | Signals | Public Member Functions | Protected Member Functions | Properties | Friends

QToolBar Class Reference

Search for all occurrences

Detailed Description

Definition at line 62 of file qtoolbar.h.

#include <qtoolbar.h>

Inheritance diagram for QToolBar:
Inheritance graph
[legend]

List of all members.

Public Slots

void  setIconSize (const QSize &iconSize)
void  setToolButtonStyle (Qt::ToolButtonStyle toolButtonStyle)

Signals

void  actionTriggered (QAction *action)
void  movableChanged (bool movable)
void  allowedAreasChanged (Qt::ToolBarAreas allowedAreas)
void  orientationChanged (Qt::Orientation orientation)
void  iconSizeChanged (const QSize &iconSize)
void  toolButtonStyleChanged (Qt::ToolButtonStyle toolButtonStyle)
void  topLevelChanged (bool topLevel)
void  visibilityChanged (bool visible)

Public Member Functions

  QToolBar (QWidget *parent=0)
  ~QToolBar ()
void  setMovable (bool movable)
bool  isMovable () const
void  setAllowedAreas (Qt::ToolBarAreas areas)
Qt::ToolBarAreas  allowedAreas () const
bool  isAreaAllowed (Qt::ToolBarArea area) const
void  setOrientation (Qt::Orientation orientation)
Qt::Orientation  orientation () const
void  clear ()
QAction addAction (const QString &text)
QAction addAction (const QIcon &icon, const QString &text)
QAction addAction (const QString &text, const QObject *receiver, const char *member)
QAction addAction (const QIcon &icon, const QString &text, const QObject *receiver, const char *member)
QAction addSeparator ()
QAction insertSeparator (QAction *before)
QAction addWidget (QWidget *widget)
QAction insertWidget (QAction *before, QWidget *widget)
QRect  actionGeometry (QAction *action) const
QAction actionAt (const QPoint &p) const
QAction actionAt (int x, int y) const
QAction toggleViewAction () const
QSize  iconSize () const
Qt::ToolButtonStyle  toolButtonStyle () const
QWidget widgetForAction (QAction *action) const
bool  isFloatable () const
void  setFloatable (bool floatable)
bool  isFloating () const

Protected Member Functions

void  actionEvent (QActionEvent *event)
void  changeEvent (QEvent *event)
void  childEvent (QChildEvent *event)
void  paintEvent (QPaintEvent *event)
void  resizeEvent (QResizeEvent *event)
bool  event (QEvent *event)
void  initStyleOption (QStyleOptionToolBar *option) const

Properties

bool  movable

Friends

class  QMainWindowLayout
class  QToolBarLayout
class  QToolBarAreaLayout

Constructor & Destructor Documentation

QToolBar ( QWidget parent = 0 ) [explicit]
~QToolBar ( )

Member Function Documentation

void setMovable ( bool  movable )
bool isMovable ( ) const
void setAllowedAreas ( Qt::ToolBarAreas  areas )
Qt::ToolBarAreas allowedAreas ( ) const
bool isAreaAllowed ( Qt::ToolBarArea  area ) const [inline]

Definition at line 92 of file qtoolbar.h.

    { return (allowedAreas() & area) == area; }
void setOrientation ( Qt::Orientation  orientation )
Qt::Orientation orientation ( ) const
void clear ( )
QAction* addAction ( const QString text )
QAction* addAction ( const QIcon icon,
const QString text 
)
QAction* addAction ( const QString text,
const QObject receiver,
const char *  member 
)
QAction* addAction ( const QIcon icon,
const QString text,
const QObject receiver,
const char *  member 
)
QAction* addSeparator ( )
QAction* insertSeparator ( QAction before )
QAction* addWidget ( QWidget widget )
QAction* insertWidget ( QAction before,
QWidget widget 
)
QRect actionGeometry ( QAction action ) const
QAction* actionAt ( const QPoint p ) const
QAction * actionAt ( int  x,
int  y 
) const [inline]

Definition at line 179 of file qtoolbar.h.

{ return actionAt(QPoint(ax, ay)); }
QAction* toggleViewAction ( ) const
QSize iconSize ( ) const
Qt::ToolButtonStyle toolButtonStyle ( ) const
QWidget* widgetForAction ( QAction action ) const
bool isFloatable ( ) const
void setFloatable ( bool  floatable )
bool isFloating ( ) const
void setIconSize ( const QSize iconSize ) [slot]
void setToolButtonStyle ( Qt::ToolButtonStyle  toolButtonStyle ) [slot]
void actionTriggered ( QAction action ) [signal]
void movableChanged ( bool  movable ) [signal]
void allowedAreasChanged ( Qt::ToolBarAreas  allowedAreas ) [signal]
void orientationChanged ( Qt::Orientation  orientation ) [signal]
void iconSizeChanged ( const QSize iconSize ) [signal]
void toolButtonStyleChanged ( Qt::ToolButtonStyle  toolButtonStyle ) [signal]
void topLevelChanged ( bool  topLevel ) [signal]
void visibilityChanged ( bool  visible ) [signal]
void actionEvent ( QActionEvent event ) [protected, virtual]

Reimplemented from QWidget.

void changeEvent ( QEvent event ) [protected, virtual]

Reimplemented from QWidget.

void childEvent ( QChildEvent event ) [protected, virtual]

Reimplemented from QObject.

void paintEvent ( QPaintEvent event ) [protected, virtual]

Reimplemented from QWidget.

void resizeEvent ( QResizeEvent event ) [protected, virtual]

Reimplemented from QWidget.

bool event ( QEvent event ) [protected, virtual]

Reimplemented from QWidget.

void initStyleOption ( QStyleOptionToolBar option ) const [protected]

Friends And Related Function Documentation

friend class QMainWindowLayout [friend]

Definition at line 174 of file qtoolbar.h.

friend class QToolBarLayout [friend]

Definition at line 175 of file qtoolbar.h.

friend class QToolBarAreaLayout [friend]

Definition at line 176 of file qtoolbar.h.


Property Documentation

bool movable [read, write]

Definition at line 67 of file qtoolbar.h.


The documentation for this class was generated from the following file:

QToolBar QToolBar QToolBar QToolBar QToolBar QToolBar QToolBar QToolBar QToolBar QToolBar
QToolBar QToolBar QToolBar QToolBar QToolBar QToolBar QToolBar QToolBar QToolBar QToolBar