diff --git a/apps/graph/graph/graph_controller.cpp b/apps/graph/graph/graph_controller.cpp index 0788ee909..012ae5c1b 100644 --- a/apps/graph/graph/graph_controller.cpp +++ b/apps/graph/graph/graph_controller.cpp @@ -1,12 +1,9 @@ #include "graph_controller.h" -GraphController::GraphController(KDColor c) : +GraphController::GraphController() : ViewController(), - //m_view(TextField(buffer, k_bufferSize)) - //m_view(SolidColorView(c)) m_view(GraphView()) { - //m_view.setParentResponder(this); } View * GraphController::view() { diff --git a/apps/graph/graph/graph_controller.h b/apps/graph/graph/graph_controller.h index 3456b23e2..c7f15d40d 100644 --- a/apps/graph/graph/graph_controller.h +++ b/apps/graph/graph/graph_controller.h @@ -6,7 +6,7 @@ class GraphController : public ViewController { public: - GraphController(KDColor c); + GraphController(); View * view() override; const char * title() const override; void setFocused(bool focused) override; diff --git a/apps/graph/graph_app.cpp b/apps/graph/graph_app.cpp index 607a2030b..3cd80d9be 100644 --- a/apps/graph/graph_app.cpp +++ b/apps/graph/graph_app.cpp @@ -2,9 +2,9 @@ GraphApp::GraphApp() : App(), - m_graphViewController(GraphController(KDColorWhite)), - m_listViewController(ListController()), - m_tabViewController(&m_graphViewController, &m_listViewController) + m_listController(ListController()), + m_graphController(GraphController()), + m_tabViewController(&m_listController, &m_graphController) { } diff --git a/apps/graph/graph_app.h b/apps/graph/graph_app.h index b7c2e5e9b..a23efd5d1 100644 --- a/apps/graph/graph_app.h +++ b/apps/graph/graph_app.h @@ -11,8 +11,8 @@ public: protected: ViewController * rootViewController() override; private: - GraphController m_graphViewController; - ListController m_listViewController; + ListController m_listController; + GraphController m_graphController; TabViewController m_tabViewController; };