• 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 Member Functions | Properties | List of all members
PushButton Class Reference

#include <pushbutton.h>

Inheritance diagram for PushButton:
Inheritance graph
[legend]

Public Member Functions

 PushButton (QWidget *parent)
 
 PushButton (const KGuiItem &text, QWidget *parent)
 
 PushButton (const QString &text, QWidget *parent)
 
 PushButton (const KIcon &icon, const QString &text, QWidget *parent)
 
virtual bool isReadOnly () const
 
virtual void setReadOnly (bool readOnly, bool noHighlight=false)
 

Protected Member Functions

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

Properties

bool readOnly
 

Detailed Description

A KPushButton with read-only option.

The PushButton class is a KPushButton 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 djarv.nosp@m.ie@k.nosp@m.de.or.nosp@m.g

Definition at line 39 of file pushbutton.h.

Constructor & Destructor Documentation

PushButton::PushButton ( QWidget *  parent)
explicit

Constructor.

Parameters
parentThe parent object of this widget.

Definition at line 27 of file pushbutton.cpp.

PushButton::PushButton ( const KGuiItem &  text,
QWidget *  parent 
)

Constructor for a push button which displays a text.

Parameters
textThe text to show on the button.
parentThe parent object of this widget.

Definition at line 34 of file pushbutton.cpp.

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

Constructor for a push button which displays a text.

Parameters
textThe text to show on the button.
parentThe parent object of this widget.

Definition at line 41 of file pushbutton.cpp.

PushButton::PushButton ( const KIcon &  icon,
const QString &  text,
QWidget *  parent 
)

Constructor for a push button which displays an icon and a text.

Parameters
iconThe icon to show on the button.
textThe text to show on the button.
parentThe parent object of this widget.

Definition at line 48 of file pushbutton.cpp.

Member Function Documentation

bool PushButton::event ( QEvent *  e)
protectedvirtual

Definition at line 120 of file pushbutton.cpp.

virtual bool PushButton::isReadOnly ( ) const
inlinevirtual

Returns true if the widget is read only.

Definition at line 70 of file pushbutton.h.

void PushButton::keyPressEvent ( QKeyEvent *  e)
protectedvirtual

Definition at line 95 of file pushbutton.cpp.

void PushButton::keyReleaseEvent ( QKeyEvent *  e)
protectedvirtual

Definition at line 114 of file pushbutton.cpp.

void PushButton::mouseMoveEvent ( QMouseEvent *  e)
protectedvirtual

Definition at line 89 of file pushbutton.cpp.

void PushButton::mousePressEvent ( QMouseEvent *  e)
protectedvirtual

Definition at line 67 of file pushbutton.cpp.

void PushButton::mouseReleaseEvent ( QMouseEvent *  e)
protectedvirtual

Definition at line 78 of file pushbutton.cpp.

void PushButton::setReadOnly ( bool  readOnly,
bool  noHighlight = false 
)
virtual

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

Parameters
readOnlyTrue to set the widget read-only, false to enable its action.
noHighlightTrue to prevent the button being highlighted on mouse-over.

Definition at line 55 of file pushbutton.cpp.

Property Documentation

bool PushButton::readOnly
readwrite

Definition at line 42 of file pushbutton.h.


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