From e3dcd4de573ae70631491d6198be39f33de39c21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole-Andr=C3=A9=20Rodlie?= Date: Wed, 13 Mar 2024 22:30:44 +0100 Subject: [PATCH] Removed namedcontainer Not used by anything --- src/app/CMakeLists.txt | 2 -- src/app/GUI/fillstrokesettings.cpp | 1 - src/app/GUI/namedcontainer.cpp | 41 ---------------------------- src/app/GUI/namedcontainer.h | 43 ------------------------------ 4 files changed, 87 deletions(-) delete mode 100755 src/app/GUI/namedcontainer.cpp delete mode 100755 src/app/GUI/namedcontainer.h diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt index bc9f0362a..0555ed133 100644 --- a/src/app/CMakeLists.txt +++ b/src/app/CMakeLists.txt @@ -269,7 +269,6 @@ set( #GUI/BrushWidgets/brushselectionwidget.cpp GUI/flowlayout.cpp GUI/ColorWidgets/colorwidgetshaders.cpp - GUI/namedcontainer.cpp #GUI/BrushWidgets/brushwidget.cpp GUI/Settings/labeledslider.cpp GUI/toolbox.cpp @@ -385,7 +384,6 @@ set( #GUI/BrushWidgets/brushselectionwidget.h GUI/flowlayout.h GUI/ColorWidgets/colorwidgetshaders.h - GUI/namedcontainer.h #GUI/BrushWidgets/brushwidget.h boxtypemenu.h GUI/Settings/labeledslider.h diff --git a/src/app/GUI/fillstrokesettings.cpp b/src/app/GUI/fillstrokesettings.cpp index eda481911..074226557 100755 --- a/src/app/GUI/fillstrokesettings.cpp +++ b/src/app/GUI/fillstrokesettings.cpp @@ -33,7 +33,6 @@ #include "widgets/actionbutton.h" #include "qdoubleslider.h" //#include "segment1deditor.h" -#include "namedcontainer.h" #include #include "paintsettingsapplier.h" #include "Animators/gradient.h" diff --git a/src/app/GUI/namedcontainer.cpp b/src/app/GUI/namedcontainer.cpp deleted file mode 100755 index 804c1e724..000000000 --- a/src/app/GUI/namedcontainer.cpp +++ /dev/null @@ -1,41 +0,0 @@ -/* -# -# Friction - https://friction.graphics -# -# Copyright (c) Friction contributors -# -# This program 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. -# -# This program 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 this program. If not, see . -# -# See 'README.md' for more information. -# -*/ - -// Fork of enve - Copyright (C) 2016-2020 Maurycy Liebner - -#include "namedcontainer.h" - -NamedContainer::NamedContainer(const QString& name, QWidget *widget, - const bool vertical, - QWidget *parent) : QWidget(parent) { - mNameLabel = new QLabel("
" + name + "
", this); - mNameLabel->setObjectName("dockLabel"); - mNameLabel->setSizePolicy(QSizePolicy::MinimumExpanding, - QSizePolicy::Fixed); - if(vertical) mLayout = new QVBoxLayout(this); - else mLayout = new QHBoxLayout(this); - mLayout->setSpacing(0); - mLayout->addWidget(mNameLabel); - mLayout->addWidget(widget); - setLayout(mLayout); -} diff --git a/src/app/GUI/namedcontainer.h b/src/app/GUI/namedcontainer.h deleted file mode 100755 index 39bc1fec0..000000000 --- a/src/app/GUI/namedcontainer.h +++ /dev/null @@ -1,43 +0,0 @@ -/* -# -# Friction - https://friction.graphics -# -# Copyright (c) Friction contributors -# -# This program 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. -# -# This program 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 this program. If not, see . -# -# See 'README.md' for more information. -# -*/ - -// Fork of enve - Copyright (C) 2016-2020 Maurycy Liebner - -#ifndef NAMEDCONTAINER_H -#define NAMEDCONTAINER_H - -#include -#include -#include - -class NamedContainer : public QWidget { -public: - explicit NamedContainer(const QString &name, - QWidget* widget, const bool vertical, - QWidget *parent = nullptr); -private: - QLabel* mNameLabel; - QBoxLayout* mLayout; -}; - -#endif // NAMEDCONTAINER_H