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

Plasma

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

#include <Plasma/Widgets/SpinBox>

Inheritance diagram for Plasma::SpinBox:
QGraphicsProxyWidget

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

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

Protected Member Functions

void changeEvent (QEvent *event)
 
void focusOutEvent (QFocusEvent *event)
 
void hoverEnterEvent (QGraphicsSceneHoverEvent *event)
 
void hoverLeaveEvent (QGraphicsSceneHoverEvent *event)
 
void mousePressEvent (QGraphicsSceneMouseEvent *event)
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
 
void resizeEvent (QGraphicsSceneResizeEvent *event)
 

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

◆ SpinBox()

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

Definition at line 59 of file spinbox.cpp.

◆ ~SpinBox()

Plasma::SpinBox::~SpinBox ( )

Definition at line 93 of file spinbox.cpp.

Member Function Documentation

◆ changeEvent()

void Plasma::SpinBox::changeEvent ( QEvent *  event)
protected

Definition at line 149 of file spinbox.cpp.

◆ editingFinished

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.

◆ focusOutEvent()

void Plasma::SpinBox::focusOutEvent ( QFocusEvent *  event)
protected

Definition at line 203 of file spinbox.cpp.

◆ hoverEnterEvent()

void Plasma::SpinBox::hoverEnterEvent ( QGraphicsSceneHoverEvent *  event)
protected

Definition at line 155 of file spinbox.cpp.

◆ hoverLeaveEvent()

void Plasma::SpinBox::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  event)
protected

Definition at line 161 of file spinbox.cpp.

◆ maximum()

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

Definition at line 104 of file spinbox.cpp.

◆ minimum()

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

Definition at line 114 of file spinbox.cpp.

◆ mousePressEvent()

void Plasma::SpinBox::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
protected

Definition at line 187 of file spinbox.cpp.

◆ nativeWidget()

KIntSpinBox * Plasma::SpinBox::nativeWidget ( ) const
Returns
the native widget wrapped by this SpinBox

Definition at line 144 of file spinbox.cpp.

◆ paint()

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

Definition at line 179 of file spinbox.cpp.

◆ resizeEvent()

void Plasma::SpinBox::resizeEvent ( QGraphicsSceneResizeEvent *  event)
protected

Definition at line 167 of file spinbox.cpp.

◆ setMaximum

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

Sets the maximum value the slider can take.

Definition at line 99 of file spinbox.cpp.

◆ setMinimum

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

Sets the minimum value the slider can take.

Definition at line 109 of file spinbox.cpp.

◆ setRange

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

Sets the minimum and maximum values the slider can take.

Definition at line 119 of file spinbox.cpp.

◆ setStyleSheet()

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

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

Parameters
stylesheeta CSS string

Definition at line 134 of file spinbox.cpp.

◆ setValue

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 124 of file spinbox.cpp.

◆ sliderMoved

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.

◆ styleSheet()

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

◆ value()

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

Definition at line 129 of file spinbox.cpp.

◆ valueChanged

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

◆ maximum

int Plasma::SpinBox::maximum
readwrite

Definition at line 1 of file spinbox.h.

◆ minimum

int Plasma::SpinBox::minimum
readwrite

Definition at line 1 of file spinbox.h.

◆ nativeWidget

KIntSpinBox * Plasma::SpinBox::nativeWidget
read

Definition at line 1 of file spinbox.h.

◆ parentWidget

QGraphicsWidget * Plasma::SpinBox::parentWidget
read

Definition at line 1 of file spinbox.h.

◆ styleSheet

QString Plasma::SpinBox::styleSheet
readwrite

Definition at line 1 of file spinbox.h.

◆ value

int Plasma::SpinBox::value
readwrite

Definition at line 1 of file spinbox.h.


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