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

PlasmaComponents

Signals | Public Member Functions | Properties | List of all members
Units Class Reference

#include <units.h>

Inheritance diagram for Units:
Inheritance graph
[legend]

Signals

void gridUnitChanged ()
 

Public Member Functions

 Units (QObject *parent=0)
 
 ~Units ()
 
Q_INVOKABLE qreal dp (qreal value) const
 
qreal gridUnit () const
 
Q_INVOKABLE qreal gu (qreal value) const
 

Properties

qreal gridUnit
 

Detailed Description

Definition at line 27 of file units.h.

Constructor & Destructor Documentation

Units::Units ( QObject *  parent = 0)

Definition at line 30 of file units.cpp.

Units::~Units ( )

Definition at line 39 of file units.cpp.

Member Function Documentation

qreal Units::dp ( qreal  value) const
Returns
the number of pixels value density independent pixels correspond to.

Definition at line 48 of file units.cpp.

qreal Units::gridUnit ( ) const
void Units::gridUnitChanged ( )
signal
qreal Units::gu ( qreal  value) const
Returns
the number of pixels value grid units correspond to.

Definition at line 61 of file units.cpp.

Property Documentation

qreal Units::gridUnit
read

The fundamental unit of space that should be used for sizes, expressed in pixels.

Given the screen has an accurate DPI settings, it corresponds to a millimeter

Definition at line 35 of file units.h.


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

KDE's Doxygen guidelines are available online.

PlasmaComponents

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

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