Home · All Namespaces · All Classes · Main Classes · Grouped Classes · Modules · Functions |
The QDecorationDefault class is a base class providing default window decorations. More...
#include <QDecorationDefault>
Inherits QDecoration.
This class was introduced in Qt 4.4.
The QDecorationDefault class is a base class providing default window decorations.
See the documentation for class QDecoration for a detailed description. This subclass of QDecoration provides standard icons for the decoration regions.
Note that this class is non-portable and only available in Qt for Embedded Linux.
Default constructor.
The constructor deletes the static pixmaps.
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 QDecoration.
Paints a region of the top-level widget. The region is painted in the specified decoration state using the painter and palette provided. The region to be painted is specified by buttonRegion, which is a combination of the bitmask values of DecorationRegion. If the value of buttonRegion is one of Help, Menu, Close, Minimize, Maximize, and Normalize, the button pixmap for that region is painted.
See also pixmapFor().
Returns a pointer to the QPixmap for the widget specified by widget and decorationRegion. The returned QPixmap is constructed from the default X pixmap obtained from xpmForRegion().
xoff and yoff specify the offset for the pixmap.
The value of decorationRegion must be one of a subset of the values of enum DecorationRegion. The supported values are Help, Menu, Close, Minimize, Maximize, and Normalize. Other values of decorationRegion return 0.
See also QDecoration::DecorationRegion.
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 QDecoration.
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.
Returns a pointer to the X pixmap for the icon specified by region. An X pixmap is an ASCII-text-based image. The value of region must be one of a subset of the values of enum DecorationRegion. The supported values are Help, Menu, Close, Minimize, Maximize, and Normalize. Other values of region cause zero to be returned.
See also QDecoration::DecorationRegion.
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt 4.5.1 |