#include <QmitkFileExitAction.h>
Public Member Functions | |
QmitkFileExitAction (berry::IWorkbenchWindow::Pointer window) | |
Protected Slots | |
void | Run () |
Definition at line 27 of file QmitkFileExitAction.h.
QmitkFileExitAction::QmitkFileExitAction | ( | berry::IWorkbenchWindow::Pointer | window ) |
Definition at line 31 of file QmitkFileExitAction.cpp.
References berry::SmartPointer< TObjectType >::GetPointer(), berry::IWorkbenchWindow::GetShell(), and Run().
: QAction(0) { m_Window = window.GetPointer(); this->setParent(static_cast<QWidget*>(m_Window->GetShell()->GetControl())); this->setText("&Exit"); this->connect(this, SIGNAL(triggered(bool)), this, SLOT(Run())); }
void QmitkFileExitAction::Run | ( | ) | [protected, slot] |
Definition at line 42 of file QmitkFileExitAction.cpp.
References berry::PlatformUI::GetWorkbench().
Referenced by QmitkFileExitAction().
{ berry::PlatformUI::GetWorkbench()->Close(); }