• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libplasma

Plasma::Dialog

Plasma::Dialog Class Reference

#include <dialog.h>

Inheritance diagram for Plasma::Dialog:

Inheritance graph
[legend]

List of all members.


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]

Reimplemented from QWidget.

Reimplemented from QWidget.

Definition at line 90 of file dialog.cpp.

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]

Reimplemented from QWidget.

Definition at line 100 of file dialog.cpp.


The documentation for this class was generated from the following files:
  • dialog.h
  • dialog.cpp

libplasma

Skip menu "libplasma"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libplasma
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal