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
@@ -44,20 +44,9 @@ QtGraphView::QtGraphView(ViewLayout* viewLayout)
, m_scrollToTop(false)
, m_restoreScroll(false)
, m_isIndexedList(false)
{
}
QtGraphView::~QtGraphView()
{
}
void QtGraphView::createWidgetWrapper()
{
setWidgetWrapper(std::make_shared<QtViewWidgetWrapper>(new QFrame()));
}
void QtGraphView::initView()
{
QWidget* widget = QtViewWidgetWrapper::getWidgetOfView(this);
QBoxLayout* layout = new QBoxLayout(QBoxLayout::TopToBottom);
@@ -206,6 +195,10 @@ void QtGraphView::initView()
}
}
void QtGraphView::createWidgetWrapper()
{
}
void QtGraphView::refreshView()
{
m_onQtThread([this]()