|
|
KitIconSizeMenu creates a popup context menu to select icon sizes. It is similar to the context menus used by KDE tool bars.
enum IconSize { Default = 0, Tiny = 16, Small = 22, Medium = 32, Large = 48, Huge = 64 } | IconSize |
Icon sizes
Default
- use the default size setting. Can be used to retrieve the global setting.
enum MenuEntries { EntDefault = 1, EntTiny = 2, EntSmall = 4, EntMedium = 8, EntLarge = 16, EntHuge = 32, EntAll = 63 } | MenuEntries |
The menu entries to include in the popup. Combine entries and pass to the constructor.
KitIconSizeMenu ( QWidget *parent = 0, int sizes = KitIconSizeMenu::EntAll, const char *name = 0 )
| KitIconSizeMenu |
Default constructor
KitIconSizeMenu ( const QString & title, QWidget *parent = 0, int sizes = KitIconSizeMenu::EntAll, const char *name = 0 )
| KitIconSizeMenu |
Constructor with a popup menu title
~KitIconSizeMenu ()
| ~KitIconSizeMenu |
Destructor
int iconSize ()
| iconSize |
Returns: the current selected icon size
void setIconSize ( int size )
| setIconSize |
[slot]
Set the icon size.
void iconSizeSelected ( int size )
| iconSizeSelected |
[signal]
Emitted when a menu selection is made.
void processSelected ( int size )
| processSelected |
[protected]
Empty method for sub-classed processing. Processed just before iconSizeSelected is emitted.