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

Plasma

Plasma::Slider

Plasma::Slider Class Reference

Provides a plasma-themed QSlider. More...

#include <Plasma/Widgets/Slider>

Inheritance diagram for Plasma::Slider:

Inheritance graph
[legend]

List of all members.


Public Slots

void setMaximum (int maximum)
void setMinimum (int minimum)
void setOrientation (Qt::Orientation orientation)
void setRange (int minimum, int maximum)
void setValue (int value)

Signals

void sliderMoved (int value)
void valueChanged (int value)

Public Member Functions

int maximum () const
int minimum () const
QSlider * nativeWidget () const
Qt::Orientation orientation () const
void setStyleSheet (const QString &stylesheet)
 Slider (QGraphicsWidget *parent=0)
QString styleSheet ()
int value () const
 ~Slider ()

Protected Member Functions

void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
void wheelEvent (QGraphicsSceneWheelEvent *event)

Properties

int maximum
int minimum
QSlider nativeWidget
Qt::Orientation orientation
QGraphicsWidget parentWidget
QString styleSheet
int value

Detailed Description

Provides a plasma-themed QSlider.

Definition at line 39 of file slider.h.


Constructor & Destructor Documentation

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

Definition at line 50 of file slider.cpp.

Plasma::Slider::~Slider (  ) 

Definition at line 71 of file slider.cpp.


Member Function Documentation

int Plasma::Slider::maximum (  )  const

Returns:
the maximum value

int Plasma::Slider::minimum (  )  const

Returns:
the minimum value

QSlider* Plasma::Slider::nativeWidget (  )  const

Returns:
the native widget wrapped by this Slider

Qt::Orientation Plasma::Slider::orientation (  )  const

Returns:
the orientation of the slider

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

Definition at line 76 of file slider.cpp.

void Plasma::Slider::setMaximum ( int  maximum  )  [slot]

Sets the maximum value the slider can take.

Definition at line 136 of file slider.cpp.

void Plasma::Slider::setMinimum ( int  minimum  )  [slot]

Sets the minimum value the slider can take.

Definition at line 146 of file slider.cpp.

void Plasma::Slider::setOrientation ( Qt::Orientation  orientation  )  [slot]

Sets the orientation of the slider.

Definition at line 171 of file slider.cpp.

void Plasma::Slider::setRange ( int  minimum,
int  maximum 
) [slot]

Sets the minimum and maximum values the slider can take.

Definition at line 156 of file slider.cpp.

void Plasma::Slider::setStyleSheet ( const QString &  stylesheet  ) 

Sets the stylesheet used to control the visual display of this Slider.

  • stylesheet a CSS string

Definition at line 181 of file slider.cpp.

void Plasma::Slider::setValue ( int  value  )  [slot]

Sets the value of the slider.

If it is outside the range specified by minimum() and maximum(), it will be adjusted to fit.

Definition at line 161 of file slider.cpp.

void Plasma::Slider::sliderMoved ( int  value  )  [signal]

This signal is emitted when the user drags the slider.

In fact, it is emitted whenever the sliderMoved(int) signal of QSlider would be emitted. See the Qt documentation for more information.

QString Plasma::Slider::styleSheet (  ) 

Returns:
the stylesheet currently used with this widget

int Plasma::Slider::value (  )  const

Returns:
the current value

void Plasma::Slider::valueChanged ( int  value  )  [signal]

This signal is emitted when the slider value has changed, with the new slider value as argument.

void Plasma::Slider::wheelEvent ( QGraphicsSceneWheelEvent *  event  )  [protected]

Definition at line 129 of file slider.cpp.


Property Documentation

int Plasma::Slider::maximum [read, write]

Definition at line 44 of file slider.h.

int Plasma::Slider::minimum [read, write]

Definition at line 45 of file slider.h.

QSlider * Plasma::Slider::nativeWidget [read]

Definition at line 49 of file slider.h.

Qt::Orientation Plasma::Slider::orientation [read, write]

Definition at line 47 of file slider.h.

QGraphicsWidget Plasma::Slider::parentWidget [read]

Definition at line 43 of file slider.h.

QString Plasma::Slider::styleSheet [read, write]

Definition at line 48 of file slider.h.

int Plasma::Slider::value [read, write]

Definition at line 46 of file slider.h.


The documentation for this class was generated from the following files:
  • slider.h
  • slider.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