ui: save and load view layout

* QtMainWindow now saves and loads its layout parameters.
This commit is contained in:
malte_langkabel
2014-07-16 13:48:40 +02:00
parent 810ed7c064
commit 886171cb2a
8 changed files with 78 additions and 6 deletions
-6
View File
@@ -22,12 +22,6 @@ ComponentManager::~ComponentManager()
void ComponentManager::setup()
{
std::shared_ptr<Component> graphComponent = m_componentFactory->createGraphComponent();
GraphView* graphView = graphComponent->getView<GraphView>();
/*std::weak_ptr<GraphNode> node0 = graphView->addNode(Vec2i(-50, -50), "foo");
graphView->addEdge(node0, graphView->addNode(Vec2i(100, 100), "bar"));
graphView->addEdge(node0, graphView->addNode(Vec2i(50, -50), "war production co-ordinating commitee"));*/
m_components.push_back(graphComponent);
std::shared_ptr<Component> codeComponent = m_componentFactory->createCodeComponent();