diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-03-05 00:35:15 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-03-05 01:04:07 +0100 |
commit | a6f0d2ea7d8eb359e7d9ca7b5aac91ffe9d140ec (patch) | |
tree | aab5ff97d57e57ea675e27adbf80449939cedebe /src/ui | |
parent | Avoid some duplicate property queries (diff) | |
download | nheko-a6f0d2ea7d8eb359e7d9ca7b5aac91ffe9d140ec.tar.xz |
Update license headers
Diffstat (limited to 'src/ui')
48 files changed, 192 insertions, 48 deletions
diff --git a/src/ui/Avatar.cpp b/src/ui/Avatar.cpp index 0d1bb924..53e72618 100644 --- a/src/ui/Avatar.cpp +++ b/src/ui/Avatar.cpp @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #include <QPainter> #include <QPainterPath> #include <QSettings> diff --git a/src/ui/Avatar.h b/src/ui/Avatar.h index 229a980d..bbf05be3 100644 --- a/src/ui/Avatar.h +++ b/src/ui/Avatar.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #pragma once #include <QImage> diff --git a/src/ui/Badge.cpp b/src/ui/Badge.cpp index 6701f9b7..66210d06 100644 --- a/src/ui/Badge.cpp +++ b/src/ui/Badge.cpp @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #include <QPainter> #include "Badge.h" diff --git a/src/ui/Badge.h b/src/ui/Badge.h index 748b56fd..98e16873 100644 --- a/src/ui/Badge.h +++ b/src/ui/Badge.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #pragma once #include <QColor> diff --git a/src/ui/DropShadow.cpp b/src/ui/DropShadow.cpp index d437975c..a413e3f7 100644 --- a/src/ui/DropShadow.cpp +++ b/src/ui/DropShadow.cpp @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #include "DropShadow.h" #include <QLinearGradient> diff --git a/src/ui/DropShadow.h b/src/ui/DropShadow.h index 6997e1a0..4ace4731 100644 --- a/src/ui/DropShadow.h +++ b/src/ui/DropShadow.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #pragma once #include <QColor> diff --git a/src/ui/FlatButton.cpp b/src/ui/FlatButton.cpp index 6660c58d..c036401b 100644 --- a/src/ui/FlatButton.cpp +++ b/src/ui/FlatButton.cpp @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #include <QEventTransition> #include <QFontDatabase> #include <QIcon> diff --git a/src/ui/FlatButton.h b/src/ui/FlatButton.h index 3749a0d9..c79945b7 100644 --- a/src/ui/FlatButton.h +++ b/src/ui/FlatButton.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #pragma once #include <QPushButton> diff --git a/src/ui/FloatingButton.cpp b/src/ui/FloatingButton.cpp index f3a09ccd..95b6ae1d 100644 --- a/src/ui/FloatingButton.cpp +++ b/src/ui/FloatingButton.cpp @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #include <QPainter> #include <QPainterPath> diff --git a/src/ui/FloatingButton.h b/src/ui/FloatingButton.h index 91e99ebb..b59b3854 100644 --- a/src/ui/FloatingButton.h +++ b/src/ui/FloatingButton.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #pragma once #include "RaisedButton.h" diff --git a/src/ui/InfoMessage.cpp b/src/ui/InfoMessage.cpp index 0b69564d..fb3b306a 100644 --- a/src/ui/InfoMessage.cpp +++ b/src/ui/InfoMessage.cpp @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #include "InfoMessage.h" #include "Config.h" diff --git a/src/ui/InfoMessage.h b/src/ui/InfoMessage.h index f8f457e3..cc0c57dc 100644 --- a/src/ui/InfoMessage.h +++ b/src/ui/InfoMessage.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #pragma once #include <QColor> diff --git a/src/ui/Label.cpp b/src/ui/Label.cpp index 8bd8c54e..2e8f8e1d 100644 --- a/src/ui/Label.cpp +++ b/src/ui/Label.cpp @@ -1,19 +1,7 @@ -/* - * nheko Copyright (C) 2017 Konstantinos Sideris <siderisk@auth.gr> - * - * 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 <http://www.gnu.org/licenses/>. - */ +// SPDX-FileCopyrightText: 2017 Konstantinos Sideris <siderisk@auth.gr> +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later #include "Label.h" #include <QMouseEvent> diff --git a/src/ui/Label.h b/src/ui/Label.h index 09cf27d7..a3eb511b 100644 --- a/src/ui/Label.h +++ b/src/ui/Label.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #pragma once #include <QLabel> diff --git a/src/ui/LoadingIndicator.cpp b/src/ui/LoadingIndicator.cpp index d2b1240d..fb3c761c 100644 --- a/src/ui/LoadingIndicator.cpp +++ b/src/ui/LoadingIndicator.cpp @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #include "LoadingIndicator.h" #include <QPaintEvent> diff --git a/src/ui/LoadingIndicator.h b/src/ui/LoadingIndicator.h index 678ef611..ba56b449 100644 --- a/src/ui/LoadingIndicator.h +++ b/src/ui/LoadingIndicator.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #pragma once #include <QColor> diff --git a/src/ui/Menu.h b/src/ui/Menu.h index d0427851..fd2946dd 100644 --- a/src/ui/Menu.h +++ b/src/ui/Menu.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #pragma once #include <QMenu> diff --git a/src/ui/NhekoCursorShape.cpp b/src/ui/NhekoCursorShape.cpp index 06b0a321..b36eedbd 100644 --- a/src/ui/NhekoCursorShape.cpp +++ b/src/ui/NhekoCursorShape.cpp @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #include "NhekoCursorShape.h" #include <QCursor> diff --git a/src/ui/NhekoCursorShape.h b/src/ui/NhekoCursorShape.h index 2eab5e42..6f6a2b82 100644 --- a/src/ui/NhekoCursorShape.h +++ b/src/ui/NhekoCursorShape.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #pragma once // see diff --git a/src/ui/NhekoDropArea.cpp b/src/ui/NhekoDropArea.cpp index 14b71524..54f48d3c 100644 --- a/src/ui/NhekoDropArea.cpp +++ b/src/ui/NhekoDropArea.cpp @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #include "NhekoDropArea.h" #include <QMimeData> diff --git a/src/ui/NhekoDropArea.h b/src/ui/NhekoDropArea.h index b03620f2..9fbf1737 100644 --- a/src/ui/NhekoDropArea.h +++ b/src/ui/NhekoDropArea.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #include <QQuickItem> class NhekoDropArea : public QQuickItem diff --git a/src/ui/OverlayModal.cpp b/src/ui/OverlayModal.cpp index abd1827a..f5f28732 100644 --- a/src/ui/OverlayModal.cpp +++ b/src/ui/OverlayModal.cpp @@ -1,19 +1,7 @@ -/* - * nheko Copyright (C) 2017 Konstantinos Sideris <siderisk@auth.gr> - * - * 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 <http://www.gnu.org/licenses/>. - */ +// SPDX-FileCopyrightText: 2017 Konstantinos Sideris <siderisk@auth.gr> +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later #include <QPainter> #include <QVBoxLayout> diff --git a/src/ui/OverlayModal.h b/src/ui/OverlayModal.h index e1fe8ec0..005614fa 100644 --- a/src/ui/OverlayModal.h +++ b/src/ui/OverlayModal.h @@ -1,19 +1,7 @@ -/* - * nheko Copyright (C) 2017 Konstantinos Sideris <siderisk@auth.gr> - * - * 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 <http://www.gnu.org/licenses/>. - */ +// SPDX-FileCopyrightText: 2017 Konstantinos Sideris <siderisk@auth.gr> +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later #pragma once diff --git a/src/ui/OverlayWidget.cpp b/src/ui/OverlayWidget.cpp index a32d86b6..c8c95581 100644 --- a/src/ui/OverlayWidget.cpp +++ b/src/ui/OverlayWidget.cpp @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #include "OverlayWidget.h" #include <QPainter> diff --git a/src/ui/OverlayWidget.h b/src/ui/OverlayWidget.h index ed3ef52d..05bb8696 100644 --- a/src/ui/OverlayWidget.h +++ b/src/ui/OverlayWidget.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #pragma once #include <QEvent> diff --git a/src/ui/Painter.h b/src/ui/Painter.h index c69dca95..3353f0c7 100644 --- a/src/ui/Painter.h +++ b/src/ui/Painter.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #pragma once #include <QFontMetrics> diff --git a/src/ui/RaisedButton.cpp b/src/ui/RaisedButton.cpp index c519f84f..563cb8e5 100644 --- a/src/ui/RaisedButton.cpp +++ b/src/ui/RaisedButton.cpp @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #include <QEventTransition> #include <QPropertyAnimation> diff --git a/src/ui/RaisedButton.h b/src/ui/RaisedButton.h index 47ef1acd..dcb579bb 100644 --- a/src/ui/RaisedButton.h +++ b/src/ui/RaisedButton.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #pragma once #include <QGraphicsDropShadowEffect> diff --git a/src/ui/Ripple.cpp b/src/ui/Ripple.cpp index ef8a62dd..f0455f0b 100644 --- a/src/ui/Ripple.cpp +++ b/src/ui/Ripple.cpp @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #include "Ripple.h" #include "RippleOverlay.h" diff --git a/src/ui/Ripple.h b/src/ui/Ripple.h index 3701fb6c..2ad42b9e 100644 --- a/src/ui/Ripple.h +++ b/src/ui/Ripple.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #pragma once #include <QBrush> diff --git a/src/ui/RippleOverlay.cpp b/src/ui/RippleOverlay.cpp index 20e98c0f..00915deb 100644 --- a/src/ui/RippleOverlay.cpp +++ b/src/ui/RippleOverlay.cpp @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #include <QPainter> #include "Ripple.h" diff --git a/src/ui/RippleOverlay.h b/src/ui/RippleOverlay.h index 5d12aff7..7ae3e4f1 100644 --- a/src/ui/RippleOverlay.h +++ b/src/ui/RippleOverlay.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #pragma once #include <QPainterPath> diff --git a/src/ui/RoomSettings.cpp b/src/ui/RoomSettings.cpp index a264c78b..cb82cc4e 100644 --- a/src/ui/RoomSettings.cpp +++ b/src/ui/RoomSettings.cpp @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #include "RoomSettings.h" #include <QApplication> diff --git a/src/ui/RoomSettings.h b/src/ui/RoomSettings.h index 25c6e588..367f3111 100644 --- a/src/ui/RoomSettings.h +++ b/src/ui/RoomSettings.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #pragma once #include <QLabel> diff --git a/src/ui/SnackBar.cpp b/src/ui/SnackBar.cpp index 51a0ff38..03609802 100644 --- a/src/ui/SnackBar.cpp +++ b/src/ui/SnackBar.cpp @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #include <QPainter> #include <tweeny.h> diff --git a/src/ui/SnackBar.h b/src/ui/SnackBar.h index 15cbf626..5459159e 100644 --- a/src/ui/SnackBar.h +++ b/src/ui/SnackBar.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #pragma once #include <QCoreApplication> diff --git a/src/ui/TextField.cpp b/src/ui/TextField.cpp index 055fe73b..7d015e89 100644 --- a/src/ui/TextField.cpp +++ b/src/ui/TextField.cpp @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #include "TextField.h" #include <QCoreApplication> diff --git a/src/ui/TextField.h b/src/ui/TextField.h index 01fd5782..ac4c396e 100644 --- a/src/ui/TextField.h +++ b/src/ui/TextField.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #pragma once #include <QColor> diff --git a/src/ui/TextLabel.cpp b/src/ui/TextLabel.cpp index 8ea2bb54..3568e15c 100644 --- a/src/ui/TextLabel.cpp +++ b/src/ui/TextLabel.cpp @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #include "ui/TextLabel.h" #include <QAbstractTextDocumentLayout> diff --git a/src/ui/TextLabel.h b/src/ui/TextLabel.h index 56778dcc..bc095823 100644 --- a/src/ui/TextLabel.h +++ b/src/ui/TextLabel.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #pragma once #include <QSize> diff --git a/src/ui/Theme.cpp b/src/ui/Theme.cpp index 7209864a..4341bd63 100644 --- a/src/ui/Theme.cpp +++ b/src/ui/Theme.cpp @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #include <QDebug> #include "Theme.h" diff --git a/src/ui/Theme.h b/src/ui/Theme.h index 34971280..3243c076 100644 --- a/src/ui/Theme.h +++ b/src/ui/Theme.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #pragma once #include <QColor> diff --git a/src/ui/ThemeManager.cpp b/src/ui/ThemeManager.cpp index 7baed1f3..834f5083 100644 --- a/src/ui/ThemeManager.cpp +++ b/src/ui/ThemeManager.cpp @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #include <QFontDatabase> #include "ThemeManager.h" diff --git a/src/ui/ThemeManager.h b/src/ui/ThemeManager.h index d35ff754..f2099730 100644 --- a/src/ui/ThemeManager.h +++ b/src/ui/ThemeManager.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #pragma once #include <QCommonStyle> diff --git a/src/ui/ToggleButton.cpp b/src/ui/ToggleButton.cpp index 40ea82ac..33bf8f92 100644 --- a/src/ui/ToggleButton.cpp +++ b/src/ui/ToggleButton.cpp @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #include <QColor> #include <QCoreApplication> #include <QEvent> diff --git a/src/ui/ToggleButton.h b/src/ui/ToggleButton.h index 14c3450b..2413b086 100644 --- a/src/ui/ToggleButton.h +++ b/src/ui/ToggleButton.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #pragma once #include <QAbstractButton> diff --git a/src/ui/UserProfile.cpp b/src/ui/UserProfile.cpp index 77f6ced5..dfb0c926 100644 --- a/src/ui/UserProfile.cpp +++ b/src/ui/UserProfile.cpp @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #include <QFileDialog> #include <QImageReader> #include <QMimeDatabase> diff --git a/src/ui/UserProfile.h b/src/ui/UserProfile.h index ffc5dcae..7c9c7495 100644 --- a/src/ui/UserProfile.h +++ b/src/ui/UserProfile.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + #pragma once #include <QAbstractListModel> |