Blokkal::Ui::MainWindowView Class Reference
Base class for views that want to display a main window. More...
#include <mainwindowview.h>
Public Member Functions | |
virtual bool | closeView (void) |
virtual void | hideView (void) |
virtual QWidget * | mainWidget (void) |
MainWindowView (QWidget *parent=Blokkal::Ui::GlobalSettings::self()->mainWidget(), Qt::WindowFlags flags=KDE_DEFAULT_WINDOWFLAGS) | |
virtual void | showView (void) |
virtual | ~MainWindowView (void) |
Detailed Description
Base class for views that want to display a main window.If you want to create a View that displays a main window use this class instead of subclassing KMainWindow yourself. This class has a custom implementation of closeEvent() that prevents it from quiting the host application if a Blokkal::Ui::SystemTray is present.
Definition at line 39 of file mainwindowview.h.
Constructor & Destructor Documentation
Blokkal::Ui::MainWindowView::MainWindowView | ( | QWidget * | parent = Blokkal::Ui::GlobalSettings::self()->mainWidget() , |
|
Qt::WindowFlags | flags = KDE_DEFAULT_WINDOWFLAGS | |||
) |
Creates a new MainWindowView
- Parameters:
-
parent parent widget flags widget flags
Definition at line 23 of file mainwindowview.cpp.
Blokkal::Ui::MainWindowView::~MainWindowView | ( | void | ) | [virtual] |
Destructor
Definition at line 29 of file mainwindowview.cpp.
Member Function Documentation
bool Blokkal::Ui::MainWindowView::closeView | ( | void | ) | [virtual] |
This method is equal to KMainWindow::close().
- Returns:
- TRUE if the window has been closed
Implements Blokkal::Ui::View.
Definition at line 43 of file mainwindowview.cpp.
void Blokkal::Ui::MainWindowView::hideView | ( | void | ) | [virtual] |
QWidget * Blokkal::Ui::MainWindowView::mainWidget | ( | void | ) | [virtual] |
Returns the main widget of this view.
- Returns:
- the main widget
Implements Blokkal::Ui::View.
Definition at line 48 of file mainwindowview.cpp.
void Blokkal::Ui::MainWindowView::showView | ( | void | ) | [virtual] |
Makes the window visible
Implements Blokkal::Ui::View.
Definition at line 33 of file mainwindowview.cpp.
The documentation for this class was generated from the following files: