class KitIconTextMenu

A popup context menu for icon text position selection. More...

Definition#include <icontextmenu.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

KitIconTextMenu creates a popup context menu to select icon text positions. It is similar to the context menus used by KDE tool bars.

enum IconText { IconOnly, IconTextRight, TextOnly, IconTextBottom }

IconText

Icon text placement

enum MenuEntries { EntIconOnly = 1, EntTextOnly = 2, EntTextAside = 4, EntTextUnder = 8, EntAll = 15 }

MenuEntries

The menu entries to include in the popup. Combine entries and pass to the constructor.

 KitIconTextMenu ( QWidget *parent = 0, int ent = KitIconTextMenu::EntAll, const char *name = 0 )

KitIconTextMenu

Default constructor

 KitIconTextMenu ( const QString & title, QWidget *parent = 0, int ent = KitIconTextMenu:: EntAll, const char *name = 0 )

KitIconTextMenu

Constructor with a popup menu title

 ~KitIconTextMenu ()

~KitIconTextMenu

Destructor

IconText  iconText ()

iconText

Returns: the current icon setting.

void  setIconText ( IconText it )

setIconText

[slot]

Sets the icon text position

Parameters:
iticon text position

void  iconTextSelected ( KitIconTextMenu::IconText it )

iconTextSelected

[signal]

Emitted when a menu selection is made.

void  processSelected ( IconText it )

processSelected

[protected]

Empty method for sub-classed processing. Processed just before iconTextSelected is emitted.