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

PlasmaComponents

  • Plasma
  • QRangeModelPrivate
Public Member Functions | Public Attributes | List of all members
Plasma::QRangeModelPrivate Class Reference

#include <qrangemodel_p.h>

Public Member Functions

 QRangeModelPrivate (QRangeModel *qq)
 
virtual ~QRangeModelPrivate ()
 
qreal effectivePosAtMax () const
 
qreal effectivePosAtMin () const
 
void emitValueAndPositionIfChanged (const qreal oldValue, const qreal oldPosition)
 
qreal equivalentPosition (qreal value) const
 
qreal equivalentValue (qreal pos) const
 
void init ()
 
qreal publicPosition (qreal position) const
 
qreal publicValue (qreal value) const
 

Public Attributes

uint inverted: 1
 
qreal maximum
 
qreal minimum
 
qreal pos
 
qreal posatmax
 
qreal posatmin
 
QRangeModel * q_ptr
 
qreal stepSize
 
qreal value
 

Detailed Description

Definition at line 46 of file qrangemodel_p.h.

Constructor & Destructor Documentation

Plasma::QRangeModelPrivate::QRangeModelPrivate ( QRangeModel *  qq)

Definition at line 70 of file qrangemodel.cpp.

Plasma::QRangeModelPrivate::~QRangeModelPrivate ( )
virtual

Definition at line 75 of file qrangemodel.cpp.

Member Function Documentation

qreal Plasma::QRangeModelPrivate::effectivePosAtMax ( ) const
inline

Definition at line 66 of file qrangemodel_p.h.

qreal Plasma::QRangeModelPrivate::effectivePosAtMin ( ) const
inline

Definition at line 62 of file qrangemodel_p.h.

void Plasma::QRangeModelPrivate::emitValueAndPositionIfChanged ( const qreal  oldValue,
const qreal  oldPosition 
)

Checks if the value or position, that is seen by the user, has changed and emits the changed signal if it has changed.

Definition at line 167 of file qrangemodel.cpp.

qreal Plasma::QRangeModelPrivate::equivalentPosition ( qreal  value) const
inline

Definition at line 70 of file qrangemodel_p.h.

qreal Plasma::QRangeModelPrivate::equivalentValue ( qreal  pos) const
inline

Definition at line 80 of file qrangemodel_p.h.

void Plasma::QRangeModelPrivate::init ( )

Definition at line 79 of file qrangemodel.cpp.

qreal Plasma::QRangeModelPrivate::publicPosition ( qreal  position) const

Calculates the position that is going to be seen outside by the component that is using QRangeModel. It takes into account the stepSize, positionAtMinimum, positionAtMaximum properties and position that is passed as parameter.

Definition at line 98 of file qrangemodel.cpp.

qreal Plasma::QRangeModelPrivate::publicValue ( qreal  value) const

Calculates the value that is going to be seen outside by the component that is using QRangeModel. It takes into account the stepSize, minimumValue, maximumValue properties and value that is passed as parameter.

Definition at line 139 of file qrangemodel.cpp.

Member Data Documentation

uint Plasma::QRangeModelPrivate::inverted

Definition at line 58 of file qrangemodel_p.h.

qreal Plasma::QRangeModelPrivate::maximum

Definition at line 56 of file qrangemodel_p.h.

qreal Plasma::QRangeModelPrivate::minimum

Definition at line 56 of file qrangemodel_p.h.

qreal Plasma::QRangeModelPrivate::pos

Definition at line 56 of file qrangemodel_p.h.

qreal Plasma::QRangeModelPrivate::posatmax

Definition at line 55 of file qrangemodel_p.h.

qreal Plasma::QRangeModelPrivate::posatmin

Definition at line 55 of file qrangemodel_p.h.

QRangeModel* Plasma::QRangeModelPrivate::q_ptr

Definition at line 60 of file qrangemodel_p.h.

qreal Plasma::QRangeModelPrivate::stepSize

Definition at line 56 of file qrangemodel_p.h.

qreal Plasma::QRangeModelPrivate::value

Definition at line 56 of file qrangemodel_p.h.


The documentation for this class was generated from the following files:
  • qrangemodel_p.h
  • qrangemodel.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:08:40 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