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