• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kde-runtime API Reference
  • KDE Home
  • Contact Us
 

PlasmaCore

  • Plasma
  • SvgItem
Signals | Public Member Functions | Protected Slots | Properties | List of all members
Plasma::SvgItem Class Reference

#include <svgitem.h>

Inheritance diagram for Plasma::SvgItem:
Inheritance graph
[legend]

Signals

void elementIdChanged ()
 
void implicitHeightChanged ()
 
void implicitWidthChanged ()
 
void naturalSizeChanged ()
 
void smoothChanged ()
 
void svgChanged ()
 

Public Member Functions

 SvgItem (QDeclarativeItem *parent=0)
 
 ~SvgItem ()
 
QString elementId () const
 
qreal implicitHeight () const
 
qreal implicitWidth () const
 
QSizeF naturalSize () const
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
 
void setElementId (const QString &elementID)
 
void setImplicitHeight (qreal height)
 
void setImplicitWidth (qreal width)
 
void setSmooth (const bool smooth)
 
void setSvg (Plasma::Svg *svg)
 
bool smooth () const
 
Plasma::Svg * svg () const
 

Protected Slots

void updateNeeded ()
 

Properties

QString elementId
 
qreal implicitHeight
 
qreal implicitWidth
 
QSizeF naturalSize
 
bool smooth
 
Plasma::Svg svg
 

Detailed Description

Definition at line 29 of file svgitem.h.

Constructor & Destructor Documentation

Plasma::SvgItem::SvgItem ( QDeclarativeItem *  parent = 0)

Definition at line 30 of file svgitem.cpp.

Plasma::SvgItem::~SvgItem ( )

Definition at line 38 of file svgitem.cpp.

Member Function Documentation

QString Plasma::SvgItem::elementId ( ) const
void Plasma::SvgItem::elementIdChanged ( )
signal
qreal Plasma::SvgItem::implicitHeight ( ) const
void Plasma::SvgItem::implicitHeightChanged ( )
signal
qreal Plasma::SvgItem::implicitWidth ( ) const
void Plasma::SvgItem::implicitWidthChanged ( )
signal
QSizeF Plasma::SvgItem::naturalSize ( ) const
void Plasma::SvgItem::naturalSizeChanged ( )
signal
void Plasma::SvgItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)

Definition at line 121 of file svgitem.cpp.

void Plasma::SvgItem::setElementId ( const QString &  elementID)

Definition at line 42 of file svgitem.cpp.

void Plasma::SvgItem::setImplicitHeight ( qreal  height)

Definition at line 169 of file svgitem.cpp.

void Plasma::SvgItem::setImplicitWidth ( qreal  width)

Definition at line 153 of file svgitem.cpp.

void Plasma::SvgItem::setSmooth ( const bool  smooth)

Definition at line 106 of file svgitem.cpp.

void Plasma::SvgItem::setSvg ( Plasma::Svg *  svg)

Definition at line 78 of file svgitem.cpp.

bool Plasma::SvgItem::smooth ( ) const
void Plasma::SvgItem::smoothChanged ( )
signal
Plasma::Svg* Plasma::SvgItem::svg ( ) const
void Plasma::SvgItem::svgChanged ( )
signal
void Plasma::SvgItem::updateNeeded ( )
protectedslot

Definition at line 142 of file svgitem.cpp.

Property Documentation

QString Plasma::SvgItem::elementId
readwrite

The sub element of the svg we want to render.

If empty the whole svg document will be painted.

Definition at line 36 of file svgitem.h.

qreal Plasma::SvgItem::implicitHeight
readwrite

suggested default size hint for height (default to naturalSize.height)

Definition at line 68 of file svgitem.h.

qreal Plasma::SvgItem::implicitWidth
readwrite

suggested default size hint for width (default to naturalSize.width)

Definition at line 63 of file svgitem.h.

QSizeF Plasma::SvgItem::naturalSize
read

The natural, unscaled size of the svg document or the element.

useful if a pixel perfect rendering of outlines is needed.

Definition at line 53 of file svgitem.h.

bool Plasma::SvgItem::smooth
readwrite

If true enable antialiasing in paint: default off, better quality but less performance.

Definition at line 58 of file svgitem.h.

Plasma::Svg * Plasma::SvgItem::svg
readwrite

Svg class that is the source of the image, use it like that: SvgItem { svg: Svg {imagePath: "widgets/arrows"} elementId: "arrow-left" } Instead of a Svg declaration it can also be the id of a Svg declared elsewhere, useful to share Svg instances.

Definition at line 48 of file svgitem.h.


The documentation for this class was generated from the following files:
  • svgitem.h
  • svgitem.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:02:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

PlasmaCore

Skip menu "PlasmaCore"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kde-runtime API Reference

Skip menu "kde-runtime API Reference"
  • KCMShell
  • KNotify
  • Plasma Runtime
  •     PlasmaCore
  •     DragAndDrop
  •     PlasmaComponents
  •     PlasmaExtraComponents
  •     QtExtraComponents

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal