class KitIconSizeMenu

A popup context menu for icon size selection. More...

Definition#include <iconsizemenu.h>
InheritsKPopupMenu (kdeui) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods

Public Slots

Signals

Protected Methods


Detailed Description

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

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.