From e4d22af2a12e30feaf29aaadcf5d6ba2aee0ec7c Mon Sep 17 00:00:00 2001 From: mosfet80 Date: Sat, 17 Feb 2024 04:38:42 +0100 Subject: [PATCH] Gui: remove ProjectView (#12410) This class is not used anywhere, remove it. --- src/Gui/CMakeLists.txt | 2 -- src/Gui/ComboView.h | 1 - src/Gui/ProjectView.cpp | 43 -------------------------------- src/Gui/ProjectView.h | 55 ----------------------------------------- 4 files changed, 101 deletions(-) delete mode 100644 src/Gui/ProjectView.cpp delete mode 100644 src/Gui/ProjectView.h diff --git a/src/Gui/CMakeLists.txt b/src/Gui/CMakeLists.txt index d4800785ee..400c7c9efc 100644 --- a/src/Gui/CMakeLists.txt +++ b/src/Gui/CMakeLists.txt @@ -634,7 +634,6 @@ SET(Dock_Windows_CPP_SRCS ToolBox.cpp Tree.cpp TreeView.cpp - ProjectView.cpp DAGView/DAGView.cpp DAGView/DAGModel.cpp DAGView/DAGRectItem.cpp @@ -650,7 +649,6 @@ SET(Dock_Windows_HPP_SRCS ToolBox.h Tree.h TreeView.h - ProjectView.h DAGView/DAGView.h DAGView/DAGModel.h DAGView/DAGRectItem.h diff --git a/src/Gui/ComboView.h b/src/Gui/ComboView.h index 7ef119fe6c..b5b0072b23 100644 --- a/src/Gui/ComboView.h +++ b/src/Gui/ComboView.h @@ -36,7 +36,6 @@ namespace App { namespace Gui { class TreeWidget; class PropertyView; - class ProjectWidget; class TreePanel; namespace PropertyEditor { class EditableListView; diff --git a/src/Gui/ProjectView.cpp b/src/Gui/ProjectView.cpp deleted file mode 100644 index c13d6544a9..0000000000 --- a/src/Gui/ProjectView.cpp +++ /dev/null @@ -1,43 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2012 Jürgen Riegel * - * * - * This file is part of the FreeCAD CAx development system. * - * * - * This library is free software; you can redistribute it and/or * - * modify it under the terms of the GNU Library General Public * - * License as published by the Free Software Foundation; either * - * version 2 of the License, or (at your option) any later version. * - * * - * This library 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 Library General Public License for more details. * - * * - * You should have received a copy of the GNU Library General Public * - * License along with this library; see the file COPYING.LIB. If not, * - * write to the Free Software Foundation, Inc., 59 Temple Place, * - * Suite 330, Boston, MA 02111-1307, USA * - * * - ***************************************************************************/ - -#include "PreCompiled.h" - -#include - -#include "ProjectView.h" - - -using namespace Gui; - - -/* TRANSLATOR Gui::ProjectWidget */ -ProjectWidget::ProjectWidget(QWidget* parent) - : QTreeView(parent) -{ - fileModel = new QFileSystemModel(this); - setModel(fileModel); -} - -ProjectWidget::~ProjectWidget() = default; - -#include "moc_ProjectView.cpp" diff --git a/src/Gui/ProjectView.h b/src/Gui/ProjectView.h deleted file mode 100644 index f41a5f1dca..0000000000 --- a/src/Gui/ProjectView.h +++ /dev/null @@ -1,55 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2012 Jürgen Riegel * - * * - * This file is part of the FreeCAD CAx development system. * - * * - * This library is free software; you can redistribute it and/or * - * modify it under the terms of the GNU Library General Public * - * License as published by the Free Software Foundation; either * - * version 2 of the License, or (at your option) any later version. * - * * - * This library 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 Library General Public License for more details. * - * * - * You should have received a copy of the GNU Library General Public * - * License along with this library; see the file COPYING.LIB. If not, * - * write to the Free Software Foundation, Inc., 59 Temple Place, * - * Suite 330, Boston, MA 02111-1307, USA * - * * - ***************************************************************************/ - -#ifndef GUI_ProjectView_H -#define GUI_ProjectView_H - -#include - - -class QFileSystemModel; - -namespace Gui { - - -/** Tree view that allows drag & drop of document objects. - * @author Werner Mayer - */ -class ProjectWidget : public QTreeView -{ - Q_OBJECT - -public: - explicit ProjectWidget(QWidget* parent=nullptr); - ~ProjectWidget() override; - -private: - QFileSystemModel *fileModel; - -}; - - -} - - -#endif // GUI_ProjectView_H -