KDE PIM / Developers / API Docs / kalarm

ComboBox Class Reference

The ComboBox class is a QComboBox with a read-only option. QComboBox with read-only option. More...

#include <combobox.h>

Inherits QComboBox.

List of all members.

Public Member Functions

Protected Member Functions


Detailed Description

The ComboBox class is a QComboBox with a read-only option. QComboBox with 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>


Constructor & Destructor Documentation

ComboBox::ComboBox QWidget *  parent = 0,
const char *  name = 0
 

Constructor.

Parameters:
parent The parent object of this widget.
name The name of this widget.

ComboBox::ComboBox bool  rw,
QWidget *  parent = 0,
const char *  name = 0
 

Constructor.

Parameters:
rw True for a read-write combo box, false for a read-only combo box.
parent The parent object of this widget.
name The name of this widget.

Member Function Documentation

bool ComboBox::isReadOnly  )  const [inline]
 

Returns true if the widget is read only.

void ComboBox::setReadOnly bool  readOnly  ) 
 

Sets whether the combo box is read-only for the user.

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

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

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