• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 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:
QGraphicsProxyWidget

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

◆ Slider()

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

Definition at line 54 of file slider.cpp.

◆ ~Slider()

Plasma::Slider::~Slider ( )

Definition at line 76 of file slider.cpp.

Member Function Documentation

◆ maximum()

int Plasma::Slider::maximum ( ) const
Returns
the maximum value

Definition at line 197 of file slider.cpp.

◆ minimum()

int Plasma::Slider::minimum ( ) const
Returns
the minimum value

Definition at line 207 of file slider.cpp.

◆ nativeWidget()

QSlider * Plasma::Slider::nativeWidget ( ) const
Returns
the native widget wrapped by this Slider

Definition at line 247 of file slider.cpp.

◆ orientation()

Qt::Orientation Plasma::Slider::orientation ( ) const
Returns
the orientation of the slider

Definition at line 232 of file slider.cpp.

◆ paint()

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

Definition at line 82 of file slider.cpp.

◆ setMaximum

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

Sets the maximum value the slider can take.

Definition at line 192 of file slider.cpp.

◆ setMinimum

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

Sets the minimum value the slider can take.

Definition at line 202 of file slider.cpp.

◆ setOrientation

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

Sets the orientation of the slider.

Definition at line 227 of file slider.cpp.

◆ setRange

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.

◆ setStyleSheet()

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.

◆ setValue

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.

◆ sliderMoved

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.

◆ styleSheet()

QString Plasma::Slider::styleSheet ( )
Returns
the stylesheet currently used with this widget

◆ value()

int Plasma::Slider::value ( ) const
Returns
the current value

Definition at line 222 of file slider.cpp.

◆ valueChanged

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

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

◆ wheelEvent()

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

Definition at line 185 of file slider.cpp.

Property Documentation

◆ maximum

int Plasma::Slider::maximum
readwrite

Definition at line 1 of file slider.h.

◆ minimum

int Plasma::Slider::minimum
readwrite

Definition at line 1 of file slider.h.

◆ nativeWidget

QSlider * Plasma::Slider::nativeWidget
read

Definition at line 1 of file slider.h.

◆ orientation

Qt::Orientation Plasma::Slider::orientation
readwrite

Definition at line 1 of file slider.h.

◆ parentWidget

QGraphicsWidget * Plasma::Slider::parentWidget
read

Definition at line 1 of file slider.h.

◆ styleSheet

QString Plasma::Slider::styleSheet
readwrite

Definition at line 1 of file slider.h.

◆ value

int Plasma::Slider::value
readwrite

Definition at line 1 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-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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