#include <menuframe.h>
Inheritance diagram for MenuFrame:
Public Slots | |
virtual void | open () |
virtual void | close (QWidget *newFocusWidget) |
Public Member Functions | |
MenuFrame (QWidget *parent=0, const char *name=0) | |
void | setFocusWidget (QSpinBox *focusSpinBox=0) |
void | setFocusWidget (QLineEdit *focusLineEdit=0) |
Protected Member Functions | |
void | mousePressEvent (QMouseEvent *e) |
This class allow you to create preferences/etc. menues without resorting to the modal cover-the-gui menues.
|
Creates and sets up the menu frame.
|
|
Closes the menu and turns the focus to the newFocusWidget.
|
|
Overloaded function to intercept when the user press the mouse inside the menu. (So that the mainwindow doesn't get the event).
|
|
Opens the menu. Reimplemented in FramePreferencesMenu. |
|
Sets the focus widget to the QLineEdit: focusSpinBox. NB: One should only use use one of the two setFocusWidget functions. If both are used the spinbox will be used. (A bit hacky but saves me from creating a custom(/messy!) class hierarchy and gives me time to go out and have a few beers tonight).
|
|
Sets the focus widget to the QSpinBox: focusSpinBox. NB: One should only use use one of the two setFocusWidget functions. If both are used the spinbox will be used. (A bit hacky but saves me from creating a custom(/messy!) class hierarchy and gives me time to go out and have a few beers tonight).
|