Remove this class in KDE-4.0. It doesn't add _anything_ to KSelectAction. More...

#include <kactionclasses.h>

Inheritance diagram for KListAction:
KSelectAction KAction QObject KRecentFilesAction

List of all members.

Public Slots

virtual void setCurrentItem (int index)

Public Member Functions

 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

Protected Member Functions

virtual void virtual_hook (int id, void *data)

Detailed Description

Remove this class in KDE-4.0. It doesn't add _anything_ to KSelectAction.

Deprecated:
Use KSelectAction instead.

Definition at line 581 of file kactionclasses.h.


Constructor & Destructor Documentation

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

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:
textThe text that will be displayed.
cutThe corresponding keyboard accelerator (shortcut).
parentThis action's parent.
nameAn internal name for this action.

Definition at line 844 of file kactionclasses.cpp.

KListAction::KListAction ( const QString text,
const KShortcut cut,
const QObject receiver,
const char *  slot,
QObject parent,
const char *  name = 0 
)
Parameters:
textThe text that will be displayed.
cutThe corresponding keyboard accelerator (shortcut).
receiverThe SLOT's parent.
slotThe SLOT to invoke to execute this action.
parentThis action's parent.
nameAn internal name for this action.

Definition at line 851 of file kactionclasses.cpp.

KListAction::KListAction ( const QString text,
const QIconSet pix,
const KShortcut cut = KShortcut(),
QObject parent = 0,
const char *  name = 0 
)
Parameters:
textThe text that will be displayed.
pixThe icons that go with this action.
cutThe corresponding keyboard accelerator (shortcut).
parentThis action's parent.
nameAn internal name for this action.

Definition at line 861 of file kactionclasses.cpp.

KListAction::KListAction ( const QString text,
const QString pix,
const KShortcut cut = KShortcut(),
QObject parent = 0,
const char *  name = 0 
)
Parameters:
textThe text that will be displayed.
pixThe dynamically loaded icon that goes with this action.
cutThe corresponding keyboard accelerator (shortcut).
parentThis action's parent.
nameAn internal name for this action.

Definition at line 869 of file kactionclasses.cpp.

KListAction::KListAction ( const QString text,
const QIconSet pix,
const KShortcut cut,
const QObject receiver,
const char *  slot,
QObject parent,
const char *  name = 0 
)
Parameters:
textThe text that will be displayed.
pixThe icons that go with this action.
cutThe corresponding keyboard accelerator (shortcut).
receiverThe SLOT's parent.
slotThe SLOT to invoke to execute this action.
parentThis action's parent.
nameAn internal name for this action.

Definition at line 877 of file kactionclasses.cpp.

KListAction::KListAction ( const QString text,
const QString pix,
const KShortcut cut,
const QObject receiver,
const char *  slot,
QObject parent,
const char *  name = 0 
)
Parameters:
textThe text that will be displayed.
pixThe dynamically loaded icon that goes with this action.
cutThe corresponding keyboard accelerator (shortcut).
receiverThe SLOT's parent.
slotThe SLOT to invoke to execute this action.
parentThis action's parent.
nameAn internal name for this action.

Definition at line 888 of file kactionclasses.cpp.

KListAction::KListAction ( QObject parent = 0,
const char *  name = 0 
)
Parameters:
parentThis action's parent.
nameAn internal name for this action.

Definition at line 899 of file kactionclasses.cpp.

KListAction::~KListAction ( ) [virtual]

Destructor.

Definition at line 905 of file kactionclasses.cpp.


Member Function Documentation

int KListAction::currentItem ( ) const [virtual]

Returns the index of the current item.

See also:
setCurrentItem

Reimplemented from KSelectAction.

Definition at line 925 of file kactionclasses.cpp.

QString KListAction::currentText ( ) const [virtual]

Returns the text of the currently selected item.

Reimplemented from KSelectAction.

Definition at line 920 of file kactionclasses.cpp.

void KListAction::setCurrentItem ( int  index) [virtual, slot]

Sets the currently checked item.

Parameters:
indexIndex of the item (remember the first item is zero).

Reimplemented from KSelectAction.

Definition at line 910 of file kactionclasses.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys