KDEUI
KToolBarSpacerAction Class Reference
An extension to KAction which allows for adding a spacer item into a QToolBar / KToolBar. More...
#include <ktoolbarspaceraction.h>
Public Member Functions | |
| virtual QWidget * | createWidget (QWidget *parent) |
| virtual void | deleteWidget (QWidget *widget) |
| KToolBarSpacerAction (QObject *parent) | |
| int | maximumWidth () const |
| int | minimumWidth () const |
| void | setMaximumWidth (int width) |
| void | setMinimumWidth (int width) |
| void | setWidth (int width) |
| int | width () const |
| ~KToolBarSpacerAction () | |
Properties | |
| int | maximumWidth |
| int | minimumWidth |
| int | width |
Detailed Description
An extension to KAction which allows for adding a spacer item into a QToolBar / KToolBar.
Use this as the replacement for the old KToolBar::alignItemRight().
Definition at line 32 of file ktoolbarspaceraction.h.
Constructor & Destructor Documentation
| KToolBarSpacerAction::KToolBarSpacerAction | ( | QObject * | parent | ) | [explicit] |
Creates a new toolbar spacer action.
- Parameters:
-
parent The action's parent object.
Definition at line 42 of file ktoolbarspaceraction.cpp.
| KToolBarSpacerAction::~KToolBarSpacerAction | ( | ) |
Definition at line 48 of file ktoolbarspaceraction.cpp.
Member Function Documentation
Reimplemented from.
- See also:
- QActionWidgetFactory.
Definition at line 101 of file ktoolbarspaceraction.cpp.
| void KToolBarSpacerAction::deleteWidget | ( | QWidget * | widget | ) | [virtual] |
Reimplemented from.
- See also:
- QWidgetAction.
Definition at line 116 of file ktoolbarspaceraction.cpp.
| int KToolBarSpacerAction::maximumWidth | ( | ) | const |
Returns the maximum width of the spacer item.
| int KToolBarSpacerAction::minimumWidth | ( | ) | const |
Returns the minimum width of the spacer item.
| void KToolBarSpacerAction::setMaximumWidth | ( | int | width | ) |
Sets the maximum.
- Parameters:
-
width of the spacer item.
Definition at line 90 of file ktoolbarspaceraction.cpp.
| void KToolBarSpacerAction::setMinimumWidth | ( | int | width | ) |
Sets the minimum.
- Parameters:
-
width of the spacer item.
Definition at line 74 of file ktoolbarspaceraction.cpp.
| void KToolBarSpacerAction::setWidth | ( | int | width | ) |
Sets the.
- Parameters:
-
width of the spacer item.
Definition at line 58 of file ktoolbarspaceraction.cpp.
| int KToolBarSpacerAction::width | ( | ) | const |
Returns the width of the spacer item.
Property Documentation
int KToolBarSpacerAction::maximumWidth [read, write] |
Definition at line 37 of file ktoolbarspaceraction.h.
int KToolBarSpacerAction::minimumWidth [read, write] |
Definition at line 36 of file ktoolbarspaceraction.h.
int KToolBarSpacerAction::width [read, write] |
Definition at line 35 of file ktoolbarspaceraction.h.
The documentation for this class was generated from the following files:
KDE 4.3 API Reference