class KIconLoaderButton

This is a button that uses the KIconLoaderDialog. More...

Definition#include <kiconloaderdialog.h>
InheritsQPushButton (qt)
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Slots

Signals

Protected Members


Detailed Description

This is a button that uses the KIconLoaderDialog. It shows the currently selected icon. Pressing on the icon will open the dialog. If the icon changes, a signal is emitted and the buttons pixmap becomes updated.

You can set the resource type for locating the icon pixmaps. See setIconType for changing the default setting, which is "toolbar".

 KIconLoaderButton ( QWidget *_parent )

Create a new button.

 KIconLoaderButton ( KIconLoader *_icon_loader, QWidget *_parent )

Create a new button.

Parameters:
_icon_loaderThe KIconLoader which should be used by this button.

void  setIconType (const QString& _resType)

Set the resource type for locating icon pixmaps and reload the icon, if a name has already been given.

The default resource type is "toolbar".

Parameters:
_resTypeA resource type known to KStandardDirs.

void  setIcon ( const QString& _icon )

Set the button's icon.

Parameters:
_iconA parameter as usually passed to KIconLoader.

Reimplemented from QWidget

const QString  icon ()

Returns: The name of the icon without path.

Reimplemented from QWidget

KIconLoaderDialog*  iconLoaderDialog ()

Returns: A reference to the icon loader dialog used.

void  iconChanged ( const QString& icon )

[signal]

Emitted if the icon has changed.


Generated by: dfaure@faure on Sun Mar 26 14:24:24 2000, using kdoc 2.0a35.