kalarm/lib

#include <combobox.h>

Inherits TQComboBox.

Public Member Functions

 ComboBox (TQWidget *parent=0, const char *name=0)
 
 ComboBox (bool rw, TQWidget *parent=0, const char *name=0)
 
bool isReadOnly () const
 
virtual void setReadOnly (bool readOnly)
 

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 TQComboBox with read-only option.

The ComboBox class is a TQComboBox 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 combobox.h.

Constructor & Destructor Documentation

◆ ComboBox() [1/2]

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

Constructor.

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

Definition at line 25 of file combobox.cpp.

◆ ComboBox() [2/2]

ComboBox::ComboBox ( bool  rw,
TQWidget *  parent = 0,
const char *  name = 0 
)
explicit

Constructor.

Parameters
rwTrue for a read-write combo box, false for a read-only combo box.
parentThe parent object of this widget.
nameThe name of this widget.

Definition at line 30 of file combobox.cpp.

Member Function Documentation

◆ isReadOnly()

bool ComboBox::isReadOnly ( ) const
inline

Returns true if the widget is read only.

Definition at line 54 of file combobox.h.

◆ setReadOnly()

void ComboBox::setReadOnly ( bool  readOnly)
virtual

Sets whether the combo box 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 35 of file combobox.cpp.


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