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

Plasma

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

#include <Plasma/Widgets/Slider>

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

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

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

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 54 of file slider.cpp.

Plasma::Slider::~Slider ( )

Definition at line 76 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 82 of file slider.cpp.

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

Sets the maximum value the slider can take.

Definition at line 192 of file slider.cpp.

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

Sets the minimum value the slider can take.

Definition at line 202 of file slider.cpp.

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

Sets the orientation of the slider.

Definition at line 227 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 212 of file slider.cpp.

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

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

Parameters
stylesheeta CSS string

Definition at line 237 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 217 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 185 of file slider.cpp.

Property Documentation

int Plasma::Slider::maximum
readwrite

Definition at line 44 of file slider.h.

int Plasma::Slider::minimum
readwrite

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
readwrite

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
readwrite

Definition at line 48 of file slider.h.

int Plasma::Slider::value
readwrite

Definition at line 46 of file slider.h.


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

KDE's Doxygen guidelines are available online.

Plasma

Skip menu "Plasma"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

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