![]() |
Qt 4.8
|
#include <qdecorationstyled_qws.h>
Public Functions | |
| bool | paint (QPainter *painter, const QWidget *widget, int decorationRegion=All, DecorationState state=Normal) |
| Paints the border and title decoration for the top-level widget using the painter provided and the decoration state. More... | |
| QDecorationStyled () | |
| QRegion | region (const QWidget *widget, const QRect &rect, int decorationRegion=All) |
| Returns the region specified by decorationRegion for the top-level widget. More... | |
| int | titleBarHeight (const QWidget *widget) |
| Returns the title bar height in pixels for the given widget. More... | |
| virtual | ~QDecorationStyled () |
Public Functions inherited from QDecorationDefault | |
| QDecorationDefault () | |
| Default constructor. More... | |
| virtual | ~QDecorationDefault () |
| The constructor deletes the static pixmaps. More... | |
Public Functions inherited from QDecoration | |
| virtual void | buildSysMenu (QWidget *widget, QMenu *menu) |
| Builds the system menu for the given top level widget, adding Restore, Move, Size, Minimize, Maximize and Close actions to the given menu. More... | |
| void | menuTriggered (QWidget *widget, QAction *action) |
| This function is called whenever an action in a top level widget's menu is triggered, and simply calls the regionClicked() function passing the widget and action parameters as arguments. More... | |
| QDecoration () | |
| Constructs a decoration object. More... | |
| QRegion | region (const QWidget *w, int decorationRegion=All) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More... | |
| virtual int | regionAt (const QWidget *w, const QPoint &point) |
| Returns the type of the first region of the specified top level widget containing the given point. More... | |
| virtual void | regionClicked (QWidget *widget, int region) |
| Handles the event that the specified region in the given top level widget is activated by a single click (the region parameter is described using the DecorationRegion enum). More... | |
| virtual void | regionDoubleClicked (QWidget *widget, int region) |
| Handles the event that the specified region in the given top level widget is activated by a double click (the region parameter is described using the DecorationRegion enum). More... | |
| virtual | ~QDecoration () |
| Destroys this decoration object. More... | |
Additional Inherited Members | |
Public Types inherited from QDecoration | |
| enum | DecorationRegion { None = 0x0000000000, All = 0x7fffffff, TopLeft = 0x0000000001, Top = 0x0000000002, TopRight = 0x0000000004, Left = 0x0000000008, Right = 0x0000000010, BottomLeft = 0x0000000020, Bottom = 0x0000000040, BottomRight = 0x0000000080, Borders = 0x00000000ff, Menu = 0x0000000100, Title = 0x0000000200, Help = 0x0000000400, Minimize = 0x0000000800, Maximize = 0x0000001000, Normalize = 0x0000002000, Close = 0x0000004000, Move = 0x0000008000, Resize = 0x0000010000 } |
| This enum describes the various regions of the window decoration. More... | |
| enum | DecorationState { Normal = 0x04, Disabled = 0x08, Hover = 0x01, Pressed = 0x02 } |
| This enum describes the various states of a decoration region. More... | |
Static Public Functions inherited from QDecoration | |
| static void | startMove (QWidget *widget) |
| Starts to move the given top level widget by making its Title region active and grabbing the mouse input. More... | |
| static void | startResize (QWidget *widget) |
| Starts to resize the given top level widget by making its BottomRight region active and grabbing the mouse input. More... | |
Protected Functions inherited from QDecorationDefault | |
| virtual void | paintButton (QPainter *painter, const QWidget *widget, int buttonRegion, DecorationState state, const QPalette &pal) |
| Paints a region of the top-level widget. More... | |
| virtual QPixmap | pixmapFor (const QWidget *widget, int decorationRegion, int &xoff, int &yoff) |
| Returns a pointer to the QPixmap for the widget specified by widget and decorationRegion. More... | |
| QString | windowTitleFor (const QWidget *widget) const |
| virtual const char ** | xpmForRegion (int region) |
| Returns a pointer to the X pixmap for the icon specified by region. More... | |
Protected Variables inherited from QDecorationDefault | |
| int | close_width |
| int | help_width |
| int | maximize_width |
| int | menu_width |
| int | minimize_width |
| int | normalize_width |
Definition at line 55 of file qdecorationstyled_qws.h.
| QDecorationStyled::QDecorationStyled | ( | ) |
Definition at line 55 of file qdecorationstyled_qws.cpp.
|
virtual |
Definition at line 60 of file qdecorationstyled_qws.cpp.
|
virtual |
Paints the border and title decoration for the top-level widget using the painter provided and the decoration state.
The value of decorationRegion is a combination of the bitmask values of enum DecorationRegion.
Note that Qt for Embedded Linux expects this function to return true if any of the widget's decorations are repainted; otherwise it returns false.
Reimplemented from QDecorationDefault.
Definition at line 87 of file qdecorationstyled_qws.cpp.
|
virtual |
Returns the region specified by decorationRegion for the top-level widget.
rect specifies the rectangle the decoration wraps. The value of decorationRegion is a combination of the bitmask values of enum DecorationRegion.
Reimplemented from QDecorationDefault.
Definition at line 224 of file qdecorationstyled_qws.cpp.
Referenced by paint().
|
virtual |
Returns the title bar height in pixels for the given widget.
It is the greater of 20, or the sum of the application font's line spacing value plus a border width fudge factor.
Reimplemented from QDecorationDefault.
Definition at line 64 of file qdecorationstyled_qws.cpp.
Referenced by paint(), and region().