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

Plasma

Plasma::SpinBox

Plasma::SpinBox Class Reference

Provides a plasma-themed KIntSpinBox. More...

#include <Plasma/Widgets/SpinBox>

Inheritance diagram for Plasma::SpinBox:

Inheritance graph
[legend]

List of all members.


Public Slots

void setMaximum (int maximum)
void setMinimum (int minimum)
void setRange (int minimum, int maximum)
void setValue (int value)

Signals

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

Public Member Functions

int maximum () const
int minimum () const
KIntSpinBox * nativeWidget () const
void setStyleSheet (const QString &stylesheet)
 SpinBox (QGraphicsWidget *parent=0)
QString styleSheet ()
int value () const
 ~SpinBox ()

Properties

int maximum
int minimum
KIntSpinBox nativeWidget
QGraphicsWidget parentWidget
QString styleSheet
int value

Detailed Description

Provides a plasma-themed KIntSpinBox.

Definition at line 40 of file spinbox.h.


Constructor & Destructor Documentation

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

Definition at line 66 of file spinbox.cpp.

Plasma::SpinBox::~SpinBox (  ) 

Definition at line 85 of file spinbox.cpp.


Member Function Documentation

void Plasma::SpinBox::editingFinished (  )  [signal]

This signal is emitted when editing is finished.

This happens when the spinbox loses focus and when enter is pressed.

int Plasma::SpinBox::maximum (  )  const

Returns:
the maximum value

int Plasma::SpinBox::minimum (  )  const

Returns:
the minimum value

KIntSpinBox* Plasma::SpinBox::nativeWidget (  )  const

Returns:
the native widget wrapped by this SpinBox

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

Sets the maximum value the slider can take.

Definition at line 91 of file spinbox.cpp.

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

Sets the minimum value the slider can take.

Definition at line 101 of file spinbox.cpp.

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

Sets the minimum and maximum values the slider can take.

Definition at line 111 of file spinbox.cpp.

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

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

  • stylesheet a CSS string

Definition at line 126 of file spinbox.cpp.

void Plasma::SpinBox::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 116 of file spinbox.cpp.

void Plasma::SpinBox::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 KIntSpinBox would be emitted. See the Qt documentation for more information.

QString Plasma::SpinBox::styleSheet (  ) 

Returns:
the stylesheet currently used with this widget

int Plasma::SpinBox::value (  )  const

Returns:
the current value

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

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


Property Documentation

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

Definition at line 45 of file spinbox.h.

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

Definition at line 46 of file spinbox.h.

KIntSpinBox * Plasma::SpinBox::nativeWidget [read]

Definition at line 49 of file spinbox.h.

QGraphicsWidget Plasma::SpinBox::parentWidget [read]

Definition at line 44 of file spinbox.h.

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

Definition at line 48 of file spinbox.h.

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

Definition at line 47 of file spinbox.h.


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