|
|
A pushbutton for choosing an icon. Pressing on the button will open a KIconDialog for the user to select an icon. The current icon will be displayed on the button.
See also: KIconDialog
KIconButton (QWidget *parent=0L, const char *name=0L)
| KIconButton |
Constructs a KIconButton using the global iconloader.
KIconButton (KIconLoader *loader, QWidget *parent, const char *name=0L)
| KIconButton |
Constructs a KIconButton using a specific KIconLoader.
~KIconButton ()
| ~KIconButton |
Destructs the button.
void setStrictIconSize (bool b)
| setStrictIconSize |
Sets a strict icon size policy for allowed icons. When true, only icons of the specified group's size in setIconType are allowed, and only icons of that size will be shown in the icon dialog.
bool strictIconSize ()
| strictIconSize |
[const]
Returns true if a strict icon size policy is set.
void setIconType (KIcon::Group group, KIcon::Context context, bool user=false)
| setIconType |
Sets the icon group and context. Use KIcon::NoGroup if you want to allow icons for any group in the given context.
void setIcon (const QString& icon)
| setIcon |
Sets the button's initial icon.
void resetIcon ()
| resetIcon |
Resets the icon (reverts to an empty button).
QString icon ()
| icon |
[const]
Returns the name of the selected icon.
void setIconSize ( int size )
| setIconSize |
Sets the size of the icon to be shown / selected.
See also: iconSize, iconSize
int iconSize ()
| iconSize |
[const]
Returns the iconsize set via setIconSize() or 0, if the default iconsize will be used.
void iconChanged (QString icon)
| iconChanged |
[signal]
Emitted when the icon has changed.
Generated by: dfaure on faure on Tue Apr 16 08:50:13 2002, using kdoc 2.0a53. |