kio
KIconButton Class Reference
A pushbutton for choosing an icon. More...
#include <kicondialog.h>
Signals | |
void | iconChanged (QString icon) |
Public Member Functions | |
QString | icon () const |
int | iconSize () const |
KIconButton (KIconLoader *loader, QWidget *parent, const char *name=0L) | |
KIconButton (QWidget *parent=0L, const char *name=0L) | |
void | resetIcon () |
void | setIcon (const QString &icon) |
void | setIconSize (int size) |
void | setIconType (KIcon::Group group, KIcon::Context context, bool user=false) |
void | setStrictIconSize (bool b) |
bool | strictIconSize () const |
~KIconButton () | |
Properties | |
QString | icon |
int | iconSize |
bool | strictIconSize |
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 257 of file kicondialog.h.
Constructor & Destructor Documentation
KIconButton::KIconButton | ( | QWidget * | parent = 0L , |
|
const char * | name = 0L | |||
) |
Constructs a KIconButton using the global iconloader.
Definition at line 660 of file kicondialog.cpp.
KIconButton::KIconButton | ( | KIconLoader * | loader, | |
QWidget * | parent, | |||
const char * | name = 0L | |||
) |
Constructs a KIconButton using a specific KIconLoader.
Definition at line 666 of file kicondialog.cpp.
KIconButton::~KIconButton | ( | ) |
Member Function Documentation
QString KIconButton::icon | ( | ) | const [inline] |
void KIconButton::iconChanged | ( | QString | icon | ) | [signal] |
Emitted when the icon has changed.
int KIconButton::iconSize | ( | ) | const |
Returns the iconsize set via setIconSize() or 0, if the default iconsize will be used.
void KIconButton::resetIcon | ( | ) |
void KIconButton::setIcon | ( | const QString & | icon | ) |
void KIconButton::setIconSize | ( | int | size | ) |
Sets the size of the icon to be shown / selected.
- See also:
- KIcon::StdSizes
Definition at line 701 of file kicondialog.cpp.
void KIconButton::setIconType | ( | KIcon::Group | group, | |
KIcon::Context | context, | |||
bool | user = false | |||
) |
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 711 of file kicondialog.cpp.
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 691 of file kicondialog.cpp.
bool KIconButton::strictIconSize | ( | ) | const |
Returns true if a strict icon size policy is set.
Property Documentation
QString KIconButton::icon [read, write] |
Definition at line 260 of file kicondialog.h.
int KIconButton::iconSize [read, write] |
Definition at line 261 of file kicondialog.h.
bool KIconButton::strictIconSize [read, write] |
Definition at line 262 of file kicondialog.h.
The documentation for this class was generated from the following files: