ui: save and load view layout
* QtMainWindow now saves and loads its layout parameters.
This commit is contained in:
@@ -31,3 +31,13 @@ void QtMainView::removeView(View* view)
|
||||
m_window->removeView(view);
|
||||
m_views.erase(it);
|
||||
}
|
||||
|
||||
void QtMainView::loadLayout()
|
||||
{
|
||||
m_window->loadLayout();
|
||||
}
|
||||
|
||||
void QtMainView::saveLayout()
|
||||
{
|
||||
m_window->saveLayout();
|
||||
}
|
||||
|
||||
@@ -19,6 +19,9 @@ public:
|
||||
void addView(View* view);
|
||||
void removeView(View* view);
|
||||
|
||||
virtual void loadLayout();
|
||||
virtual void saveLayout();
|
||||
|
||||
private:
|
||||
std::shared_ptr<QtMainWindow> m_window;
|
||||
std::vector<View*> m_views;
|
||||
|
||||
Reference in New Issue
Block a user