kalarm/lib

#include <pushbutton.h>

Inherits TQPushButton.

Public Member Functions

 PushButton (TQWidget *parent, const char *name=0)
 
 PushButton (const TQString &text, TQWidget *parent, const char *name=0)
 
 PushButton (const TQIconSet &icon, const TQString &text, TQWidget *parent, const char *name=0)
 
virtual void setReadOnly (bool readOnly)
 
virtual bool isReadOnly () const
 

Protected Member Functions

virtual void mousePressEvent (TQMouseEvent *)
 
virtual void mouseReleaseEvent (TQMouseEvent *)
 
virtual void mouseMoveEvent (TQMouseEvent *)
 
virtual void keyPressEvent (TQKeyEvent *)
 
virtual void keyReleaseEvent (TQKeyEvent *)
 

Detailed Description

A TQPushButton with read-only option.

The PushButton class is a TQPushButton 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 softw.nosp@m.are@.nosp@m.astro.nosp@m.jar..nosp@m.org.u.nosp@m.k

Definition at line 37 of file pushbutton.h.

Constructor & Destructor Documentation

◆ PushButton() [1/3]

PushButton::PushButton ( TQWidget *  parent,
const char *  name = 0 
)
explicit

Constructor.

Parameters
parentThe parent object of this widget.
nameThe name of this widget.

Definition at line 24 of file pushbutton.cpp.

◆ PushButton() [2/3]

PushButton::PushButton ( const TQString &  text,
TQWidget *  parent,
const char *  name = 0 
)

Constructor for a push button which displays a text.

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

Definition at line 30 of file pushbutton.cpp.

◆ PushButton() [3/3]

PushButton::PushButton ( const TQIconSet &  icon,
const TQString &  text,
TQWidget *  parent,
const char *  name = 0 
)

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.
nameThe name of this widget.

Definition at line 36 of file pushbutton.cpp.

Member Function Documentation

◆ isReadOnly()

virtual bool PushButton::isReadOnly ( ) const
inlinevirtual

Returns true if the widget is read only.

Definition at line 66 of file pushbutton.h.

◆ setReadOnly()

void PushButton::setReadOnly ( bool  readOnly)
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.

Definition at line 42 of file pushbutton.cpp.


The documentation for this class was generated from the following files: