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

Plasma

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

#include <Plasma/Widgets/ScrollBar>

Inheritance diagram for Plasma::ScrollBar:
QGraphicsProxyWidget

Public Slots

void setOrientation (Qt::Orientation orientation)
 
void setValue (int val)
 

Signals

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

Public Member Functions

 ScrollBar (QGraphicsWidget *parent=0)
 
 ~ScrollBar ()
 
int maximum () const
 
int minimum () const
 
QScrollBar * nativeWidget () const
 
Qt::Orientation orientation () const
 
int pageStep ()
 
void setMaximum (const int max) const
 
void setMinimum (const int min) const
 
void setPageStep (int val)
 
void setRange (int min, int max)
 
void setSingleStep (int val)
 
void setStyleSheet (const QString &stylesheet)
 
int singleStep ()
 
QString styleSheet ()
 
int value () const
 

Protected Member Functions

void contextMenuEvent (QGraphicsSceneContextMenuEvent *event)
 

Properties

int maximum
 
int minimum
 
QScrollBar * nativeWidget
 
Qt::Orientation orientation
 
int pageStep
 
int singleStep
 
QString styleSheet
 
int value
 

Detailed Description

Provides a plasma-themed QScrollBar.

Definition at line 39 of file scrollbar.h.

Constructor & Destructor Documentation

◆ ScrollBar()

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

Creates a scrollbar; the default orientation is vertical.

Definition at line 38 of file scrollbar.cpp.

◆ ~ScrollBar()

Plasma::ScrollBar::~ScrollBar ( )

Definition at line 55 of file scrollbar.cpp.

Member Function Documentation

◆ contextMenuEvent()

void Plasma::ScrollBar::contextMenuEvent ( QGraphicsSceneContextMenuEvent *  event)
protected

Definition at line 143 of file scrollbar.cpp.

◆ maximum()

int Plasma::ScrollBar::maximum ( ) const
Returns
the maximum value bound of this ScrollBar

Definition at line 101 of file scrollbar.cpp.

◆ minimum()

int Plasma::ScrollBar::minimum ( ) const
Returns
the minimum value bound of this ScrollBar

Definition at line 96 of file scrollbar.cpp.

◆ nativeWidget()

QScrollBar * Plasma::ScrollBar::nativeWidget ( ) const
Returns
the native widget wrapped by this ScrollBar

Definition at line 126 of file scrollbar.cpp.

◆ orientation()

Qt::Orientation Plasma::ScrollBar::orientation ( ) const
Returns
the orientation of the scrollbar
Since
4.4

Definition at line 131 of file scrollbar.cpp.

◆ pageStep()

int Plasma::ScrollBar::pageStep ( )
Returns
the amount of the page step

◆ setMaximum()

void Plasma::ScrollBar::setMaximum ( const int  max) const
Parameters
themaximum value bound of this ScrollBar
Since
4.6

Definition at line 111 of file scrollbar.cpp.

◆ setMinimum()

void Plasma::ScrollBar::setMinimum ( const int  min) const
Parameters
theminimum value bound of this ScrollBar
Since
4.6

Definition at line 106 of file scrollbar.cpp.

◆ setOrientation

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

Sets the orientation of the ScrollBar.

Definition at line 136 of file scrollbar.cpp.

◆ setPageStep()

void Plasma::ScrollBar::setPageStep ( int  val)

Sets the amount the slider will scroll when the user press page up or page down.

Parameters
val

Definition at line 76 of file scrollbar.cpp.

◆ setRange()

void Plasma::ScrollBar::setRange ( int  min,
int  max 
)

Sets the scrollbar minimum and maximum values.

Parameters
minminimum value
maxmaximum value

Definition at line 61 of file scrollbar.cpp.

◆ setSingleStep()

void Plasma::ScrollBar::setSingleStep ( int  val)

Sets the amount of the single step i.e how much the slider will move when the user press an arrow button.

Parameters
val

Definition at line 66 of file scrollbar.cpp.

◆ setStyleSheet()

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

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

Parameters
stylesheeta CSS string

Definition at line 116 of file scrollbar.cpp.

◆ setValue

void Plasma::ScrollBar::setValue ( int  val)
slot

Sets the current value for the ScrollBar.

Parameters
valuemust be minimum() <= value <= maximum()

Definition at line 86 of file scrollbar.cpp.

◆ singleStep()

int Plasma::ScrollBar::singleStep ( )
Returns
the amount of the single step

◆ sliderMoved

void Plasma::ScrollBar::sliderMoved ( int  value)
signal

Emitted when the slider has been moved by the user.

Since
4.6

◆ styleSheet()

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

◆ value()

int Plasma::ScrollBar::value ( ) const
Returns
the current scrollbar value

Definition at line 91 of file scrollbar.cpp.

◆ valueChanged

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

Emitted when the value of the slider changes.

Property Documentation

◆ maximum

int Plasma::ScrollBar::maximum
readwrite

Definition at line 1 of file scrollbar.h.

◆ minimum

int Plasma::ScrollBar::minimum
readwrite

Definition at line 1 of file scrollbar.h.

◆ nativeWidget

QScrollBar * Plasma::ScrollBar::nativeWidget
read

Definition at line 1 of file scrollbar.h.

◆ orientation

Qt::Orientation Plasma::ScrollBar::orientation
readwrite

Definition at line 1 of file scrollbar.h.

◆ pageStep

int Plasma::ScrollBar::pageStep
readwrite

Definition at line 1 of file scrollbar.h.

◆ singleStep

int Plasma::ScrollBar::singleStep
readwrite

Definition at line 1 of file scrollbar.h.

◆ styleSheet

QString Plasma::ScrollBar::styleSheet
readwrite

Definition at line 1 of file scrollbar.h.

◆ value

int Plasma::ScrollBar::value
readwrite

Definition at line 1 of file scrollbar.h.


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