From e31f76b86e04bc06f6ca958df2fbfb059dfdcd06 Mon Sep 17 00:00:00 2001 From: revenmartin Date: Mon, 24 May 2021 19:01:26 +0800 Subject: [PATCH] Update copyright --- desktopiconprovider.cpp | 4 ---- dialogs/createfolderdialog.cpp | 19 +++++++++++++++++++ dialogs/createfolderdialog.h | 19 +++++++++++++++++++ helper/pathhistory.cpp | 19 +++++++++++++++++++ helper/pathhistory.h | 19 +++++++++++++++++++ helper/thumbnailer.cpp | 19 +++++++++++++++++++ helper/thumbnailer.h | 19 +++++++++++++++++++ qml/Controls/IconButton.qml | 19 +++++++++++++++++++ qml/Desktop/main.qml | 19 +++++++++++++++++++ qml/Dialogs/CreateFolderDialog.qml | 19 +++++++++++++++++++ qml/Dialogs/EmptyTrashDialog.qml | 19 +++++++++++++++++++ qml/Dialogs/PropertiesDialog.qml | 19 +++++++++++++++++++ qml/FolderGridItem.qml | 19 +++++++++++++++++++ qml/FolderGridView.qml | 19 +++++++++++++++++++ qml/FolderListItem.qml | 19 +++++++++++++++++++ qml/FolderListView.qml | 19 +++++++++++++++++++ qml/FolderPage.qml | 19 +++++++++++++++++++ qml/GlobalSettings.qml | 19 +++++++++++++++++++ qml/OptionsMenu.qml | 19 +++++++++++++++++++ qml/PathBar.qml | 19 +++++++++++++++++++ qml/SideBar.qml | 19 +++++++++++++++++++ qml/main.qml | 19 +++++++++++++++++++ 22 files changed, 399 insertions(+), 4 deletions(-) diff --git a/desktopiconprovider.cpp b/desktopiconprovider.cpp index 12fced0..4de8c5e 100644 --- a/desktopiconprovider.cpp +++ b/desktopiconprovider.cpp @@ -29,22 +29,18 @@ DesktopIconProvider::DesktopIconProvider() QPixmap DesktopIconProvider::requestPixmap(const QString &id, QSize *realSize, const QSize &requestedSize) { - // Sanitize requested size QSize size(requestedSize); if (size.width() < 1) size.setWidth(1); if (size.height() < 1) size.setHeight(1); - // Return real size if (realSize) *realSize = size; - // Is it a path? if (id.startsWith(QLatin1Char('/'))) return QPixmap(id).scaled(size); - // Return icon from theme or fallback to a generic icon QIcon icon = QIcon::fromTheme(id); if (icon.isNull()) icon = QIcon::fromTheme(QLatin1String("application-x-desktop")); diff --git a/dialogs/createfolderdialog.cpp b/dialogs/createfolderdialog.cpp index 9caad21..eea494b 100644 --- a/dialogs/createfolderdialog.cpp +++ b/dialogs/createfolderdialog.cpp @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2021 CutefishOS Team. + * + * Author: revenmartin + * + * 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 + * 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 . + */ + #include "createfolderdialog.h" #include #include diff --git a/dialogs/createfolderdialog.h b/dialogs/createfolderdialog.h index 8676e45..7fb74f5 100644 --- a/dialogs/createfolderdialog.h +++ b/dialogs/createfolderdialog.h @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2021 CutefishOS Team. + * + * Author: revenmartin + * + * 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 + * 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 . + */ + #ifndef CREATEFOLDERDIALOG_H #define CREATEFOLDERDIALOG_H diff --git a/helper/pathhistory.cpp b/helper/pathhistory.cpp index 377611b..d4801e8 100644 --- a/helper/pathhistory.cpp +++ b/helper/pathhistory.cpp @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2021 CutefishOS Team. + * + * Author: revenmartin + * + * 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 + * 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 . + */ + #include "pathhistory.h" #include diff --git a/helper/pathhistory.h b/helper/pathhistory.h index c6297d4..a129bdb 100644 --- a/helper/pathhistory.h +++ b/helper/pathhistory.h @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2021 CutefishOS Team. + * + * Author: revenmartin + * + * 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 + * 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 . + */ + #ifndef PATHHISTORY_H #define PATHHISTORY_H diff --git a/helper/thumbnailer.cpp b/helper/thumbnailer.cpp index 1d18adf..b3ae614 100644 --- a/helper/thumbnailer.cpp +++ b/helper/thumbnailer.cpp @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2021 CutefishOS Team. + * + * Author: revenmartin + * + * 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 + * 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 . + */ + #include "thumbnailer.h" #include diff --git a/helper/thumbnailer.h b/helper/thumbnailer.h index 5ce5a63..cb9b100 100644 --- a/helper/thumbnailer.h +++ b/helper/thumbnailer.h @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2021 CutefishOS Team. + * + * Author: revenmartin + * + * 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 + * 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 . + */ + #ifndef THUMBNAILER_H #define THUMBNAILER_H diff --git a/qml/Controls/IconButton.qml b/qml/Controls/IconButton.qml index 7786830..537f722 100644 --- a/qml/Controls/IconButton.qml +++ b/qml/Controls/IconButton.qml @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2021 CutefishOS Team. + * + * Author: revenmartin + * + * 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 + * 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 . + */ + import QtQuick 2.12 import FishUI 1.0 as FishUI diff --git a/qml/Desktop/main.qml b/qml/Desktop/main.qml index 6470e1e..2d3ffcd 100644 --- a/qml/Desktop/main.qml +++ b/qml/Desktop/main.qml @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2021 CutefishOS Team. + * + * Author: revenmartin + * + * 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 + * 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 . + */ + import QtQuick 2.12 import QtQuick.Controls 2.12 import QtQuick.Layouts 1.12 diff --git a/qml/Dialogs/CreateFolderDialog.qml b/qml/Dialogs/CreateFolderDialog.qml index b91ea91..976cb6b 100644 --- a/qml/Dialogs/CreateFolderDialog.qml +++ b/qml/Dialogs/CreateFolderDialog.qml @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2021 CutefishOS Team. + * + * Author: revenmartin + * + * 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 + * 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 . + */ + import QtQuick 2.12 import QtQuick.Controls 2.12 import QtQuick.Window 2.12 diff --git a/qml/Dialogs/EmptyTrashDialog.qml b/qml/Dialogs/EmptyTrashDialog.qml index 2080d28..dd875d5 100644 --- a/qml/Dialogs/EmptyTrashDialog.qml +++ b/qml/Dialogs/EmptyTrashDialog.qml @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2021 CutefishOS Team. + * + * Author: revenmartin + * + * 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 + * 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 . + */ + import QtQuick 2.12 import QtQuick.Controls 2.12 import QtQuick.Window 2.12 diff --git a/qml/Dialogs/PropertiesDialog.qml b/qml/Dialogs/PropertiesDialog.qml index f831ee6..557b6aa 100644 --- a/qml/Dialogs/PropertiesDialog.qml +++ b/qml/Dialogs/PropertiesDialog.qml @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2021 CutefishOS Team. + * + * Author: revenmartin + * + * 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 + * 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 . + */ + import QtQuick 2.12 import QtQuick.Window 2.12 import QtQuick.Controls 2.12 diff --git a/qml/FolderGridItem.qml b/qml/FolderGridItem.qml index eb0369c..f860a7e 100644 --- a/qml/FolderGridItem.qml +++ b/qml/FolderGridItem.qml @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2021 CutefishOS Team. + * + * Author: revenmartin + * + * 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 + * 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 . + */ + import QtQuick 2.12 import QtQuick.Layouts 1.12 import QtQuick.Controls 2.12 diff --git a/qml/FolderGridView.qml b/qml/FolderGridView.qml index 8cb121a..00094ba 100644 --- a/qml/FolderGridView.qml +++ b/qml/FolderGridView.qml @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2021 CutefishOS Team. + * + * Author: revenmartin + * + * 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 + * 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 . + */ + import QtQuick 2.12 import QtQuick.Controls 2.12 import QtQuick.Layouts 1.12 diff --git a/qml/FolderListItem.qml b/qml/FolderListItem.qml index abd6e7d..237276f 100644 --- a/qml/FolderListItem.qml +++ b/qml/FolderListItem.qml @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2021 CutefishOS Team. + * + * Author: revenmartin + * + * 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 + * 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 . + */ + import QtQuick 2.12 import QtQuick.Controls 2.12 import QtQuick.Layouts 1.12 diff --git a/qml/FolderListView.qml b/qml/FolderListView.qml index 7270aef..0e01ce8 100644 --- a/qml/FolderListView.qml +++ b/qml/FolderListView.qml @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2021 CutefishOS Team. + * + * Author: revenmartin + * + * 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 + * 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 . + */ + import QtQuick 2.12 import QtQuick.Controls 2.12 import QtQuick.Layouts 1.12 diff --git a/qml/FolderPage.qml b/qml/FolderPage.qml index 1089ff3..6f68887 100644 --- a/qml/FolderPage.qml +++ b/qml/FolderPage.qml @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2021 CutefishOS Team. + * + * Author: revenmartin + * + * 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 + * 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 . + */ + import QtQuick 2.12 import QtQuick.Controls 2.12 import QtQuick.Layouts 1.12 diff --git a/qml/GlobalSettings.qml b/qml/GlobalSettings.qml index 6d43fb8..fbf6ef3 100644 --- a/qml/GlobalSettings.qml +++ b/qml/GlobalSettings.qml @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2021 CutefishOS Team. + * + * Author: revenmartin + * + * 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 + * 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 . + */ + import QtQuick 2.12 import Qt.labs.settings 1.0 diff --git a/qml/OptionsMenu.qml b/qml/OptionsMenu.qml index 3103cfa..971bc44 100644 --- a/qml/OptionsMenu.qml +++ b/qml/OptionsMenu.qml @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2021 CutefishOS Team. + * + * Author: revenmartin + * + * 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 + * 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 . + */ + import QtQuick 2.12 import QtQuick.Layouts 1.12 import QtQuick.Controls 2.12 diff --git a/qml/PathBar.qml b/qml/PathBar.qml index f571302..bfcc70e 100644 --- a/qml/PathBar.qml +++ b/qml/PathBar.qml @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2021 CutefishOS Team. + * + * Author: revenmartin + * + * 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 + * 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 . + */ + import QtQuick 2.12 import QtQuick.Controls 2.12 import QtGraphicalEffects 1.0 diff --git a/qml/SideBar.qml b/qml/SideBar.qml index 01bc174..05dd117 100644 --- a/qml/SideBar.qml +++ b/qml/SideBar.qml @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2021 CutefishOS Team. + * + * Author: revenmartin + * + * 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 + * 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 . + */ + import QtQuick 2.12 import QtQuick.Layouts 1.12 import QtQuick.Controls 2.12 diff --git a/qml/main.qml b/qml/main.qml index 8f85db0..41d4095 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -1,3 +1,22 @@ +/* + * Copyright (C) 2021 CutefishOS Team. + * + * Author: revenmartin + * + * 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 + * 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 . + */ + import QtQuick 2.12 import QtQuick.Controls 2.12 import QtQuick.Layouts 1.12