QThemeImageItem Class Reference
[QtBaseModule]
The QThemeImageItem class provides a image item that you can add to a QThemedView to display an image. More...
#include <QThemeImageItem>
Inherits QThemeItem.
Inherited by QThemeLevelItem and QThemeStatusItem.
This class was introduced in Qtopia 4.4.
Public Functions
Protected Functions
- int alpha ( const QString & state = QString() )
- QColor color ( const QString & state = QString() )
- QPixmap image ( const QString & state = QString() )
- void setAlpha ( int alpha, const QString & state = QString() )
- void setColor ( const QString & col, const QString & state = QString() )
- void setImage ( const QString & path, const QString & state = QString() )
Static Protected Members
- void colorizeImage ( QImage & img, const QColor & col, int alpha, bool blendColor )
- 2 static protected members inherited from QThemeItem
Additional Inherited Members
Detailed Description
The QThemeImageItem class provides a image item that you can add to a QThemedView to display an image.
See also QThemeItem and QThemedView.
Member Function Documentation
QThemeImageItem::QThemeImageItem ( QThemeItem * parent = 0 )
Constructs a QThemeImageItem. The parent is passed to the base class constructor.
QThemeImageItem::~QThemeImageItem ()
Destroys the QThemeImageItem.
int QThemeImageItem::alpha ( const QString & state = QString() ) [protected]
Returns the alpha value for the state state.
See also setAlpha().
QColor QThemeImageItem::color ( const QString & state = QString() ) [protected]
Returns the color for the state state.
See also setColor().
void QThemeImageItem::colorizeImage ( QImage & img, const QColor & col, int alpha, bool blendColor ) [static protected]
Blend the color col and the alpha value alpha with the image img if blendColor is true (the default). If blendColor is false, only the alpha value alpha is blended. This function modifies img directly.
QPixmap QThemeImageItem::image ( const QString & state = QString() ) [protected]
Returns the image for the state state.
See also setImage().
void QThemeImageItem::setAlpha ( int alpha, const QString & state = QString() ) [protected]
Returns the alpha value for the state state.
See also alpha().
void QThemeImageItem::setColor ( const QString & col, const QString & state = QString() ) [protected]
Sets the color col for the state state.
See also color().
void QThemeImageItem::setImage ( const QPixmap & pixmap, const QString & state = QString() )
Sets the image pixmap for the state state.
See also image().
void QThemeImageItem::setImage ( const QString & path, const QString & state = QString() ) [protected]
This is an overloaded member function, provided for convenience.
Sets the image path for the state state.
Copyright © 2009 Trolltech |
Trademarks |
Qt Extended 4.4.3 |