libplasma
Plasma::Dialog Class Reference
#include <dialog.h>
Inheritance diagram for Plasma::Dialog:

Detailed Description
A dialog that uses the Plasma style.Dialog provides a dialog-like widget that can be used to display additional information.
Dialog uses the plasma theme, and usually has no window decoration. It's meant as an interim solution to display widgets as extension to plasma applets, for example when you click on an applet like the devicenotifier or the clock, the widget that is then displayed, is a Dialog.
Definition at line 47 of file dialog.h.
Public Member Functions | |
Dialog (QWidget *parent=0, Qt::WindowFlags f=Qt::Window) | |
void | position (QGraphicsView *view, const QRectF boundingRect, QPointF scenePos) |
void | position (QGraphicsSceneEvent *event, const QRectF boundingRect, QPointF scenePos) |
virtual | ~Dialog () |
Protected Member Functions | |
void | paintEvent (QPaintEvent *e) |
void | resizeEvent (QResizeEvent *e) |
Constructor & Destructor Documentation
Plasma::Dialog::Dialog | ( | QWidget * | parent = 0 , |
|
Qt::WindowFlags | f = Qt::Window | |||
) | [explicit] |
- parent the parent widget, for plasmoids, this is usually 0.
- f the Qt::WindowFlags, default is to not show a windowborder.
Definition at line 69 of file dialog.cpp.
Plasma::Dialog::~Dialog | ( | ) | [virtual] |
Definition at line 85 of file dialog.cpp.
Member Function Documentation
void Plasma::Dialog::paintEvent | ( | QPaintEvent * | e | ) | [protected] |
void Plasma::Dialog::position | ( | QGraphicsView * | view, | |
const QRectF | boundingRect, | |||
QPointF | scenePos | |||
) |
- view The QGV where is displayed the applet
- scenePos the absolute position on the scene.
- boundingRect the boundingRect() from the applet.
Definition at line 115 of file dialog.cpp.
void Plasma::Dialog::position | ( | QGraphicsSceneEvent * | event, | |
const QRectF | boundingRect, | |||
QPointF | scenePos | |||
) |
- event the event that is used to position the dialog.
Usually, you want to pass this on from the mouseevent.
- boundingRect the boundingRect() from the applet.
- scenePos the absolute position on the scene.
Definition at line 107 of file dialog.cpp.
void Plasma::Dialog::resizeEvent | ( | QResizeEvent * | e | ) | [protected] |
The documentation for this class was generated from the following files: