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

kalarm/lib

Slider Class Reference

#include <slider.h>

Inheritance diagram for Slider:

Inheritance graph
[legend]

List of all members.


Detailed Description

A QSlider with read-only option.

The Slider class is a QSlider with a read-only option.

The widget may be set as read-only. This has the same effect as disabling it, except that its appearance is unchanged.

Author:
David Jarvie <software@astrojar.org.uk>

Definition at line 39 of file slider.h.


Public Member Functions

bool isReadOnly () const
virtual void setReadOnly (bool readOnly)
 Slider (int minValue, int maxValue, int pageStep, Qt::Orientation orient, QWidget *parent=0)
 Slider (Qt::Orientation orient, QWidget *parent=0)
 Slider (QWidget *parent=0)

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *)
virtual void keyReleaseEvent (QKeyEvent *)
virtual void mouseMoveEvent (QMouseEvent *)
virtual void mousePressEvent (QMouseEvent *)
virtual void mouseReleaseEvent (QMouseEvent *)

Properties

bool readOnly

Constructor & Destructor Documentation

Slider::Slider ( QWidget *  parent = 0  )  [explicit]

Constructor.

Parameters:
parent The parent object of this widget.

Definition at line 25 of file slider.cpp.

Slider::Slider ( Qt::Orientation  orient,
QWidget *  parent = 0 
) [explicit]

Constructor.

Parameters:
orient The orientation of the slider, either Qt::Horizonal or Qt::Vertical.
parent The parent object of this widget.

Definition at line 30 of file slider.cpp.

Slider::Slider ( int  minValue,
int  maxValue,
int  pageStep,
Qt::Orientation  orient,
QWidget *  parent = 0 
)

Constructor.

Parameters:
minValue The minimum value which the slider can have.
maxValue The maximum value which the slider can have.
pageStep The page step increment.
orient The orientation of the slider, either Qt::Horizonal or Qt::Vertical.
parent The parent object of this widget.

Definition at line 35 of file slider.cpp.


Member Function Documentation

bool Slider::isReadOnly (  )  const [inline]

Returns true if the slider is read only.

Definition at line 63 of file slider.h.

void Slider::keyPressEvent ( QKeyEvent *  e  )  [protected, virtual]

Definition at line 79 of file slider.cpp.

void Slider::keyReleaseEvent ( QKeyEvent *  e  )  [protected, virtual]

Definition at line 85 of file slider.cpp.

void Slider::mouseMoveEvent ( QMouseEvent *  e  )  [protected, virtual]

Definition at line 73 of file slider.cpp.

void Slider::mousePressEvent ( QMouseEvent *  e  )  [protected, virtual]

Definition at line 56 of file slider.cpp.

void Slider::mouseReleaseEvent ( QMouseEvent *  e  )  [protected, virtual]

Definition at line 67 of file slider.cpp.

void Slider::setReadOnly ( bool  readOnly  )  [virtual]

Sets whether the slider is read-only for the user.

Parameters:
readOnly True to set the widget read-only, false to set it read-write.

Definition at line 47 of file slider.cpp.


Property Documentation

bool Slider::readOnly [read, write]

Definition at line 42 of file slider.h.


The documentation for this class was generated from the following files:
  • slider.h
  • slider.cpp

kalarm/lib

Skip menu "kalarm/lib"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
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