ui: Refactored View initialization

* moved initView() implementation where used into constructor
* specify methods as override instead of virtual where applicable
* use default destructors where applicable
This commit is contained in:
Eberhard Graether
2019-07-02 15:04:09 +02:00
parent 5cc39824e0
commit 3aebe91e36
37 changed files with 193 additions and 319 deletions
+4 -11
View File
@@ -16,20 +16,9 @@
QtStatusView::QtStatusView(ViewLayout* viewLayout)
: StatusView(viewLayout)
{
}
QtStatusView::~QtStatusView()
{
}
void QtStatusView::createWidgetWrapper()
{
setWidgetWrapper(std::make_shared<QtViewWidgetWrapper>(new QFrame()));
}
void QtStatusView::initView()
{
QWidget* widget = QtViewWidgetWrapper::getWidgetOfView(this);
QBoxLayout* layout = new QVBoxLayout();
@@ -77,6 +66,10 @@ void QtStatusView::initView()
layout->addLayout(filters);
}
void QtStatusView::createWidgetWrapper()
{
}
void QtStatusView::refreshView()
{
m_onQtThread([this]()