org.kde.koala

Class KIconButton

public class KIconButton extends QPushButton

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 KIconButtonSignals for signals emitted by KIconButton

See Also: KIconDialog

UNKNOWN: A push button that allows selection of an icon.

Constructor Summary
protected KIconButton(Class dummy)
KIconButton(QWidget parent, String name)
Constructs a KIconButton using the global iconloader.
KIconButton(QWidget parent)
KIconButton()
KIconButton(KIconLoader loader, QWidget parent, String name)
Constructs a KIconButton using a specific KIconLoader.
KIconButton(KIconLoader loader, QWidget parent)
Method Summary
StringclassName()
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
StringiconName()
Returns the name of the selected icon.
inticonSize()
Returns the iconsize set via setIconSize() or 0, if the default iconsize will be used.
booleanisDisposed()
Has the wrapped C++ instance been deleted?
QMetaObjectmetaObject()
voidresetIcon()
Resets the icon (reverts to an empty button).
voidsetIcon(String icon)
Sets the button's initial icon.
voidsetIconSize(int size)
Sets the size of the icon to be shown / selected.
voidsetIconType(int group, int context, boolean user)
Sets the icon group and context.
voidsetIconType(int group, int context)
voidsetStrictIconSize(boolean b)
Sets a strict icon size policy for allowed icons.
booleanstrictIconSize()
Returns true if a strict icon size policy is set.

Constructor Detail

KIconButton

protected KIconButton(Class dummy)

KIconButton

public KIconButton(QWidget parent, String name)
Constructs a KIconButton using the global iconloader.

UNKNOWN: Constructs a KIconButton using the global iconloader.

KIconButton

public KIconButton(QWidget parent)

KIconButton

public KIconButton()

KIconButton

public KIconButton(KIconLoader loader, QWidget parent, String name)
Constructs a KIconButton using a specific KIconLoader.

UNKNOWN: Constructs a KIconButton using a specific KIconLoader.

KIconButton

public KIconButton(KIconLoader loader, QWidget parent)

Method Detail

className

public String className()

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

finalize

protected void finalize()
Deletes the wrapped C++ instance

iconName

public String iconName()
Returns the name of the selected icon.

UNKNOWN: Returns the name of the selected icon.

iconSize

public int iconSize()
Returns the iconsize set via setIconSize() or 0, if the default iconsize will be used.

UNKNOWN: Returns the iconsize set via setIconSize() or 0, if the default iconsize will be used.

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

metaObject

public QMetaObject metaObject()

resetIcon

public void resetIcon()
Resets the icon (reverts to an empty button).

UNKNOWN: Resets the icon (reverts to an empty button).

setIcon

public void setIcon(String icon)
Sets the button's initial icon.

UNKNOWN: Sets the button's initial icon.

setIconSize

public void setIconSize(int size)
Sets the size of the icon to be shown / selected.

See Also: KIcon#StdSizes KIconButton

UNKNOWN: Sets the size of the icon to be shown / selected.

setIconType

public void setIconType(int group, int context, boolean user)
Sets the icon group and context. Use KIcon.NoGroup if you want to allow icons for any group in the given context.

UNKNOWN: Sets the icon group and context.

setIconType

public void setIconType(int group, int context)

setStrictIconSize

public void setStrictIconSize(boolean b)
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.

UNKNOWN: Sets a strict icon size policy for allowed icons.

strictIconSize

public boolean strictIconSize()
Returns true if a strict icon size policy is set.

UNKNOWN: Returns true if a strict icon size policy is set.