DockWidget is scroll area with an embedded widget.
More...
#include <DockWidget.h>
|
template<typename UI > |
void | setup (UI &_ui) |
| Setup ui form UI parameter is smart pointer (e.g. unique_ptr) to UI form. More...
|
|
DockWidget is scroll area with an embedded widget.
omni::ui::DockWidget::DockWidget |
( |
QWidget * |
_parent = nullptr | ) |
|
25 QScrollArea(_parent) {
template<typename UI >
omni::ui::DockWidget::DockWidget |
( |
UI & |
_ui, |
|
|
QWidget * |
_parent = nullptr |
|
) |
| |
|
inline |
35 QScrollArea(_parent) {}
virtual omni::ui::DockWidget::~DockWidget |
( |
| ) |
|
|
inlinevirtual |
template<typename UI >
void omni::ui::DockWidget::setup |
( |
UI & |
_ui | ) |
|
|
inlineprotected |
Setup ui form UI parameter is smart pointer (e.g. unique_ptr) to UI form.
45 _ui.reset(
new typename UI::element_type);
46 auto *_widget =
new QWidget(
this);
47 this->setWidget(_widget);
48 this->setWidgetResizable(
true);
49 _ui->setupUi(this->widget());
The documentation for this class was generated from the following files: