|
|
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_loader | The 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:
_resType | A resource type known to KStandardDirs. |
void setIcon ( const QString& _icon ) |
Set the button's icon.
Parameters:
_icon | A parameter as usually passed to KIconLoader. |
const QString icon () |
Returns: The name of the icon without path.
KIconLoaderDialog* iconLoaderDialog () |
Returns: A reference to the icon loader dialog used.
void iconChanged ( const QString& icon ) |
Emitted if the icon has changed.
Generated by: root@tantive.terraplex.com on Sun Feb 27 17:39:25 2000, using kdoc 2.0a33. |