class KListAction

# class KListAction | More...
Deprecated! use with care
Definition | `#include <kaction.h>`
Inherits | KSelectAction [public ]
Inherited by | KRecentFilesAction
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KListAction ( const QString& text, const KShortcut& cut = KShortcut(), QObject* parent = 0, const char* name = 0 )
- KListAction ( const QString& text, const KShortcut& cut, const QObject* receiver, const char* slot, QObject* parent, const char* name = 0 )
- KListAction ( const QString& text, const QIconSet& pix, const KShortcut& cut = KShortcut(), QObject* parent = 0, const char* name = 0 )
- KListAction ( const QString& text, const QString& pix, const KShortcut& cut = KShortcut(), QObject* parent = 0, const char* name = 0 )
- KListAction ( const QString& text, const QIconSet& pix, const KShortcut& cut, const QObject* receiver, const char* slot, QObject* parent, const char* name = 0 )
- KListAction ( const QString& text, const QString& pix, const KShortcut& cut, const QObject* receiver, const char* slot, QObject* parent, const char* name = 0 )
- KListAction ( QObject* parent = 0, const char* name = 0 )
- virtual ~KListAction ()
- virtual QString currentText () const
- virtual int currentItem () const

#### Public Slots

- virtual void setCurrentItem ( int index )

#### Protected Methods

- virtual void virtual_hook ( int id, void* data )

## Detailed Description

KListAction ( const QString& text, const KShortcut& cut = KShortcut(), QObject* parent = 0, const char* name = 0 ) | ### KListAction

Constructs a list action with text and potential keyboard accelerator but nothing else. Use this only if you really know what you are doing.

Parameters:

text | The text that will be displayed.
cut | The corresponding keyboard accelerator (shortcut).
parent | This action's parent.
name | An internal name for this action.

KListAction ( const QString& text, const KShortcut& cut, const QObject* receiver, const char* slot, QObject* parent, const char* name = 0 ) | ### KListAction

Parameters:

text | The text that will be displayed.
cut | The corresponding keyboard accelerator (shortcut).
receiver | The SLOT's parent.
slot | The SLOT to invoke to execute this action.
parent | This action's parent.
name | An internal name for this action.

KListAction ( const QString& text, const QIconSet& pix, const KShortcut& cut = KShortcut(), QObject* parent = 0, const char* name = 0 ) | ### KListAction

Parameters:

text | The text that will be displayed.
pix | The icons that go with this action.
cut | The corresponding keyboard accelerator (shortcut).
parent | This action's parent.
name | An internal name for this action.

KListAction ( const QString& text, const QString& pix, const KShortcut& cut = KShortcut(), QObject* parent = 0, const char* name = 0 ) | ### KListAction

Parameters:

text | The text that will be displayed.
pix | The dynamically loaded icon that goes with this action.
cut | The corresponding keyboard accelerator (shortcut).
parent | This action's parent.
name | An internal name for this action.

KListAction ( const QString& text, const QIconSet& pix, const KShortcut& cut, const QObject* receiver, const char* slot, QObject* parent, const char* name = 0 ) | ### KListAction

Parameters:

text | The text that will be displayed.
pix | The icons that go with this action.
cut | The corresponding keyboard accelerator (shortcut).
receiver | The SLOT's parent.
slot | The SLOT to invoke to execute this action.
parent | This action's parent.
name | An internal name for this action.

KListAction ( const QString& text, const QString& pix, const KShortcut& cut, const QObject* receiver, const char* slot, QObject* parent, const char* name = 0 ) | ### KListAction

Parameters:

text | The text that will be displayed.
pix | The dynamically loaded icon that goes with this action.
cut | The corresponding keyboard accelerator (shortcut).
receiver | The SLOT's parent.
slot | The SLOT to invoke to execute this action.
parent | This action's parent.
name | An internal name for this action.

KListAction ( QObject* parent = 0, const char* name = 0 ) | ### KListAction

Parameters:

parent | This action's parent.
name | An internal name for this action.

~KListAction () | ### ~KListAction

[virtual]

Destructor

QString currentText () | ### currentText

[const virtual]

Reimplemented from KSelectAction.

int currentItem () | ### currentItem

[const virtual]

Reimplemented from KSelectAction.

void setCurrentItem ( int index ) | ### setCurrentItem

[virtual slot]

Sets the currently checked item.

Parameters:

index | Index of the item (remember the first item is zero).

Reimplemented from KSelectAction.

void virtual_hook ( int id, void* data ) | ### virtual_hook

[protected virtual]

Reimplemented from KSelectAction.

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:37 2003, using kdoc 2.0a54.