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

Plasma

Plasma::ScrollBar

Plasma::ScrollBar Class Reference

Provides a plasma-themed QScrollBar. More...

#include <Plasma/Widgets/ScrollBar>

Inheritance diagram for Plasma::ScrollBar:

Inheritance graph
[legend]

List of all members.


Public Slots

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

Signals

void valueChanged (int value)

Public Member Functions

int maximum () const
int minimum () const
QScrollBar * nativeWidget () const
int pageStep ()
 ScrollBar (QGraphicsWidget *parent)
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
 ~ScrollBar ()

Properties

int maximum
int minimum
QScrollBar nativeWidget
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

Plasma::ScrollBar::ScrollBar ( QGraphicsWidget *  parent  )  [explicit]

Creates a scrollbar; the default orientation is vertical.

Definition at line 34 of file scrollbar.cpp.

Plasma::ScrollBar::~ScrollBar (  ) 

Definition at line 48 of file scrollbar.cpp.


Member Function Documentation

int Plasma::ScrollBar::maximum (  )  const

Returns:
the maximum value bound of this ScrollBar

int Plasma::ScrollBar::minimum (  )  const

Returns:
the minimum value bound of this ScrollBar

QScrollBar* Plasma::ScrollBar::nativeWidget (  )  const

Returns:
the native widget wrapped by this ScrollBar

int Plasma::ScrollBar::pageStep (  ) 

Returns:
the amount of the page step

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

Sets the orientation of the ScrollBar.

Definition at line 114 of file scrollbar.cpp.

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

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

  • val

Definition at line 69 of file scrollbar.cpp.

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

Sets the scrollbar minimum and maximum values.

  • min minimum value
  • max maximum value

Definition at line 54 of file scrollbar.cpp.

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.

  • val

Definition at line 59 of file scrollbar.cpp.

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

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

  • stylesheet a CSS string

Definition at line 99 of file scrollbar.cpp.

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

Sets the current value for the ScrollBar.

  • value must be minimum() <= value <= maximum()

Definition at line 79 of file scrollbar.cpp.

int Plasma::ScrollBar::singleStep (  ) 

Returns:
the amount of the single step

QString Plasma::ScrollBar::styleSheet (  ) 

Returns:
the stylesheet currently used with this widget

Definition at line 104 of file scrollbar.cpp.

int Plasma::ScrollBar::value (  )  const

Returns:
the current scrollbar value

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

Emitted when the value of the slider changes.


Property Documentation

int Plasma::ScrollBar::maximum [read]

Definition at line 47 of file scrollbar.h.

int Plasma::ScrollBar::minimum [read]

Definition at line 46 of file scrollbar.h.

QScrollBar * Plasma::ScrollBar::nativeWidget [read]

Definition at line 49 of file scrollbar.h.

int Plasma::ScrollBar::pageStep [read, write]

Definition at line 44 of file scrollbar.h.

int Plasma::ScrollBar::singleStep [read, write]

Definition at line 43 of file scrollbar.h.

QString Plasma::ScrollBar::stylesheet [read, write]

Definition at line 48 of file scrollbar.h.

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

Definition at line 45 of file scrollbar.h.


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