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

kalarm/lib

Public Member Functions | Protected Slots | Protected Member Functions | List of all members
RadioButton Class Reference

#include <radiobutton.h>

Inheritance diagram for RadioButton:
Inheritance graph
[legend]

Public Member Functions

 RadioButton (QWidget *parent)
 
 RadioButton (const QString &text, QWidget *parent)
 
QWidget * focusWidget () const
 
bool isReadOnly () const
 
void setFocusWidget (QWidget *widget, bool enable=true)
 
virtual void setReadOnly (bool readOnly)
 

Protected Slots

void slotClicked ()
 

Protected Member Functions

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

Detailed Description

A QRadioButton with focus widget and read-only options.

The RadioButton class is a QRadioButton with the ability to transfer focus to another widget when checked, and with a read-only option.

Another widget may be specified as the focus widget for the radio button. Whenever the user clicks on the radio button so as to set its state to checked, focus is automatically transferred to the focus widget.

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 djarv.nosp@m.ie@k.nosp@m.de.or.nosp@m.g

Definition at line 44 of file radiobutton.h.

Constructor & Destructor Documentation

RadioButton::RadioButton ( QWidget *  parent)
explicit

Constructor.

Parameters
parentThe parent object of this widget.

Definition at line 26 of file radiobutton.cpp.

RadioButton::RadioButton ( const QString &  text,
QWidget *  parent 
)

Constructor.

Parameters
textText to display.
parentThe parent object of this widget.

Definition at line 33 of file radiobutton.cpp.

Member Function Documentation

QWidget* RadioButton::focusWidget ( ) const
inline

Returns the widget which receives focus when the button is clicked.

Definition at line 65 of file radiobutton.h.

bool RadioButton::isReadOnly ( ) const
inline

Returns true if the widget is read only.

Definition at line 58 of file radiobutton.h.

void RadioButton::keyPressEvent ( QKeyEvent *  e)
protectedvirtual

Definition at line 114 of file radiobutton.cpp.

void RadioButton::keyReleaseEvent ( QKeyEvent *  e)
protectedvirtual

Definition at line 134 of file radiobutton.cpp.

void RadioButton::mouseMoveEvent ( QMouseEvent *  e)
protectedvirtual

Definition at line 108 of file radiobutton.cpp.

void RadioButton::mousePressEvent ( QMouseEvent *  e)
protectedvirtual

Definition at line 86 of file radiobutton.cpp.

void RadioButton::mouseReleaseEvent ( QMouseEvent *  e)
protectedvirtual

Definition at line 97 of file radiobutton.cpp.

void RadioButton::setFocusWidget ( QWidget *  widget,
bool  enable = true 
)

Specifies a widget to receive focus when the button is clicked.

Parameters
widgetWidget to receive focus.
enableIf true, widget will be enabled before receiving focus. If false, the enabled state of widget will be left unchanged when the radio button is clicked.

Definition at line 58 of file radiobutton.cpp.

void RadioButton::setReadOnly ( bool  readOnly)
virtual

Sets whether the radio button is read-only for the user.

If read-only, its state cannot be changed by the user.

Parameters
readOnlyTrue to set the widget read-only, false to set it read-write.

Definition at line 44 of file radiobutton.cpp.

void RadioButton::slotClicked ( )
protectedslot

Definition at line 72 of file radiobutton.cpp.


The documentation for this class was generated from the following files:
  • radiobutton.h
  • radiobutton.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:59:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kalarm/lib

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

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



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