KIconButton Class Reference
A pushbutton for choosing an icon. A push button that allows selection of an icon. More...
#include <kicondialog.h>
Inheritance diagram for KIconButton:

Signals | |
void | iconChanged (QString icon) |
Public Member Functions | |
KIconButton (QWidget *parent=0L, const char *name=0L) | |
KIconButton (KIconLoader *loader, QWidget *parent, const char *name=0L) | |
~KIconButton () | |
void | setStrictIconSize (bool b) |
bool | strictIconSize () const |
void | setIconType (KIcon::Group group, KIcon::Context context, bool user=false) |
void | setIcon (const QString &icon) |
void | resetIcon () |
QString | icon () const |
void | setIconSize (int size) |
int | iconSize () const |
Detailed Description
A pushbutton for choosing an icon. A push button that allows selection of 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
Definition at line 240 of file kicondialog.h.
Constructor & Destructor Documentation
|
Constructs a KIconButton using the global iconloader.
Definition at line 505 of file kicondialog.cpp. References KGlobal::iconLoader(), and KIconButton(). Referenced by KIconButton(). |
|
Constructs a KIconButton using a specific KIconLoader.
Definition at line 519 of file kicondialog.cpp. References KIconButton(). |
|
Destructs the button.
Definition at line 533 of file kicondialog.cpp. |
Member Function Documentation
|
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. Definition at line 539 of file kicondialog.cpp. References setStrictIconSize(). Referenced by KFilePropsPlugin::KFilePropsPlugin(), KURLBarItemDialog::KURLBarItemDialog(), and setStrictIconSize(). |
|
Returns true if a strict icon size policy is set.
Definition at line 544 of file kicondialog.cpp. |
|
Sets the icon group and context. Use KIcon::NoGroup if you want to allow icons for any group in the given context. Definition at line 559 of file kicondialog.cpp. References setIconType(). Referenced by KFilePropsPlugin::KFilePropsPlugin(), and setIconType(). |
|
Sets the button's initial icon.
Definition at line 566 of file kicondialog.cpp. References KIconLoader::iconPath(), KIconLoader::loadIcon(), KIconDialog::setCustomLocation(), and setIcon(). Referenced by KFilePropsPlugin::KFilePropsPlugin(), KURLBarItemDialog::KURLBarItemDialog(), and setIcon(). |
|
Resets the icon (reverts to an empty button).
Definition at line 581 of file kicondialog.cpp. |
|
Returns the name of the selected icon.
Definition at line 289 of file kicondialog.h. Referenced by KDevicePropsPlugin::applyChanges(), and KURLBarItemDialog::icon(). |
|
Sets the size of the icon to be shown / selected.
Definition at line 549 of file kicondialog.cpp. References setIconSize(). Referenced by KFilePropsPlugin::KFilePropsPlugin(), KURLBarItemDialog::KURLBarItemDialog(), and setIconSize(). |
|
Returns the iconsize set via setIconSize() or 0, if the default iconsize will be used.
Definition at line 554 of file kicondialog.cpp. |
|
Emitted when the icon has changed.
|
The documentation for this class was generated from the following files: