#include <kicondialog.h>
Inherits TQPushButton.
Signals | |
void | iconChanged (TQString icon) |
Public Member Functions | |
TDEIconButton (TQWidget *parent=0L, const char *name=0L) | |
TDEIconButton (TDEIconLoader *loader, TQWidget *parent, const char *name=0L) | |
~TDEIconButton () | |
void | setStrictIconSize (bool b) |
bool | strictIconSize () const |
void | setIconType (TDEIcon::Group group, TDEIcon::Context context, bool user=false) |
void | setIcon (const TQString &icon) |
void | resetIcon () |
TQString | icon () const |
void | setIconSize (int size) |
int | iconSize () const |
Detailed Description
A pushbutton for choosing an icon.
Pressing on the button will open a TDEIconDialog for the user to select an icon. The current icon will be displayed on the button.
- See also
- TDEIconDialog
A push button that allows selection of an icon.
Definition at line 257 of file kicondialog.h.
Constructor & Destructor Documentation
◆ TDEIconButton() [1/2]
TDEIconButton::TDEIconButton | ( | TQWidget * | parent = 0L , |
const char * | name = 0L |
||
) |
Constructs a TDEIconButton using the global iconloader.
Definition at line 659 of file kicondialog.cpp.
◆ TDEIconButton() [2/2]
TDEIconButton::TDEIconButton | ( | TDEIconLoader * | loader, |
TQWidget * | parent, | ||
const char * | name = 0L |
||
) |
Constructs a TDEIconButton using a specific TDEIconLoader.
Definition at line 665 of file kicondialog.cpp.
◆ ~TDEIconButton()
TDEIconButton::~TDEIconButton | ( | ) |
Destructs the button.
Definition at line 684 of file kicondialog.cpp.
Member Function Documentation
◆ icon()
|
inline |
Returns the name of the selected icon.
Definition at line 309 of file kicondialog.h.
◆ iconChanged
|
signal |
Emitted when the icon has changed.
◆ iconSize()
int TDEIconButton::iconSize | ( | ) | const |
Returns the iconsize set via setIconSize() or 0, if the default iconsize will be used.
Definition at line 705 of file kicondialog.cpp.
◆ resetIcon()
void TDEIconButton::resetIcon | ( | ) |
Resets the icon (reverts to an empty button).
Definition at line 732 of file kicondialog.cpp.
◆ setIcon()
void TDEIconButton::setIcon | ( | const TQString & | icon | ) |
Sets the button's initial icon.
Definition at line 717 of file kicondialog.cpp.
◆ setIconSize()
void TDEIconButton::setIconSize | ( | int | size | ) |
Sets the size of the icon to be shown / selected.
- See also
- TDEIcon::StdSizes
- iconSize
Definition at line 700 of file kicondialog.cpp.
◆ setIconType()
void TDEIconButton::setIconType | ( | TDEIcon::Group | group, |
TDEIcon::Context | context, | ||
bool | user = false |
||
) |
Sets the icon group and context.
Use TDEIcon::NoGroup if you want to allow icons for any group in the given context.
Definition at line 710 of file kicondialog.cpp.
◆ setStrictIconSize()
void TDEIconButton::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 690 of file kicondialog.cpp.
◆ strictIconSize()
bool TDEIconButton::strictIconSize | ( | ) | const |
Returns true if a strict icon size policy is set.
Definition at line 695 of file kicondialog.cpp.
The documentation for this class was generated from the following files: