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:
@@ -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]()
|
||||
|
||||
Reference in New Issue
Block a user