/* Copyright 2021, Michele Santullo * This file is part of remarkable_tool. * * remarkable_tool is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Remarkable_tool is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with remarkable_tool. If not, see . */ #include "main_window.hpp" #include "notebook_tree_model.hpp" #include "config.h" #include namespace duck { MainWindow::MainWindow (Node* tree) : m_tree(new QTreeView) { setWindowTitle(APP_NAME); setCentralWidget(m_tree); auto* model = new NotebookTreeModel(tree, m_tree); m_tree->setModel(model); } MainWindow::~MainWindow() noexcept = default; } //namespace duck