KIO
KIconButton Class Reference
#include <kicondialog.h>
Detailed Description
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 A push button that allows selection of an icon.
Definition at line 243 of file kicondialog.h.
Signals | |
| void | iconChanged (const QString &icon) |
Public Member Functions | |
| KIconButton (QWidget *parent=0L) | |
| KIconButton (KIconLoader *loader, QWidget *parent) | |
| ~KIconButton () | |
| void | setStrictIconSize (bool b) |
| bool | strictIconSize () const |
| void | setIconType (KIconLoader::Group group, KIconLoader::Context context, bool user=false) |
| void | setIcon (const QString &icon) |
| void | setIcon (const QIcon &icon) |
| void | resetIcon () |
| const QString & | icon () const |
| void | setIconSize (int size) |
| int | iconSize () const |
Properties | |
| QString | icon |
| int | iconSize |
| bool | strictIconSize |
Constructor & Destructor Documentation
| KIconButton::KIconButton | ( | QWidget * | parent = 0L |
) | [explicit] |
Constructs a KIconButton using the global iconloader.
- Parameters:
-
parent The parent widget.
Definition at line 663 of file kicondialog.cpp.
| KIconButton::KIconButton | ( | KIconLoader * | loader, | |
| QWidget * | parent | |||
| ) |
Constructs a KIconButton using a specific KIconLoader.
- Parameters:
-
loader The icon loader to use. parent The parent widget.
Definition at line 669 of file kicondialog.cpp.
| KIconButton::~KIconButton | ( | ) |
Member Function Documentation
| void KIconButton::setStrictIconSize | ( | bool | 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.
Definition at line 700 of file kicondialog.cpp.
| bool KIconButton::strictIconSize | ( | ) | const |
Returns true if a strict icon size policy is set.
| void KIconButton::setIconType | ( | KIconLoader::Group | group, | |
| KIconLoader::Context | context, | |||
| bool | user = false | |||
| ) |
Sets the icon group and context.
Use KIconLoader::NoGroup if you want to allow icons for any group in the given context.
Definition at line 721 of file kicondialog.cpp.
| void KIconButton::setIcon | ( | const QString & | icon | ) |
| void KIconButton::setIcon | ( | const QIcon & | icon | ) |
Definition at line 743 of file kicondialog.cpp.
| void KIconButton::resetIcon | ( | ) |
| const QString& KIconButton::icon | ( | ) | const |
Returns the name of the selected icon.
| void KIconButton::setIconSize | ( | int | size | ) |
Sets the size of the icon to be shown / selected.
- See also:
- KIconLoader::StdSizes
Definition at line 710 of file kicondialog.cpp.
| int KIconButton::iconSize | ( | ) | const |
Returns the iconsize set via setIconSize() or 0, if the default iconsize will be used.
| void KIconButton::iconChanged | ( | const QString & | icon | ) | [signal] |
Emitted when the icon has changed.
Property Documentation
const QString & KIconButton::icon [read, write] |
Definition at line 246 of file kicondialog.h.
int KIconButton::iconSize [read, write] |
Definition at line 247 of file kicondialog.h.
bool KIconButton::strictIconSize [read, write] |
Definition at line 248 of file kicondialog.h.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference