From 0f6474532b778438506bfc77a7f6a85813fe108e Mon Sep 17 00:00:00 2001 From: miruka Date: Sun, 7 Jul 2019 23:52:41 -0400 Subject: [PATCH] Add LGPL license headers --- TODO.md | 1 - src/main.cpp | 3 +++ src/python/__about__.py | 5 ++++- src/python/__init__.py | 3 +++ src/python/app.py | 3 +++ src/python/backend.py | 3 +++ src/python/events/__init__.py | 2 ++ src/python/events/app.py | 3 +++ src/python/events/event.py | 3 +++ src/python/events/rooms.py | 3 +++ src/python/events/users.py | 3 +++ src/python/html_filter.py | 5 +++-- src/python/matrix_client.py | 3 +++ src/qml/Base/HAvatar.qml | 3 +++ src/qml/Base/HButton.qml | 3 +++ src/qml/Base/HColumnLayout.qml | 3 +++ src/qml/Base/HIcon.qml | 3 +++ src/qml/Base/HImage.qml | 3 +++ src/qml/Base/HInterfaceBox.qml | 3 +++ src/qml/Base/HLabel.qml | 3 +++ src/qml/Base/HListModel.qml | 3 +++ src/qml/Base/HListView.qml | 3 +++ src/qml/Base/HNoticePage.qml | 3 +++ src/qml/Base/HNumberAnimation.qml | 3 +++ src/qml/Base/HRectangle.qml | 3 +++ src/qml/Base/HRichLabel.qml | 3 +++ src/qml/Base/HRoomAvatar.qml | 3 +++ src/qml/Base/HRowLayout.qml | 3 +++ src/qml/Base/HScalingBox.qml | 3 +++ src/qml/Base/HScrollableTextArea.qml | 3 +++ src/qml/Base/HSpacer.qml | 3 +++ src/qml/Base/HSplitView.qml | 3 +++ src/qml/Base/HTextField.qml | 3 +++ src/qml/Base/HUserAvatar.qml | 3 +++ src/qml/Chat/Banners/Banner.qml | 3 +++ src/qml/Chat/Banners/InviteBanner.qml | 3 +++ src/qml/Chat/Banners/LeftBanner.qml | 3 +++ src/qml/Chat/Banners/UnknownDevicesBanner.qml | 3 +++ src/qml/Chat/Chat.qml | 3 +++ src/qml/Chat/RoomHeader.qml | 3 +++ src/qml/Chat/RoomSidePane/MemberDelegate.qml | 3 +++ src/qml/Chat/RoomSidePane/MembersView.qml | 3 +++ src/qml/Chat/RoomSidePane/RoomSidePane.qml | 3 +++ src/qml/Chat/SendBox.qml | 3 +++ src/qml/Chat/Timeline/Daybreak.qml | 3 +++ src/qml/Chat/Timeline/EventContent.qml | 3 +++ src/qml/Chat/Timeline/EventDelegate.qml | 3 +++ src/qml/Chat/Timeline/EventList.qml | 3 +++ src/qml/Chat/TypingMembersBar.qml | 3 +++ src/qml/EventHandlers/app.js | 3 +++ src/qml/EventHandlers/includes.js | 3 +++ src/qml/EventHandlers/rooms.js | 3 +++ src/qml/EventHandlers/users.js | 3 +++ src/qml/LoadingScreen.qml | 3 +++ src/qml/Models/Accounts.qml | 3 +++ src/qml/Models/Devices.qml | 3 +++ src/qml/Models/RoomCategories.qml | 3 +++ src/qml/Models/Rooms.qml | 3 +++ src/qml/Models/Timelines.qml | 3 +++ src/qml/Models/Users.qml | 3 +++ src/qml/Pages/Default.qml | 3 +++ src/qml/Pages/RememberAccount.qml | 3 +++ src/qml/Pages/SignIn.qml | 3 +++ src/qml/Python.qml | 3 +++ src/qml/SidePane/AccountDelegate.qml | 3 +++ src/qml/SidePane/AccountList.qml | 3 +++ src/qml/SidePane/ExpandButton.qml | 3 +++ src/qml/SidePane/PaneToolBar.qml | 3 +++ src/qml/SidePane/RoomCategoriesList.qml | 3 +++ src/qml/SidePane/RoomCategoryDelegate.qml | 3 +++ src/qml/SidePane/RoomDelegate.qml | 3 +++ src/qml/SidePane/RoomList.qml | 3 +++ src/qml/SidePane/SidePane.qml | 3 +++ src/qml/Theme.qml | 3 +++ src/qml/UI.qml | 3 +++ src/qml/Window.qml | 3 +++ src/qml/utils.js | 3 +++ 77 files changed, 228 insertions(+), 4 deletions(-) diff --git a/TODO.md b/TODO.md index 0bc218ff..7809968b 100644 --- a/TODO.md +++ b/TODO.md @@ -1,7 +1,6 @@ - "rejoin" leftbanner button if room is public - daybreak color - html links color -- license headers - [debug mode](https://docs.python.org/3/library/asyncio-dev.html) - `pyotherside.atexit()` - way to put sidepane back to auto-sizing (snap) diff --git a/src/main.cpp b/src/main.cpp index 3c4f79fa..e483dd81 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + #include #include #include diff --git a/src/python/__about__.py b/src/python/__about__.py index f2f7b3c0..920fff39 100644 --- a/src/python/__about__.py +++ b/src/python/__about__.py @@ -1,3 +1,6 @@ +# Copyright 2019 miruka +# This file is part of harmonyqml, licensed under LGPLv3. + """""" __pkg_name__ = "harmonyqml" @@ -9,4 +12,4 @@ __status__ = "Development" __author__ = "miruka" __email__ = "miruka@disroot.org" -__license__ = "GPLv3" +__license__ = "LGPLv3" diff --git a/src/python/__init__.py b/src/python/__init__.py index 4a71a127..a3e33ed5 100644 --- a/src/python/__init__.py +++ b/src/python/__init__.py @@ -1 +1,4 @@ +# Copyright 2019 miruka +# This file is part of harmonyqml, licensed under LGPLv3. + from .app import APP diff --git a/src/python/app.py b/src/python/app.py index 1db25f6d..d94b773d 100644 --- a/src/python/app.py +++ b/src/python/app.py @@ -1,3 +1,6 @@ +# Copyright 2019 miruka +# This file is part of harmonyqml, licensed under LGPLv3. + import asyncio import signal from concurrent.futures import Future diff --git a/src/python/backend.py b/src/python/backend.py index 193887e1..64cade33 100644 --- a/src/python/backend.py +++ b/src/python/backend.py @@ -1,3 +1,6 @@ +# Copyright 2019 miruka +# This file is part of harmonyqml, licensed under LGPLv3. + import asyncio import json import random diff --git a/src/python/events/__init__.py b/src/python/events/__init__.py index e69de29b..fb5aa144 100644 --- a/src/python/events/__init__.py +++ b/src/python/events/__init__.py @@ -0,0 +1,2 @@ +# Copyright 2019 miruka +# This file is part of harmonyqml, licensed under LGPLv3. diff --git a/src/python/events/app.py b/src/python/events/app.py index b72a7bfd..298349a4 100644 --- a/src/python/events/app.py +++ b/src/python/events/app.py @@ -1,3 +1,6 @@ +# Copyright 2019 miruka +# This file is part of harmonyqml, licensed under LGPLv3. + from typing import Any from dataclasses import dataclass, field diff --git a/src/python/events/event.py b/src/python/events/event.py index 65208fca..03e9b4ea 100644 --- a/src/python/events/event.py +++ b/src/python/events/event.py @@ -1,3 +1,6 @@ +# Copyright 2019 miruka +# This file is part of harmonyqml, licensed under LGPLv3. + from enum import Enum from typing import Any diff --git a/src/python/events/rooms.py b/src/python/events/rooms.py index f95efd87..48e26970 100644 --- a/src/python/events/rooms.py +++ b/src/python/events/rooms.py @@ -1,3 +1,6 @@ +# Copyright 2019 miruka +# This file is part of harmonyqml, licensed under LGPLv3. + from datetime import datetime from enum import auto from typing import Any, Dict, List, Sequence, Type, Union diff --git a/src/python/events/users.py b/src/python/events/users.py index c7edf5ed..586cd6be 100644 --- a/src/python/events/users.py +++ b/src/python/events/users.py @@ -1,3 +1,6 @@ +# Copyright 2019 miruka +# This file is part of harmonyqml, licensed under LGPLv3. + from datetime import datetime from enum import Enum from typing import Optional diff --git a/src/python/html_filter.py b/src/python/html_filter.py index 2e9f3d7d..ecc2605b 100644 --- a/src/python/html_filter.py +++ b/src/python/html_filter.py @@ -1,5 +1,5 @@ # Copyright 2019 miruka -# This file is part of harmonyqml, licensed under GPLv3. +# This file is part of harmonyqml, licensed under LGPLv3. import re @@ -126,7 +126,8 @@ class HtmlFilter: return el - def _wrap_img_in_a(self, el: HtmlElement) -> HtmlElement: + @staticmethod + def _wrap_img_in_a(el: HtmlElement) -> HtmlElement: link = el.attrib.get("src", "") width = el.attrib.get("width", "256") height = el.attrib.get("height", "256") diff --git a/src/python/matrix_client.py b/src/python/matrix_client.py index 9295e00f..3c2d63c5 100644 --- a/src/python/matrix_client.py +++ b/src/python/matrix_client.py @@ -1,3 +1,6 @@ +# Copyright 2019 miruka +# This file is part of harmonyqml, licensed under LGPLv3. + import asyncio import html import inspect diff --git a/src/qml/Base/HAvatar.qml b/src/qml/Base/HAvatar.qml index c8b3f914..c8938909 100644 --- a/src/qml/Base/HAvatar.qml +++ b/src/qml/Base/HAvatar.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import "../Base" import "../utils.js" as Utils diff --git a/src/qml/Base/HButton.qml b/src/qml/Base/HButton.qml index 34e3d32b..06eb78c9 100644 --- a/src/qml/Base/HButton.qml +++ b/src/qml/Base/HButton.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Controls 2.2 import QtQuick.Layouts 1.3 diff --git a/src/qml/Base/HColumnLayout.qml b/src/qml/Base/HColumnLayout.qml index fefe2d93..ec1d68f7 100644 --- a/src/qml/Base/HColumnLayout.qml +++ b/src/qml/Base/HColumnLayout.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Controls 2.2 import QtQuick.Layouts 1.3 diff --git a/src/qml/Base/HIcon.qml b/src/qml/Base/HIcon.qml index e33a012e..b17a4684 100644 --- a/src/qml/Base/HIcon.qml +++ b/src/qml/Base/HIcon.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 HImage { diff --git a/src/qml/Base/HImage.qml b/src/qml/Base/HImage.qml index e66c7a87..7ad8541f 100644 --- a/src/qml/Base/HImage.qml +++ b/src/qml/Base/HImage.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 Image { diff --git a/src/qml/Base/HInterfaceBox.qml b/src/qml/Base/HInterfaceBox.qml index f6e71f30..01cf093a 100644 --- a/src/qml/Base/HInterfaceBox.qml +++ b/src/qml/Base/HInterfaceBox.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Layouts 1.3 diff --git a/src/qml/Base/HLabel.qml b/src/qml/Base/HLabel.qml index c460a119..a1b60fb5 100644 --- a/src/qml/Base/HLabel.qml +++ b/src/qml/Base/HLabel.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick.Controls 2.2 Label { diff --git a/src/qml/Base/HListModel.qml b/src/qml/Base/HListModel.qml index ae51dd12..269187fe 100644 --- a/src/qml/Base/HListModel.qml +++ b/src/qml/Base/HListModel.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import SortFilterProxyModel 0.2 diff --git a/src/qml/Base/HListView.qml b/src/qml/Base/HListView.qml index 221151c2..787d5bf7 100644 --- a/src/qml/Base/HListView.qml +++ b/src/qml/Base/HListView.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 ListView { diff --git a/src/qml/Base/HNoticePage.qml b/src/qml/Base/HNoticePage.qml index 6de7544d..407e2ee6 100644 --- a/src/qml/Base/HNoticePage.qml +++ b/src/qml/Base/HNoticePage.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Layouts 1.3 import "../Base" diff --git a/src/qml/Base/HNumberAnimation.qml b/src/qml/Base/HNumberAnimation.qml index 90b01bc8..08ed5316 100644 --- a/src/qml/Base/HNumberAnimation.qml +++ b/src/qml/Base/HNumberAnimation.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 NumberAnimation { diff --git a/src/qml/Base/HRectangle.qml b/src/qml/Base/HRectangle.qml index ccf58ce8..3788902f 100644 --- a/src/qml/Base/HRectangle.qml +++ b/src/qml/Base/HRectangle.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 Rectangle { diff --git a/src/qml/Base/HRichLabel.qml b/src/qml/Base/HRichLabel.qml index 4c85b0b3..31f3a523 100644 --- a/src/qml/Base/HRichLabel.qml +++ b/src/qml/Base/HRichLabel.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 HLabel { diff --git a/src/qml/Base/HRoomAvatar.qml b/src/qml/Base/HRoomAvatar.qml index 0c259368..0664a15a 100644 --- a/src/qml/Base/HRoomAvatar.qml +++ b/src/qml/Base/HRoomAvatar.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 HAvatar { diff --git a/src/qml/Base/HRowLayout.qml b/src/qml/Base/HRowLayout.qml index 5c5f7301..1b5c1c05 100644 --- a/src/qml/Base/HRowLayout.qml +++ b/src/qml/Base/HRowLayout.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Layouts 1.3 diff --git a/src/qml/Base/HScalingBox.qml b/src/qml/Base/HScalingBox.qml index ef23fe90..63af3993 100644 --- a/src/qml/Base/HScalingBox.qml +++ b/src/qml/Base/HScalingBox.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 HRectangle { diff --git a/src/qml/Base/HScrollableTextArea.qml b/src/qml/Base/HScrollableTextArea.qml index fe9e05de..f29dfc5d 100644 --- a/src/qml/Base/HScrollableTextArea.qml +++ b/src/qml/Base/HScrollableTextArea.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Controls 2.2 diff --git a/src/qml/Base/HSpacer.qml b/src/qml/Base/HSpacer.qml index b3ab15f2..31cdab4f 100644 --- a/src/qml/Base/HSpacer.qml +++ b/src/qml/Base/HSpacer.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Layouts 1.3 diff --git a/src/qml/Base/HSplitView.qml b/src/qml/Base/HSplitView.qml index aad71aed..09a6122b 100644 --- a/src/qml/Base/HSplitView.qml +++ b/src/qml/Base/HSplitView.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Controls 1.4 as Controls1 diff --git a/src/qml/Base/HTextField.qml b/src/qml/Base/HTextField.qml index 9904314d..4b901da8 100644 --- a/src/qml/Base/HTextField.qml +++ b/src/qml/Base/HTextField.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Controls 2.2 diff --git a/src/qml/Base/HUserAvatar.qml b/src/qml/Base/HUserAvatar.qml index 92308045..18fa3cd8 100644 --- a/src/qml/Base/HUserAvatar.qml +++ b/src/qml/Base/HUserAvatar.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 HAvatar { diff --git a/src/qml/Chat/Banners/Banner.qml b/src/qml/Chat/Banners/Banner.qml index 7e6cc8c4..2e7ed3b3 100644 --- a/src/qml/Chat/Banners/Banner.qml +++ b/src/qml/Chat/Banners/Banner.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Layouts 1.3 import "../../Base" diff --git a/src/qml/Chat/Banners/InviteBanner.qml b/src/qml/Chat/Banners/InviteBanner.qml index 9ed219ea..a30d14cc 100644 --- a/src/qml/Chat/Banners/InviteBanner.qml +++ b/src/qml/Chat/Banners/InviteBanner.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import "../../Base" import "../../utils.js" as Utils diff --git a/src/qml/Chat/Banners/LeftBanner.qml b/src/qml/Chat/Banners/LeftBanner.qml index 583e6cbf..cb4743b3 100644 --- a/src/qml/Chat/Banners/LeftBanner.qml +++ b/src/qml/Chat/Banners/LeftBanner.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import "../../Base" diff --git a/src/qml/Chat/Banners/UnknownDevicesBanner.qml b/src/qml/Chat/Banners/UnknownDevicesBanner.qml index 700cef23..3877a4c5 100644 --- a/src/qml/Chat/Banners/UnknownDevicesBanner.qml +++ b/src/qml/Chat/Banners/UnknownDevicesBanner.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import "../../Base" import "../utils.js" as ChatJS diff --git a/src/qml/Chat/Chat.qml b/src/qml/Chat/Chat.qml index 02abb78c..1e151ce3 100644 --- a/src/qml/Chat/Chat.qml +++ b/src/qml/Chat/Chat.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Layouts 1.3 import "../Base" diff --git a/src/qml/Chat/RoomHeader.qml b/src/qml/Chat/RoomHeader.qml index 379cd1ce..a8beef67 100644 --- a/src/qml/Chat/RoomHeader.qml +++ b/src/qml/Chat/RoomHeader.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Layouts 1.3 import "../Base" diff --git a/src/qml/Chat/RoomSidePane/MemberDelegate.qml b/src/qml/Chat/RoomSidePane/MemberDelegate.qml index ab15ff31..8695ed8d 100644 --- a/src/qml/Chat/RoomSidePane/MemberDelegate.qml +++ b/src/qml/Chat/RoomSidePane/MemberDelegate.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Layouts 1.3 import "../../Base" diff --git a/src/qml/Chat/RoomSidePane/MembersView.qml b/src/qml/Chat/RoomSidePane/MembersView.qml index 9740cb93..e8c5ffe5 100644 --- a/src/qml/Chat/RoomSidePane/MembersView.qml +++ b/src/qml/Chat/RoomSidePane/MembersView.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Layouts 1.3 import SortFilterProxyModel 0.2 diff --git a/src/qml/Chat/RoomSidePane/RoomSidePane.qml b/src/qml/Chat/RoomSidePane/RoomSidePane.qml index b5fcee7e..93df0312 100644 --- a/src/qml/Chat/RoomSidePane/RoomSidePane.qml +++ b/src/qml/Chat/RoomSidePane/RoomSidePane.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Layouts 1.3 import "../../Base" diff --git a/src/qml/Chat/SendBox.qml b/src/qml/Chat/SendBox.qml index 1eebf1c9..faf482dc 100644 --- a/src/qml/Chat/SendBox.qml +++ b/src/qml/Chat/SendBox.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Layouts 1.3 import "../Base" diff --git a/src/qml/Chat/Timeline/Daybreak.qml b/src/qml/Chat/Timeline/Daybreak.qml index bab00e56..1e68c705 100644 --- a/src/qml/Chat/Timeline/Daybreak.qml +++ b/src/qml/Chat/Timeline/Daybreak.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import "../../Base" diff --git a/src/qml/Chat/Timeline/EventContent.qml b/src/qml/Chat/Timeline/EventContent.qml index ea9e6423..b832642a 100644 --- a/src/qml/Chat/Timeline/EventContent.qml +++ b/src/qml/Chat/Timeline/EventContent.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Layouts 1.3 import "../../Base" diff --git a/src/qml/Chat/Timeline/EventDelegate.qml b/src/qml/Chat/Timeline/EventDelegate.qml index dad2b484..be056376 100644 --- a/src/qml/Chat/Timeline/EventDelegate.qml +++ b/src/qml/Chat/Timeline/EventDelegate.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Layouts 1.3 import "../../Base" diff --git a/src/qml/Chat/Timeline/EventList.qml b/src/qml/Chat/Timeline/EventList.qml index 1c907289..81562c3c 100644 --- a/src/qml/Chat/Timeline/EventList.qml +++ b/src/qml/Chat/Timeline/EventList.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import SortFilterProxyModel 0.2 import "../../Base" diff --git a/src/qml/Chat/TypingMembersBar.qml b/src/qml/Chat/TypingMembersBar.qml index 36325e2a..6ea18370 100644 --- a/src/qml/Chat/TypingMembersBar.qml +++ b/src/qml/Chat/TypingMembersBar.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Layouts 1.3 import "../Base" diff --git a/src/qml/EventHandlers/app.js b/src/qml/EventHandlers/app.js index ce61c280..fd4fc781 100644 --- a/src/qml/EventHandlers/app.js +++ b/src/qml/EventHandlers/app.js @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + function onExitRequested(exit_code) { Qt.exit(exit_code) } diff --git a/src/qml/EventHandlers/includes.js b/src/qml/EventHandlers/includes.js index 773fe4b3..4f56e77a 100644 --- a/src/qml/EventHandlers/includes.js +++ b/src/qml/EventHandlers/includes.js @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + // FIXME: Obsolete method, but need Qt 5.12+ for standard JS modules import Qt.include("app.js") Qt.include("users.js") diff --git a/src/qml/EventHandlers/rooms.js b/src/qml/EventHandlers/rooms.js index fc3bb3fd..066d73cb 100644 --- a/src/qml/EventHandlers/rooms.js +++ b/src/qml/EventHandlers/rooms.js @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + Qt.include("../utils.js") diff --git a/src/qml/EventHandlers/users.js b/src/qml/EventHandlers/users.js index 1f3dc47f..1f2ac105 100644 --- a/src/qml/EventHandlers/users.js +++ b/src/qml/EventHandlers/users.js @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + function onAccountUpdated(user_id) { accounts.append({"userId": user_id}) } diff --git a/src/qml/LoadingScreen.qml b/src/qml/LoadingScreen.qml index fb855f21..df883a66 100644 --- a/src/qml/LoadingScreen.qml +++ b/src/qml/LoadingScreen.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Controls 2.2 diff --git a/src/qml/Models/Accounts.qml b/src/qml/Models/Accounts.qml index e7f955c0..19f062c0 100644 --- a/src/qml/Models/Accounts.qml +++ b/src/qml/Models/Accounts.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import SortFilterProxyModel 0.2 import "../Base" diff --git a/src/qml/Models/Devices.qml b/src/qml/Models/Devices.qml index d5f35fbb..20235e32 100644 --- a/src/qml/Models/Devices.qml +++ b/src/qml/Models/Devices.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import SortFilterProxyModel 0.2 import "../Base" diff --git a/src/qml/Models/RoomCategories.qml b/src/qml/Models/RoomCategories.qml index 21f786a6..91b85911 100644 --- a/src/qml/Models/RoomCategories.qml +++ b/src/qml/Models/RoomCategories.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import SortFilterProxyModel 0.2 import "../Base" diff --git a/src/qml/Models/Rooms.qml b/src/qml/Models/Rooms.qml index e17fb6b4..0a52c553 100644 --- a/src/qml/Models/Rooms.qml +++ b/src/qml/Models/Rooms.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import SortFilterProxyModel 0.2 import "../Base" diff --git a/src/qml/Models/Timelines.qml b/src/qml/Models/Timelines.qml index 456362cf..00bd4463 100644 --- a/src/qml/Models/Timelines.qml +++ b/src/qml/Models/Timelines.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import SortFilterProxyModel 0.2 import "../Base" diff --git a/src/qml/Models/Users.qml b/src/qml/Models/Users.qml index 3bb8cc8a..1460b972 100644 --- a/src/qml/Models/Users.qml +++ b/src/qml/Models/Users.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import SortFilterProxyModel 0.2 import "../Base" diff --git a/src/qml/Pages/Default.qml b/src/qml/Pages/Default.qml index 651536d2..dd742fab 100644 --- a/src/qml/Pages/Default.qml +++ b/src/qml/Pages/Default.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import "../Base" HNoticePage { diff --git a/src/qml/Pages/RememberAccount.qml b/src/qml/Pages/RememberAccount.qml index 7542b0c8..5f49cd37 100644 --- a/src/qml/Pages/RememberAccount.qml +++ b/src/qml/Pages/RememberAccount.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Layouts 1.3 import "../Base" diff --git a/src/qml/Pages/SignIn.qml b/src/qml/Pages/SignIn.qml index 0482b456..9d94b707 100644 --- a/src/qml/Pages/SignIn.qml +++ b/src/qml/Pages/SignIn.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Layouts 1.3 import "../Base" diff --git a/src/qml/Python.qml b/src/qml/Python.qml index 8cec4366..5d63a6f2 100644 --- a/src/qml/Python.qml +++ b/src/qml/Python.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Controls 2.2 import io.thp.pyotherside 1.5 diff --git a/src/qml/SidePane/AccountDelegate.qml b/src/qml/SidePane/AccountDelegate.qml index b11c1b6d..ad9ed039 100644 --- a/src/qml/SidePane/AccountDelegate.qml +++ b/src/qml/SidePane/AccountDelegate.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Layouts 1.3 import "../Base" diff --git a/src/qml/SidePane/AccountList.qml b/src/qml/SidePane/AccountList.qml index 5eea170a..99fc7e6a 100644 --- a/src/qml/SidePane/AccountList.qml +++ b/src/qml/SidePane/AccountList.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Layouts 1.3 import "../Base" diff --git a/src/qml/SidePane/ExpandButton.qml b/src/qml/SidePane/ExpandButton.qml index a1af643b..27e18dae 100644 --- a/src/qml/SidePane/ExpandButton.qml +++ b/src/qml/SidePane/ExpandButton.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Layouts 1.3 import "../Base" diff --git a/src/qml/SidePane/PaneToolBar.qml b/src/qml/SidePane/PaneToolBar.qml index 22f9ac18..ec30dcf1 100644 --- a/src/qml/SidePane/PaneToolBar.qml +++ b/src/qml/SidePane/PaneToolBar.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick.Layouts 1.3 import "../Base" diff --git a/src/qml/SidePane/RoomCategoriesList.qml b/src/qml/SidePane/RoomCategoriesList.qml index 624db118..8912c5f1 100644 --- a/src/qml/SidePane/RoomCategoriesList.qml +++ b/src/qml/SidePane/RoomCategoriesList.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Layouts 1.3 import SortFilterProxyModel 0.2 diff --git a/src/qml/SidePane/RoomCategoryDelegate.qml b/src/qml/SidePane/RoomCategoryDelegate.qml index 7b0c2e04..910721e9 100644 --- a/src/qml/SidePane/RoomCategoryDelegate.qml +++ b/src/qml/SidePane/RoomCategoryDelegate.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Layouts 1.3 import "../Base" diff --git a/src/qml/SidePane/RoomDelegate.qml b/src/qml/SidePane/RoomDelegate.qml index ee57b173..84d7aca1 100644 --- a/src/qml/SidePane/RoomDelegate.qml +++ b/src/qml/SidePane/RoomDelegate.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Layouts 1.3 import "../Base" diff --git a/src/qml/SidePane/RoomList.qml b/src/qml/SidePane/RoomList.qml index 9243a025..b6129ed9 100644 --- a/src/qml/SidePane/RoomList.qml +++ b/src/qml/SidePane/RoomList.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Layouts 1.3 import SortFilterProxyModel 0.2 diff --git a/src/qml/SidePane/SidePane.qml b/src/qml/SidePane/SidePane.qml index 6530c6a2..ebcd572c 100644 --- a/src/qml/SidePane/SidePane.qml +++ b/src/qml/SidePane/SidePane.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Layouts 1.3 import "../Base" diff --git a/src/qml/Theme.qml b/src/qml/Theme.qml index e18d5086..f16ecc43 100644 --- a/src/qml/Theme.qml +++ b/src/qml/Theme.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 QtObject { diff --git a/src/qml/UI.qml b/src/qml/UI.qml index bae1f929..b9b621b5 100644 --- a/src/qml/UI.qml +++ b/src/qml/UI.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Controls 2.2 import QtQuick.Layouts 1.3 diff --git a/src/qml/Window.qml b/src/qml/Window.qml index d347598f..2db6a42d 100644 --- a/src/qml/Window.qml +++ b/src/qml/Window.qml @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + import QtQuick 2.7 import QtQuick.Controls 2.2 import "Base" diff --git a/src/qml/utils.js b/src/qml/utils.js index 18eb3e1c..6b07042e 100644 --- a/src/qml/utils.js +++ b/src/qml/utils.js @@ -1,3 +1,6 @@ +// Copyright 2019 miruka +// This file is part of harmonyqml, licensed under LGPLv3. + function arrayToModelItem(keys_name, array) { // Convert an array to an object suitable to be in a model, example: // [1, 2, 3] → [{keys_name: 1}, {keys_name: 2}, {keys_name: 3}]