VPTissue Reference Manual
|
A window containing visual output of a viewer. More...
#include <ViewerWindow.h>
Public Member Functions | |
ViewerWindow (const std::shared_ptr< Ws::MergedPreferences > &, QWidget *parent=nullptr, std::function< void()> on_close=std::function< void()>()) | |
Protected Member Functions | |
virtual void | closeEvent (QCloseEvent *) |
overrides QWidget::closeEvent More... | |
Protected Attributes | |
std::shared_ptr< Ws::MergedPreferences > | m_preferences |
A window containing visual output of a viewer.
(e.g. Qt viewer) A callback can be performed when the window is closed.
Definition at line 34 of file ViewerWindow.h.
SimShell::Gui::ViewerWindow::ViewerWindow | ( | const std::shared_ptr< Ws::MergedPreferences > & | , |
QWidget * | parent = nullptr , |
||
std::function< void()> | on_close = std::function<void()>() |
||
) |
parent | Parent widget. |
on_close | Callback to be performed when window is closed. |
Definition at line 30 of file ViewerWindow.cpp.
|
protectedvirtual |
overrides QWidget::closeEvent
Definition at line 51 of file ViewerWindow.cpp.