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

Plasma

Plasma::Frame

Plasma::Frame Class Reference

A widget that provides a simple frame. More...

#include <Plasma/Widgets/Frame>

Inheritance diagram for Plasma::Frame:

Inheritance graph
[legend]

List of all members.


Public Types

enum  Shadow { Plain = 1, Raised, Sunken }

Public Member Functions

 Frame (QGraphicsWidget *parent=0)
Shadow frameShadow () const
QString image () const
QWidget * nativeWidget () const
void setFrameShadow (Shadow shadow)
void setImage (const QString &path)
void setStyleSheet (const QString &stylesheet)
void setText (QString text)
QString styleSheet () const
QString text () const
 ~Frame ()

Protected Member Functions

void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
void resizeEvent (QGraphicsSceneResizeEvent *event)
QSizeF sizeHint (Qt::SizeHint which, const QSizeF &constraint) const

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

enum Plasma::Frame::Shadow

Enumerator:
Plain 
Raised 
Sunken 

Definition at line 47 of file frame.h.


Constructor & Destructor Documentation

Plasma::Frame::Frame ( QGraphicsWidget *  parent = 0  )  [explicit]

Constructs a new Frame.

  • parent the parent of this widget

Definition at line 83 of file frame.cpp.

Plasma::Frame::~Frame (  ) 

Definition at line 95 of file frame.cpp.


Member Function Documentation

Frame::Shadow Plasma::Frame::frameShadow (  )  const

Returns:
the Frame's shadow style

Definition at line 120 of file frame.cpp.

QString Plasma::Frame::image (  )  const

Returns:
the image path being displayed currently, or an empty string if none.

Definition at line 177 of file frame.cpp.

QWidget * Plasma::Frame::nativeWidget (  )  const

Returns:
the native widget wrapped by this Frame

Definition at line 193 of file frame.cpp.

void Plasma::Frame::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = 0 
) [protected]

Definition at line 198 of file frame.cpp.

void Plasma::Frame::resizeEvent ( QGraphicsSceneResizeEvent *  event  )  [protected]

Reimplemented from QGraphicsWidget.

Definition at line 224 of file frame.cpp.

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.

  • stylesheet a CSS string

Definition at line 182 of file frame.cpp.

void Plasma::Frame::setText ( QString  text  ) 

Set the text to display by this Frame.

  • text the text

Definition at line 125 of file frame.cpp.

QSizeF Plasma::Frame::sizeHint ( Qt::SizeHint  which,
const QSizeF &  constraint 
) const [protected]

Definition at line 233 of file frame.cpp.

QString Plasma::Frame::styleSheet (  )  const

Returns:
the stylesheet currently used with this widget

Definition at line 188 of file frame.cpp.

QString Plasma::Frame::text (  )  const

Returns:
text displayed from this Frame

Definition at line 131 of file frame.cpp.


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

Plasma

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
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