A few apidocs updates

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=667159
This commit is contained in:
Matt Williams 2007-05-22 01:30:03 +00:00
parent 29bc7ed49e
commit ad5351fa3f
2 changed files with 17 additions and 8 deletions

7
svg.h
View File

@ -72,9 +72,6 @@ class PLASMA_EXPORT Svg : public QObject
* @arg painter the QPainter to use
* @arg x the horizontal coordinate to start painting from
* @arg y the vertical coordinate to start painting from
* @arg matrix the QMatrix to transform the drawing by; useful if, for instance
* you are drawing into a painter with a transformation, but you want the
* SVG to be painted in relation to, rather than using, that
*/
void paint(QPainter* painter, int x, int y,
const QString& elementID = QString());
@ -85,9 +82,6 @@ class PLASMA_EXPORT Svg : public QObject
* @arg rect the rect to draw into; if small than the current size
* of the
* drawn starting at this point.
* @arg matrix the QMatrix to transform the drawing by; useful if, for instance
* you are drawing into a painter with a transformation, but you want the
* SVG to be painted in relation to, rather than using, that
*/
void paint(QPainter* painter, const QRectF& rect,
const QString& elementID = QString());
@ -122,7 +116,6 @@ class PLASMA_EXPORT Svg : public QObject
/**
* Currently set size of the SVG
* @arg elementId the id of the element to check
* @return the current size of a given element
**/
QSize size() const;

18
theme.h
View File

@ -25,7 +25,15 @@
namespace Plasma
{
/**
* @short Interface to the Plasma theme
*
* Accessed via Plasma::Theme::self() e.g:
* \code
* QString image = Plasma::Theme::self()->image("widgets/clock")
* \endcode
*
*/
class PLASMA_EXPORT Theme : public QObject
{
Q_OBJECT
@ -39,7 +47,15 @@ class PLASMA_EXPORT Theme : public QObject
explicit Theme( QObject* parent = 0 );
~Theme();
/**
* @return the name of the theme directory. "default" is none set.
*/
QString themeName() const;
/**
* @arg name the name of the file in the theme directory (without the
* ".svg" part)
* @return the full path to the requested file for the current theme
*/
QString image( const QString& name ) const;
Q_SIGNALS: