libyui-qt  2.43.5
 All Classes Functions Variables
YQContextMenu Class Reference
Inheritance diagram for YQContextMenu:
Collaboration diagram for YQContextMenu:

Public Member Functions

 YQContextMenu ()
 
 YQContextMenu (const QPoint position)
 
virtual ~YQContextMenu ()
 
virtual void rebuildMenuTree ()
 
virtual int preferredWidth ()
 
virtual int preferredHeight ()
 
virtual void setSize (int newWidth, int newHeight)
 

Protected Slots

void menuEntryActivated (QAction *menuItem)
 
void returnNow ()
 
void slotMenuHidden ()
 
void slotReturnMenuHidden ()
 

Protected Member Functions

void rebuildMenuTree (QMenu *menu, YItemIterator begin, YItemIterator end)
 

Protected Attributes

YMenuItem * _selectedItem
 
QPushButton * _qt_button
 
QHash< QAction *, int > _serials
 

Detailed Description

Definition at line 37 of file YQContextMenu.h.

Constructor & Destructor Documentation

YQContextMenu::YQContextMenu ( )

Constructor.

Definition at line 37 of file YQContextMenu.cc.

YQContextMenu::~YQContextMenu ( )
virtual

Destructor.

Definition at line 55 of file YQContextMenu.cc.

Member Function Documentation

void YQContextMenu::menuEntryActivated ( QAction *  menuItem)
protectedslot

Triggered when any menu item is activated.

Definition at line 151 of file YQContextMenu.cc.

Here is the call graph for this function:

int YQContextMenu::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

Definition at line 200 of file YQContextMenu.cc.

int YQContextMenu::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

Definition at line 194 of file YQContextMenu.cc.

void YQContextMenu::rebuildMenuTree ( )
virtual

Change the label on the button.

Reimplemented from YContextMenu / YSelectionWidget. Rebuild the displayed menu tree from the internally stored YMenuItems.

Implemented from YContextMenu.

Definition at line 62 of file YQContextMenu.cc.

Here is the call graph for this function:

void YQContextMenu::rebuildMenuTree ( QMenu *  menu,
YItemIterator  begin,
YItemIterator  end 
)
protected

Recursively insert menu items into 'menu' from iterator 'begin' to iterator 'end'.

Definition at line 83 of file YQContextMenu.cc.

Here is the call graph for this function:

void YQContextMenu::returnNow ( )
protectedslot

Triggered via menuEntryActivated() by zero timer to get back in sync with the Qt event loop.

Definition at line 184 of file YQContextMenu.cc.

Here is the call graph for this function:

void YQContextMenu::setSize ( int  newWidth,
int  newHeight 
)
virtual

Set the new size of the widget.

Reimplemented from YWidget.

Definition at line 207 of file YQContextMenu.cc.

void YQContextMenu::slotMenuHidden ( )
protectedslot

Triggered when the context menu is hidden

Definition at line 132 of file YQContextMenu.cc.

Here is the call graph for this function:

void YQContextMenu::slotReturnMenuHidden ( )
protectedslot

Triggered via slotMenuHidden() by zero timer to get back in sync with the Qt event loop.

Definition at line 141 of file YQContextMenu.cc.

Here is the call graph for this function:


The documentation for this class was generated from the following files: