Plasma::Frame Class Reference
A widget that provides a simple frame.
More...
#include <Plasma/Widgets/Frame>
List of all members.
Detailed Description
A widget that provides a simple frame.
A simple frame to group widgets, it can have a plain, sunken or raise aspect the default aspect is plain
Definition at line 42 of file frame.h.
Member Enumeration Documentation
- Enumerator:
-
Definition at line 52 of file frame.h.
Constructor & Destructor Documentation
Constructs a new Frame.
- parent the parent of this widget
Definition at line 83 of file frame.cpp.
Plasma::Frame::~Frame |
( |
|
) |
|
Member Function Documentation
Shadow Plasma::Frame::frameShadow |
( |
|
) |
const |
- Returns:
- the Frame's shadow style
QString Plasma::Frame::image |
( |
|
) |
const |
- Returns:
- the image path being displayed currently, or an empty string if none.
QWidget * Plasma::Frame::nativeWidget |
( |
|
) |
const |
- Returns:
- the native widget wrapped by this Frame
Definition at line 193 of file frame.cpp.
void Plasma::Frame::resizeEvent |
( |
QGraphicsSceneResizeEvent * |
event |
) |
[protected] |
void Plasma::Frame::setFrameShadow |
( |
Shadow |
shadow |
) |
|
Sets the Frame's shadow style.
- shadow plain, raised or sunken
Definition at line 100 of file frame.cpp.
void Plasma::Frame::setImage |
( |
const QString & |
path |
) |
|
Sets the path to an image to display.
- path the path to the image; if a relative path, then a themed image will be loaded.
Definition at line 136 of file frame.cpp.
void Plasma::Frame::setStyleSheet |
( |
const QString & |
stylesheet |
) |
|
Sets the stylesheet used to control the visual display of this Frame.
Definition at line 182 of file frame.cpp.
void Plasma::Frame::setText |
( |
QString |
text |
) |
|
QSizeF Plasma::Frame::sizeHint |
( |
Qt::SizeHint |
which, |
|
|
const QSizeF & |
constraint | |
|
) |
| | const [protected] |
QString Plasma::Frame::styleSheet |
( |
|
) |
const |
- Returns:
- the stylesheet currently used with this widget
QString Plasma::Frame::text |
( |
|
) |
const |
- Returns:
- text displayed from this Frame
Property Documentation
QString Plasma::Frame::image [read, write] |
QString Plasma::Frame::styleSheet [read, write] |
QString Plasma::Frame::text [read, write] |
The documentation for this class was generated from the following files: