diff --git a/LICENSES/LGPL-2.0-or-later.txt b/LICENSES/LGPL-2.0-or-later.txt new file mode 100644 --- /dev/null +++ b/LICENSES/LGPL-2.0-or-later.txt @@ -0,0 +1,446 @@ +GNU LIBRARY GENERAL PUBLIC LICENSE + +Version 2, June 1991 Copyright (C) 1991 Free Software Foundation, Inc. + +51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + +Everyone is permitted to copy and distribute verbatim copies of this license +document, but changing it is not allowed. + +[This is the first released version of the library GPL. It is numbered 2 because +it goes with version 2 of the ordinary GPL.] + +Preamble + +The licenses for most software are designed to take away your freedom to share +and change it. By contrast, the GNU General Public Licenses are intended to +guarantee your freedom to share and change free software--to make sure the +software is free for all its users. + +This license, the Library General Public License, applies to some specially +designated Free Software Foundation software, and to any other libraries whose +authors decide to use it. You can use it for your libraries, too. + +When we speak of free software, we are referring to freedom, not price. Our +General Public Licenses are designed to make sure that you have the freedom +to distribute copies of free software (and charge for this service if you +wish), that you receive source code or can get it if you want it, that you +can change the software or use pieces of it in new free programs; and that +you know you can do these things. + +To protect your rights, we need to make restrictions that forbid anyone to +deny you these rights or to ask you to surrender the rights. These restrictions +translate to certain responsibilities for you if you distribute copies of +the library, or if you modify it. + +For example, if you distribute copies of the library, whether gratis or for +a fee, you must give the recipients all the rights that we gave you. You must +make sure that they, too, receive or can get the source code. If you link +a program with the library, you must provide complete object files to the +recipients so that they can relink them with the library, after making changes +to the library and recompiling it. And you must show them these terms so they +know their rights. + +Our method of protecting your rights has two steps: (1) copyright the library, +and (2) offer you this license which gives you legal permission to copy, distribute +and/or modify the library. + +Also, for each distributor's protection, we want to make certain that everyone +understands that there is no warranty for this free library. If the library +is modified by someone else and passed on, we want its recipients to know +that what they have is not the original version, so that any problems introduced +by others will not reflect on the original authors' reputations. + +Finally, any free program is threatened constantly by software patents. We +wish to avoid the danger that companies distributing free software will individually +obtain patent licenses, thus in effect transforming the program into proprietary +software. To prevent this, we have made it clear that any patent must be licensed +for everyone's free use or not licensed at all. + +Most GNU software, including some libraries, is covered by the ordinary GNU +General Public License, which was designed for utility programs. This license, +the GNU Library General Public License, applies to certain designated libraries. +This license is quite different from the ordinary one; be sure to read it +in full, and don't assume that anything in it is the same as in the ordinary +license. + +The reason we have a separate public license for some libraries is that they +blur the distinction we usually make between modifying or adding to a program +and simply using it. Linking a program with a library, without changing the +library, is in some sense simply using the library, and is analogous to running +a utility program or application program. However, in a textual and legal +sense, the linked executable is a combined work, a derivative of the original +library, and the ordinary General Public License treats it as such. + +Because of this blurred distinction, using the ordinary General Public License +for libraries did not effectively promote software sharing, because most developers +did not use the libraries. We concluded that weaker conditions might promote +sharing better. + +However, unrestricted linking of non-free programs would deprive the users +of those programs of all benefit from the free status of the libraries themselves. +This Library General Public License is intended to permit developers of non-free +programs to use free libraries, while preserving your freedom as a user of +such programs to change the free libraries that are incorporated in them. +(We have not seen how to achieve this as regards changes in header files, +but we have achieved it as regards changes in the actual functions of the +Library.) The hope is that this will lead to faster development of free libraries. + +The precise terms and conditions for copying, distribution and modification +follow. Pay close attention to the difference between a "work based on the +library" and a "work that uses the library". The former contains code derived +from the library, while the latter only works together with the library. + +Note that it is possible for a library to be covered by the ordinary General +Public License rather than by this special one. + +TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + +0. This License Agreement applies to any software library which contains a +notice placed by the copyright holder or other authorized party saying it +may be distributed under the terms of this Library General Public License +(also called "this License"). Each licensee is addressed as "you". + +A "library" means a collection of software functions and/or data prepared +so as to be conveniently linked with application programs (which use some +of those functions and data) to form executables. + +The "Library", below, refers to any such software library or work which has +been distributed under these terms. A "work based on the Library" means either +the Library or any derivative work under copyright law: that is to say, a +work containing the Library or a portion of it, either verbatim or with modifications +and/or translated straightforwardly into another language. (Hereinafter, translation +is included without limitation in the term "modification".) + +"Source code" for a work means the preferred form of the work for making modifications +to it. For a library, complete source code means all the source code for all +modules it contains, plus any associated interface definition files, plus +the scripts used to control compilation and installation of the library. + +Activities other than copying, distribution and modification are not covered +by this License; they are outside its scope. The act of running a program +using the Library is not restricted, and output from such a program is covered +only if its contents constitute a work based on the Library (independent of +the use of the Library in a tool for writing it). Whether that is true depends +on what the Library does and what the program that uses the Library does. + +1. You may copy and distribute verbatim copies of the Library's complete source +code as you receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice and disclaimer +of warranty; keep intact all the notices that refer to this License and to +the absence of any warranty; and distribute a copy of this License along with +the Library. + +You may charge a fee for the physical act of transferring a copy, and you +may at your option offer warranty protection in exchange for a fee. + +2. You may modify your copy or copies of the Library or any portion of it, +thus forming a work based on the Library, and copy and distribute such modifications +or work under the terms of Section 1 above, provided that you also meet all +of these conditions: + + a) The modified work must itself be a software library. + +b) You must cause the files modified to carry prominent notices stating that +you changed the files and the date of any change. + +c) You must cause the whole of the work to be licensed at no charge to all +third parties under the terms of this License. + +d) If a facility in the modified Library refers to a function or a table of +data to be supplied by an application program that uses the facility, other +than as an argument passed when the facility is invoked, then you must make +a good faith effort to ensure that, in the event an application does not supply +such function or table, the facility still operates, and performs whatever +part of its purpose remains meaningful. + +(For example, a function in a library to compute square roots has a purpose +that is entirely well-defined independent of the application. Therefore, Subsection +2d requires that any application-supplied function or table used by this function +must be optional: if the application does not supply it, the square root function +must still compute square roots.) + +These requirements apply to the modified work as a whole. If identifiable +sections of that work are not derived from the Library, and can be reasonably +considered independent and separate works in themselves, then this License, +and its terms, do not apply to those sections when you distribute them as +separate works. But when you distribute the same sections as part of a whole +which is a work based on the Library, the distribution of the whole must be +on the terms of this License, whose permissions for other licensees extend +to the entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest your +rights to work written entirely by you; rather, the intent is to exercise +the right to control the distribution of derivative or collective works based +on the Library. + +In addition, mere aggregation of another work not based on the Library with +the Library (or with a work based on the Library) on a volume of a storage +or distribution medium does not bring the other work under the scope of this +License. + +3. You may opt to apply the terms of the ordinary GNU General Public License +instead of this License to a given copy of the Library. To do this, you must +alter all the notices that refer to this License, so that they refer to the +ordinary GNU General Public License, version 2, instead of to this License. +(If a newer version than version 2 of the ordinary GNU General Public License +has appeared, then you can specify that version instead if you wish.) Do not +make any other change in these notices. + +Once this change is made in a given copy, it is irreversible for that copy, +so the ordinary GNU General Public License applies to all subsequent copies +and derivative works made from that copy. + +This option is useful when you wish to copy part of the code of the Library +into a program that is not a library. + +4. You may copy and distribute the Library (or a portion or derivative of +it, under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you accompany it with the complete corresponding +machine-readable source code, which must be distributed under the terms of +Sections 1 and 2 above on a medium customarily used for software interchange. + +If distribution of object code is made by offering access to copy from a designated +place, then offering equivalent access to copy the source code from the same +place satisfies the requirement to distribute the source code, even though +third parties are not compelled to copy the source along with the object code. + +5. A program that contains no derivative of any portion of the Library, but +is designed to work with the Library by being compiled or linked with it, +is called a "work that uses the Library". Such a work, in isolation, is not +a derivative work of the Library, and therefore falls outside the scope of +this License. + +However, linking a "work that uses the Library" with the Library creates an +executable that is a derivative of the Library (because it contains portions +of the Library), rather than a "work that uses the library". The executable +is therefore covered by this License. Section 6 states terms for distribution +of such executables. + +When a "work that uses the Library" uses material from a header file that +is part of the Library, the object code for the work may be a derivative work +of the Library even though the source code is not. Whether this is true is +especially significant if the work can be linked without the Library, or if +the work is itself a library. The threshold for this to be true is not precisely +defined by law. + +If such an object file uses only numerical parameters, data structure layouts +and accessors, and small macros and small inline functions (ten lines or less +in length), then the use of the object file is unrestricted, regardless of +whether it is legally a derivative work. (Executables containing this object +code plus portions of the Library will still fall under Section 6.) + +Otherwise, if the work is a derivative of the Library, you may distribute +the object code for the work under the terms of Section 6. Any executables +containing that work also fall under Section 6, whether or not they are linked +directly with the Library itself. + +6. As an exception to the Sections above, you may also compile or link a "work +that uses the Library" with the Library to produce a work containing portions +of the Library, and distribute that work under terms of your choice, provided +that the terms permit modification of the work for the customer's own use +and reverse engineering for debugging such modifications. + +You must give prominent notice with each copy of the work that the Library +is used in it and that the Library and its use are covered by this License. +You must supply a copy of this License. If the work during execution displays +copyright notices, you must include the copyright notice for the Library among +them, as well as a reference directing the user to the copy of this License. +Also, you must do one of these things: + +a) Accompany the work with the complete corresponding machine-readable source +code for the Library including whatever changes were used in the work (which +must be distributed under Sections 1 and 2 above); and, if the work is an +executable linked with the Library, with the complete machine-readable "work +that uses the Library", as object code and/or source code, so that the user +can modify the Library and then relink to produce a modified executable containing +the modified Library. (It is understood that the user who changes the contents +of definitions files in the Library will not necessarily be able to recompile +the application to use the modified definitions.) + +b) Accompany the work with a written offer, valid for at least three years, +to give the same user the materials specified in Subsection 6a, above, for +a charge no more than the cost of performing this distribution. + +c) If distribution of the work is made by offering access to copy from a designated +place, offer equivalent access to copy the above specified materials from +the same place. + +d) Verify that the user has already received a copy of these materials or +that you have already sent this user a copy. + +For an executable, the required form of the "work that uses the Library" must +include any data and utility programs needed for reproducing the executable +from it. However, as a special exception, the source code distributed need +not include anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the operating +system on which the executable runs, unless that component itself accompanies +the executable. + +It may happen that this requirement contradicts the license restrictions of +other proprietary libraries that do not normally accompany the operating system. +Such a contradiction means you cannot use both them and the Library together +in an executable that you distribute. + +7. You may place library facilities that are a work based on the Library side-by-side +in a single library together with other library facilities not covered by +this License, and distribute such a combined library, provided that the separate +distribution of the work based on the Library and of the other library facilities +is otherwise permitted, and provided that you do these two things: + +a) Accompany the combined library with a copy of the same work based on the +Library, uncombined with any other library facilities. This must be distributed +under the terms of the Sections above. + +b) Give prominent notice with the combined library of the fact that part of +it is a work based on the Library, and explaining where to find the accompanying +uncombined form of the same work. + +8. You may not copy, modify, sublicense, link with, or distribute the Library +except as expressly provided under this License. Any attempt otherwise to +copy, modify, sublicense, link with, or distribute the Library is void, and +will automatically terminate your rights under this License. However, parties +who have received copies, or rights, from you under this License will not +have their licenses terminated so long as such parties remain in full compliance. + +9. You are not required to accept this License, since you have not signed +it. However, nothing else grants you permission to modify or distribute the +Library or its derivative works. These actions are prohibited by law if you +do not accept this License. Therefore, by modifying or distributing the Library +(or any work based on the Library), you indicate your acceptance of this License +to do so, and all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + +10. Each time you redistribute the Library (or any work based on the Library), +the recipient automatically receives a license from the original licensor +to copy, distribute, link with or modify the Library subject to these terms +and conditions. You may not impose any further restrictions on the recipients' +exercise of the rights granted herein. You are not responsible for enforcing +compliance by third parties to this License. + +11. If, as a consequence of a court judgment or allegation of patent infringement +or for any other reason (not limited to patent issues), conditions are imposed +on you (whether by court order, agreement or otherwise) that contradict the +conditions of this License, they do not excuse you from the conditions of +this License. If you cannot distribute so as to satisfy simultaneously your +obligations under this License and any other pertinent obligations, then as +a consequence you may not distribute the Library at all. For example, if a +patent license would not permit royalty-free redistribution of the Library +by all those who receive copies directly or indirectly through you, then the +only way you could satisfy both it and this License would be to refrain entirely +from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any patents +or other property right claims or to contest validity of any such claims; +this section has the sole purpose of protecting the integrity of the free +software distribution system which is implemented by public license practices. +Many people have made generous contributions to the wide range of software +distributed through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing to +distribute software through any other system and a licensee cannot impose +that choice. + +This section is intended to make thoroughly clear what is believed to be a +consequence of the rest of this License. + +12. If the distribution and/or use of the Library is restricted in certain +countries either by patents or by copyrighted interfaces, the original copyright +holder who places the Library under this License may add an explicit geographical +distribution limitation excluding those countries, so that distribution is +permitted only in or among countries not thus excluded. In such case, this +License incorporates the limitation as if written in the body of this License. + +13. The Free Software Foundation may publish revised and/or new versions of +the Library General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to address +new problems or concerns. + +Each version is given a distinguishing version number. If the Library specifies +a version number of this License which applies to it and "any later version", +you have the option of following the terms and conditions either of that version +or of any later version published by the Free Software Foundation. If the +Library does not specify a license version number, you may choose any version +ever published by the Free Software Foundation. + +14. If you wish to incorporate parts of the Library into other free programs +whose distribution conditions are incompatible with these, write to the author +to ask for permission. For software which is copyrighted by the Free Software +Foundation, write to the Free Software Foundation; we sometimes make exceptions +for this. Our decision will be guided by the two goals of preserving the free +status of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + +15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR +THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE +STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY +"AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, +BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE +OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + +16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE +THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE +OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA +OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES +OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH +HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. +END OF TERMS AND CONDITIONS + +How to Apply These Terms to Your New Libraries + +If you develop a new library, and you want it to be of the greatest possible +use to the public, we recommend making it free software that everyone can +redistribute and change. You can do so by permitting redistribution under +these terms (or, alternatively, under the terms of the ordinary General Public +License). + +To apply these terms, attach the following notices to the library. It is safest +to attach them to the start of each source file to most effectively convey +the exclusion of warranty; and each file should have at least the "copyright" +line and a pointer to where the full notice is found. + +one line to give the library's name and an idea of what it does. + +Copyright (C) year name of author + +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; if not, write to the Free Software Foundation, Inc., +51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your school, +if any, to sign a "copyright disclaimer" for the library, if necessary. Here +is a sample; alter the names: + +Yoyodyne, Inc., hereby disclaims all copyright interest in + +the library `Frob' (a library for tweaking knobs) written + +by James Random Hacker. + +signature of Ty Coon, 1 April 1990 + +Ty Coon, President of Vice + +That's all there is to it! diff --git a/Mainpage.dox b/Mainpage.dox --- a/Mainpage.dox +++ b/Mainpage.dox @@ -1,22 +1,9 @@ /* - This file is part of Kirigami - Copyright (C) 2016 Marco Martin - - This program 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, 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 Library General Public License for more details - - You should have received a copy of the GNU Library General Public - License along with this program; if not, write to the - Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ + * This file is part of Kirigami + * SPDX-FileCopyrightText: 2016 Marco Martin + * + * SPDX-License-Identifier: LGPL-2.0-or-later + */ /** \mainpage kirigami diff --git a/autotests/tst_keynavigation.qml b/autotests/tst_keynavigation.qml --- a/autotests/tst_keynavigation.qml +++ b/autotests/tst_keynavigation.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Aleix Pol Gonzalez + * SPDX-FileCopyrightText: 2016 Aleix Pol Gonzalez * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 diff --git a/autotests/tst_listskeynavigation.qml b/autotests/tst_listskeynavigation.qml --- a/autotests/tst_listskeynavigation.qml +++ b/autotests/tst_listskeynavigation.qml @@ -1,21 +1,8 @@ /* - * Copyright 2016 Aleix Pol Gonzalez - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Aleix Pol Gonzalez + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 diff --git a/autotests/tst_pagerow.qml b/autotests/tst_pagerow.qml --- a/autotests/tst_pagerow.qml +++ b/autotests/tst_pagerow.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Aleix Pol Gonzalez + * SPDX-FileCopyrightText: 2016 Aleix Pol Gonzalez * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 diff --git a/examples/applicationitemapp/main.cpp b/examples/applicationitemapp/main.cpp --- a/examples/applicationitemapp/main.cpp +++ b/examples/applicationitemapp/main.cpp @@ -1,20 +1,7 @@ /* - * Copyright 2017 Marco Martin + * SPDX-FileCopyrightText: 2017 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ #include @@ -33,6 +20,6 @@ view.setResizeMode(QQuickView::SizeRootObjectToView); view.setSource(QUrl(QStringLiteral("qrc:///main.qml"))); view.show(); - + return app.exec(); } diff --git a/examples/applicationitemapp/main.qml b/examples/applicationitemapp/main.qml --- a/examples/applicationitemapp/main.qml +++ b/examples/applicationitemapp/main.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 diff --git a/examples/minimalqmake/Page1.qml b/examples/minimalqmake/Page1.qml --- a/examples/minimalqmake/Page1.qml +++ b/examples/minimalqmake/Page1.qml @@ -1,20 +1,7 @@ /* - * Copyright 2017 Marco Martin + * SPDX-FileCopyrightText: 2017 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 diff --git a/examples/minimalqmake/Page1Form.ui.qml b/examples/minimalqmake/Page1Form.ui.qml --- a/examples/minimalqmake/Page1Form.ui.qml +++ b/examples/minimalqmake/Page1Form.ui.qml @@ -1,20 +1,7 @@ /* - * Copyright 2017 Marco Martin + * SPDX-FileCopyrightText: 2017 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 diff --git a/examples/minimalqmake/main.cpp b/examples/minimalqmake/main.cpp --- a/examples/minimalqmake/main.cpp +++ b/examples/minimalqmake/main.cpp @@ -1,20 +1,7 @@ /* - * Copyright 2017 Marco Martin + * SPDX-FileCopyrightText: 2017 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ #include diff --git a/examples/minimalqmake/main.qml b/examples/minimalqmake/main.qml --- a/examples/minimalqmake/main.qml +++ b/examples/minimalqmake/main.qml @@ -1,20 +1,7 @@ /* - * Copyright 2017 Marco Martin + * SPDX-FileCopyrightText: 2017 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 diff --git a/examples/multiplatformnotesapp/NotesGeneral.qml b/examples/multiplatformnotesapp/NotesGeneral.qml --- a/examples/multiplatformnotesapp/NotesGeneral.qml +++ b/examples/multiplatformnotesapp/NotesGeneral.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 @@ -196,7 +183,7 @@ } QQC2.TextArea { background: Item {} - wrapMode: TextEdit.WordWrap + wrapMode: TextEdit.WordWrap selectByMouse: true text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sollicitudin, lorem at semper pretium, tortor nisl pellentesque risus, eget eleifend odio ipsum ac mi. Donec justo ex, elementum vitae gravida vel, pretium ac lacus. Duis non metus ac enim viverra auctor in non nunc. Sed sit amet luctus nisi. Proin justo nulla, vehicula eget porta sit amet, aliquet vitae dolor. Mauris sed odio auctor, tempus ipsum ac, placerat enim. Ut in dolor vel ante dictum auctor. diff --git a/examples/multiplatformnotesapp/notesDesktop.qml b/examples/multiplatformnotesapp/notesDesktop.qml --- a/examples/multiplatformnotesapp/notesDesktop.qml +++ b/examples/multiplatformnotesapp/notesDesktop.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 diff --git a/examples/multiplatformnotesapp/notesMobile.qml b/examples/multiplatformnotesapp/notesMobile.qml --- a/examples/multiplatformnotesapp/notesMobile.qml +++ b/examples/multiplatformnotesapp/notesMobile.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 diff --git a/examples/qmakewithstaticplugin/src/Page1.qml b/examples/qmakewithstaticplugin/src/Page1.qml --- a/examples/qmakewithstaticplugin/src/Page1.qml +++ b/examples/qmakewithstaticplugin/src/Page1.qml @@ -1,20 +1,7 @@ /* - * Copyright 2017 Marco Martin + * SPDX-FileCopyrightText: 2017 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 diff --git a/examples/qmakewithstaticplugin/src/Page1Form.ui.qml b/examples/qmakewithstaticplugin/src/Page1Form.ui.qml --- a/examples/qmakewithstaticplugin/src/Page1Form.ui.qml +++ b/examples/qmakewithstaticplugin/src/Page1Form.ui.qml @@ -1,20 +1,7 @@ /* - * Copyright 2017 Marco Martin + * SPDX-FileCopyrightText: 2017 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 diff --git a/examples/qmakewithstaticplugin/src/main.cpp b/examples/qmakewithstaticplugin/src/main.cpp --- a/examples/qmakewithstaticplugin/src/main.cpp +++ b/examples/qmakewithstaticplugin/src/main.cpp @@ -1,20 +1,7 @@ /* - * Copyright 2017 Marco Martin + * SPDX-FileCopyrightText: 2017 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ #include diff --git a/examples/qmakewithstaticplugin/src/main.qml b/examples/qmakewithstaticplugin/src/main.qml --- a/examples/qmakewithstaticplugin/src/main.qml +++ b/examples/qmakewithstaticplugin/src/main.qml @@ -1,20 +1,7 @@ /* - * Copyright 2017 Marco Martin + * SPDX-FileCopyrightText: 2017 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 diff --git a/examples/simpleexamples/AbstractApplicationWindow.qml b/examples/simpleexamples/AbstractApplicationWindow.qml --- a/examples/simpleexamples/AbstractApplicationWindow.qml +++ b/examples/simpleexamples/AbstractApplicationWindow.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 diff --git a/examples/simpleexamples/FixedSidebar.qml b/examples/simpleexamples/FixedSidebar.qml --- a/examples/simpleexamples/FixedSidebar.qml +++ b/examples/simpleexamples/FixedSidebar.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 diff --git a/examples/simpleexamples/MultipleColumnsGallery.qml b/examples/simpleexamples/MultipleColumnsGallery.qml --- a/examples/simpleexamples/MultipleColumnsGallery.qml +++ b/examples/simpleexamples/MultipleColumnsGallery.qml @@ -1,20 +1,7 @@ /* - * Copyright 2015 Marco Martin + * SPDX-FileCopyrightText: 2015 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.0 diff --git a/examples/simpleexamples/Sidebar.qml b/examples/simpleexamples/Sidebar.qml --- a/examples/simpleexamples/Sidebar.qml +++ b/examples/simpleexamples/Sidebar.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 diff --git a/examples/simpleexamples/SimplePage.qml b/examples/simpleexamples/SimplePage.qml --- a/examples/simpleexamples/SimplePage.qml +++ b/examples/simpleexamples/SimplePage.qml @@ -1,20 +1,7 @@ /* - * Copyright 2015 Marco Martin + * SPDX-FileCopyrightText: 2015 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.0 diff --git a/examples/simpleexamples/TabBarHeader.qml b/examples/simpleexamples/TabBarHeader.qml --- a/examples/simpleexamples/TabBarHeader.qml +++ b/examples/simpleexamples/TabBarHeader.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 diff --git a/examples/simpleexamples/customdrawer.qml b/examples/simpleexamples/customdrawer.qml --- a/examples/simpleexamples/customdrawer.qml +++ b/examples/simpleexamples/customdrawer.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 diff --git a/examples/simpleexamples/dragPageWidth.qml b/examples/simpleexamples/dragPageWidth.qml --- a/examples/simpleexamples/dragPageWidth.qml +++ b/examples/simpleexamples/dragPageWidth.qml @@ -1,20 +1,7 @@ /* - * Copyright 2017 Eike Hein + * SPDX-FileCopyrightText: 2017 Eike Hein * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 diff --git a/examples/simpleexamples/footer.qml b/examples/simpleexamples/footer.qml --- a/examples/simpleexamples/footer.qml +++ b/examples/simpleexamples/footer.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 diff --git a/examples/simpleexamples/minimal.qml b/examples/simpleexamples/minimal.qml --- a/examples/simpleexamples/minimal.qml +++ b/examples/simpleexamples/minimal.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 diff --git a/examples/simpleexamples/pagePoolDrawer.qml b/examples/simpleexamples/pagePoolDrawer.qml --- a/examples/simpleexamples/pagePoolDrawer.qml +++ b/examples/simpleexamples/pagePoolDrawer.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 diff --git a/examples/simpleexamples/pagePoolFirstColumn.qml b/examples/simpleexamples/pagePoolFirstColumn.qml --- a/examples/simpleexamples/pagePoolFirstColumn.qml +++ b/examples/simpleexamples/pagePoolFirstColumn.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.11 diff --git a/examples/simpleexamples/pushpopclear.qml b/examples/simpleexamples/pushpopclear.qml --- a/examples/simpleexamples/pushpopclear.qml +++ b/examples/simpleexamples/pushpopclear.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 diff --git a/examples/simpleexamples/simpleChatApp.qml b/examples/simpleexamples/simpleChatApp.qml --- a/examples/simpleexamples/simpleChatApp.qml +++ b/examples/simpleexamples/simpleChatApp.qml @@ -1,20 +1,7 @@ /* - * Copyright 2017 Marco Martin + * SPDX-FileCopyrightText: 2017 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.6 @@ -84,7 +71,7 @@ contentItem: ColumnLayout { id: titleLayout spacing: Kirigami.Units.gridUnit - + RowLayout { spacing: Kirigami.Units.gridUnit Rectangle { diff --git a/examples/staticcmake/src/Page1.qml b/examples/staticcmake/src/Page1.qml --- a/examples/staticcmake/src/Page1.qml +++ b/examples/staticcmake/src/Page1.qml @@ -1,20 +1,7 @@ /* - * Copyright 2017 Marco Martin + * SPDX-FileCopyrightText: 2017 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 diff --git a/examples/staticcmake/src/Page1Form.ui.qml b/examples/staticcmake/src/Page1Form.ui.qml --- a/examples/staticcmake/src/Page1Form.ui.qml +++ b/examples/staticcmake/src/Page1Form.ui.qml @@ -1,20 +1,7 @@ /* - * Copyright 2017 Marco Martin + * SPDX-FileCopyrightText: 2017 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 diff --git a/examples/staticcmake/src/main.cpp b/examples/staticcmake/src/main.cpp --- a/examples/staticcmake/src/main.cpp +++ b/examples/staticcmake/src/main.cpp @@ -1,20 +1,7 @@ /* - * Copyright 2017 Marco Martin + * SPDX-FileCopyrightText: 2017 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ #ifdef Q_OS_ANDROID @@ -56,14 +43,14 @@ //qputenv("QML_IMPORT_TRACE", "1"); QQmlApplicationEngine engine; - + engine.load(QUrl(QStringLiteral("qrc:///main.qml"))); if (engine.rootObjects().isEmpty()) { return -1; } - //HACK to color the system bar on Android, use qtandroidextras and call the appropriate Java methods + //HACK to color the system bar on Android, use qtandroidextras and call the appropriate Java methods #ifdef Q_OS_ANDROID QtAndroid::runOnAndroidThread([=]() { QAndroidJniObject window = QtAndroid::androidActivity().callObjectMethod("getWindow", "()Landroid/view/Window;"); diff --git a/examples/staticcmake/src/main.qml b/examples/staticcmake/src/main.qml --- a/examples/staticcmake/src/main.qml +++ b/examples/staticcmake/src/main.qml @@ -1,20 +1,7 @@ /* - * Copyright 2017 Marco Martin + * SPDX-FileCopyrightText: 2017 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 diff --git a/src/columnview.h b/src/columnview.h --- a/src/columnview.h +++ b/src/columnview.h @@ -1,20 +1,7 @@ /* - * Copyright 2019 Marco Martin + * SPDX-FileCopyrightText: 2019 Marco Martin * - * This program 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, 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 Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ #pragma once @@ -51,7 +38,7 @@ Q_PROPERTY(qreal reservedSpace READ reservedSpace WRITE setReservedSpace NOTIFY reservedSpaceChanged) /** - * Like the same property of MouseArea, when this is true, the column view won't + * Like the same property of MouseArea, when this is true, the column view won't * try to manage events by itself when filtering from a child, not * disturbing user interaction */ diff --git a/src/columnview.cpp b/src/columnview.cpp --- a/src/columnview.cpp +++ b/src/columnview.cpp @@ -1,20 +1,7 @@ /* - * Copyright 2019 Marco Martin + * SPDX-FileCopyrightText: 2019 Marco Martin * - * This program 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, 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 Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ #include "columnview.h" @@ -415,7 +402,7 @@ m_rightPinnedSpace = 0; for (QQuickItem *child : m_items) { ColumnViewAttached *attached = qobject_cast(qmlAttachedPropertiesObject(child, true)); - + if (child->isVisible()) { if (attached->isPinned() && m_view->columnResizeMode() != ColumnView::SingleColumn) { QQuickItem *sep = nullptr; @@ -490,7 +477,7 @@ for (QQuickItem *child : m_items) { ColumnViewAttached *attached = qobject_cast(qmlAttachedPropertiesObject(child, true)); - + if (child->isVisible()) { if (attached->isPinned()) { QQuickItem *sep = nullptr; @@ -585,7 +572,7 @@ QQuickItem *ContentItem::ensureSeparator(QQuickItem *item) { QQuickItem *separatorItem = m_separators.value(item); - + if (!separatorItem) { separatorItem = qobject_cast(privateQmlComponentsPoolSelf->instance(qmlEngine(item))->m_separatorComponent->beginCreate(QQmlEngine::contextForObject(item))); if (separatorItem) { @@ -603,7 +590,7 @@ QQuickItem *ContentItem::ensureRightSeparator(QQuickItem *item) { QQuickItem *separatorItem = m_rightSeparators.value(item); - + if (!separatorItem) { separatorItem = qobject_cast(QmlComponentsPoolSingleton::instance(qmlEngine(item))->m_rightSeparatorComponent->beginCreate(QQmlEngine::contextForObject(item))); if (separatorItem) { @@ -628,7 +615,7 @@ //connect(attached, &ColumnViewAttached::fillWidthChanged, m_view, &ColumnView::polish); connect(attached, &ColumnViewAttached::fillWidthChanged, this, [this, attached](){ m_view->polish(); - + }); connect(attached, &ColumnViewAttached::reservedSpaceChanged, m_view, &ColumnView::polish); @@ -1132,7 +1119,7 @@ return nullptr; } - return removeItem(m_contentItem->m_items[pos]); + return removeItem(m_contentItem->m_items[pos]); } QQuickItem *ColumnView::pop(QQuickItem *item) @@ -1209,7 +1196,7 @@ me->setAccepted(false); setKeepMouseGrab(false); - // On press, we set the current index of the view to the root item + // On press, we set the current index of the view to the root item QQuickItem *candidateItem = item; while (candidateItem->parentItem() && candidateItem->parentItem() != m_contentItem) { candidateItem = candidateItem->parentItem(); diff --git a/src/columnview_p.h b/src/columnview_p.h --- a/src/columnview_p.h +++ b/src/columnview_p.h @@ -1,20 +1,7 @@ /* - * Copyright 2019 Marco Martin + * SPDX-FileCopyrightText: 2019 Marco Martin * - * This program 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, 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 Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ #pragma once diff --git a/src/controls/AboutPage.qml b/src/controls/AboutPage.qml --- a/src/controls/AboutPage.qml +++ b/src/controls/AboutPage.qml @@ -1,20 +1,7 @@ /* - * Copyright (C) 2018 Aleix Pol Gonzalez + * SPDX-FileCopyrightText: 2018 Aleix Pol Gonzalez * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Library/Lesser General Public License - * version 2, or (at your option) any later version, as published by the - * Free Software Foundation - * - * 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 Library/Lesser General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 diff --git a/src/controls/AbstractApplicationHeader.qml b/src/controls/AbstractApplicationHeader.qml --- a/src/controls/AbstractApplicationHeader.qml +++ b/src/controls/AbstractApplicationHeader.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.5 diff --git a/src/controls/AbstractApplicationItem.qml b/src/controls/AbstractApplicationItem.qml --- a/src/controls/AbstractApplicationItem.qml +++ b/src/controls/AbstractApplicationItem.qml @@ -1,20 +1,7 @@ /* - * Copyright 2017 Marco Martin + * SPDX-FileCopyrightText: 2017 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.5 @@ -68,7 +55,7 @@ * contextDrawer: Kirigami.ContextDrawer { * id: contextDrawer * } - * + * * pageStack: PageStack { * ... * } @@ -89,7 +76,7 @@ * Put a container here, such as QQuickControls PageStack */ property Item pageStack - LayoutMirroring.enabled: Qt.application.layoutDirection == Qt.RightToLeft + LayoutMirroring.enabled: Qt.application.layoutDirection == Qt.RightToLeft LayoutMirroring.childrenInherit: true property alias overlay: overlayRoot @@ -279,7 +266,7 @@ * When true the application will go into reachable mode on pull down */ property bool reachableModeEnabled: true - + MouseArea { parent: contentItem.parent z: -1 @@ -317,7 +304,7 @@ leftMargin: root.globalDrawer && (root.globalDrawer.modal === false) ? root.globalDrawer.contentItem.width * root.globalDrawer.position : 0 rightMargin: root.contextDrawer && root.contextDrawer.modal === false ? root.contextDrawer.contentItem.width * root.contextDrawer.position : 0 } - + transform: Translate { Behavior on y { NumberAnimation { diff --git a/src/controls/AbstractApplicationWindow.qml b/src/controls/AbstractApplicationWindow.qml --- a/src/controls/AbstractApplicationWindow.qml +++ b/src/controls/AbstractApplicationWindow.qml @@ -1,20 +1,7 @@ /* - * Copyright 2015 Marco Martin + * SPDX-FileCopyrightText: 2015 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.5 @@ -67,7 +54,7 @@ * contextDrawer: Kirigami.ContextDrawer { * id: contextDrawer * } - * + * * pageStack: PageStack { * ... * } @@ -88,7 +75,7 @@ * Put a container here, such as QQuickControls PageStack */ property Item pageStack - LayoutMirroring.enabled: Qt.application.layoutDirection == Qt.RightToLeft + LayoutMirroring.enabled: Qt.application.layoutDirection == Qt.RightToLeft LayoutMirroring.childrenInherit: true /** diff --git a/src/controls/AbstractCard.qml b/src/controls/AbstractCard.qml --- a/src/controls/AbstractCard.qml +++ b/src/controls/AbstractCard.qml @@ -1,20 +1,7 @@ /* - * Copyright 2018 Marco Martin + * SPDX-FileCopyrightText: 2018 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.6 diff --git a/src/controls/AbstractItemViewHeader.qml b/src/controls/AbstractItemViewHeader.qml --- a/src/controls/AbstractItemViewHeader.qml +++ b/src/controls/AbstractItemViewHeader.qml @@ -1,20 +1,7 @@ /* - * Copyright 2017 Marco Martin + * SPDX-FileCopyrightText: 2017 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.5 diff --git a/src/controls/AbstractListItem.qml b/src/controls/AbstractListItem.qml --- a/src/controls/AbstractListItem.qml +++ b/src/controls/AbstractListItem.qml @@ -1,20 +1,7 @@ /* - * Copyright 2015 Marco Martin + * SPDX-FileCopyrightText: 2015 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 diff --git a/src/controls/Action.qml b/src/controls/Action.qml --- a/src/controls/Action.qml +++ b/src/controls/Action.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 diff --git a/src/controls/ActionTextField.qml b/src/controls/ActionTextField.qml --- a/src/controls/ActionTextField.qml +++ b/src/controls/ActionTextField.qml @@ -1,20 +1,7 @@ /* - * Copyright (C) 2019 Carl-Lucien Schwan * + * SPDX-FileCopyrightText: 2019 Carl-Lucien Schwan * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Library/Lesser General Public License - * version 2, or (at your option) any later version, as published by the - * Free Software Foundation - * - * 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 Library/Lesser General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.6 diff --git a/src/controls/ActionToolBar.qml b/src/controls/ActionToolBar.qml --- a/src/controls/ActionToolBar.qml +++ b/src/controls/ActionToolBar.qml @@ -1,20 +1,7 @@ /* - * Copyright 2018 Marco Martin + * SPDX-FileCopyrightText: 2018 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 diff --git a/src/controls/ApplicationHeader.qml b/src/controls/ApplicationHeader.qml --- a/src/controls/ApplicationHeader.qml +++ b/src/controls/ApplicationHeader.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.5 diff --git a/src/controls/ApplicationItem.qml b/src/controls/ApplicationItem.qml --- a/src/controls/ApplicationItem.qml +++ b/src/controls/ApplicationItem.qml @@ -1,20 +1,7 @@ /* - * Copyright 2017 Marco Martin + * SPDX-FileCopyrightText: 2017 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.5 @@ -65,7 +52,7 @@ * contextDrawer: Kirigami.ContextDrawer { * id: contextDrawer * } - * + * * pageStack.initialPage: Kirigami.Page { * mainAction: Kirigami.Action { * iconName: "edit" diff --git a/src/controls/ApplicationWindow.qml b/src/controls/ApplicationWindow.qml --- a/src/controls/ApplicationWindow.qml +++ b/src/controls/ApplicationWindow.qml @@ -1,20 +1,7 @@ /* - * Copyright 2015 Marco Martin + * SPDX-FileCopyrightText: 2015 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.5 @@ -63,7 +50,7 @@ * contextDrawer: Kirigami.ContextDrawer { * id: contextDrawer * } - * + * * pageStack.initialPage: Kirigami.Page { * mainAction: Kirigami.Action { * iconName: "edit" diff --git a/src/controls/BasicListItem.qml b/src/controls/BasicListItem.qml --- a/src/controls/BasicListItem.qml +++ b/src/controls/BasicListItem.qml @@ -1,20 +1,7 @@ /* - * Copyright 2010 Marco Martin + * SPDX-FileCopyrightText: 2010 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 diff --git a/src/controls/Card.qml b/src/controls/Card.qml --- a/src/controls/Card.qml +++ b/src/controls/Card.qml @@ -1,20 +1,7 @@ /* - * Copyright 2018 Marco Martin + * SPDX-FileCopyrightText: 2018 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.6 diff --git a/src/controls/CardsGridView.qml b/src/controls/CardsGridView.qml --- a/src/controls/CardsGridView.qml +++ b/src/controls/CardsGridView.qml @@ -1,20 +1,7 @@ /* - * Copyright 2018 Marco Martin + * SPDX-FileCopyrightText: 2018 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.10 diff --git a/src/controls/CardsLayout.qml b/src/controls/CardsLayout.qml --- a/src/controls/CardsLayout.qml +++ b/src/controls/CardsLayout.qml @@ -1,20 +1,7 @@ /* - * Copyright 2018 Marco Martin + * SPDX-FileCopyrightText: 2018 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.6 diff --git a/src/controls/CardsListView.qml b/src/controls/CardsListView.qml --- a/src/controls/CardsListView.qml +++ b/src/controls/CardsListView.qml @@ -1,20 +1,7 @@ /* - * Copyright 2018 Marco Martin + * SPDX-FileCopyrightText: 2018 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.10 @@ -27,7 +14,7 @@ * automatically assign the proper spacings and margins around the cards adhering * to the design guidelines. * CardsListView should be used only with cards which can look good at any - * horizontal size, so It is recommended to use directly AbstractCard with an + * horizontal size, so It is recommended to use directly AbstractCard with an * appropriate layout inside, because they are stretching for the whole list width. * Therefore is discouraged to use it with the Card type, unless it has * Horizontal as headerOrientation. diff --git a/src/controls/ContextDrawer.qml b/src/controls/ContextDrawer.qml --- a/src/controls/ContextDrawer.qml +++ b/src/controls/ContextDrawer.qml @@ -1,20 +1,7 @@ /* - * Copyright 2015 Marco Martin + * SPDX-FileCopyrightText: 2015 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 @@ -80,7 +67,7 @@ /** * actions: list - * This can be any type of object that a ListView can accept as model. + * This can be any type of object that a ListView can accept as model. * It expects items compatible with either QAction or Kirigami Action */ property var actions: page ? page.contextualActions : [] diff --git a/src/controls/FormLayout.qml b/src/controls/FormLayout.qml --- a/src/controls/FormLayout.qml +++ b/src/controls/FormLayout.qml @@ -1,20 +1,7 @@ /* - * Copyright 2017 Marco Martin + * SPDX-FileCopyrightText: 2017 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.6 @@ -141,7 +128,7 @@ implicitWidth: root.width width: Math.min(implicitWidth, parent.width) } - + } ] @@ -274,7 +261,7 @@ visible: item.visible width: Kirigami.Units.smallSpacing height: Kirigami.Units.smallSpacing - Layout.topMargin: item.height > 0 ? Kirigami.Units.smallSpacing : 0 + Layout.topMargin: item.height > 0 ? Kirigami.Units.smallSpacing : 0 onItemChanged: { if (!item) { labelItem.destroy(); diff --git a/src/controls/GlobalDrawer.qml b/src/controls/GlobalDrawer.qml --- a/src/controls/GlobalDrawer.qml +++ b/src/controls/GlobalDrawer.qml @@ -1,20 +1,7 @@ /* - * Copyright 2015 Marco Martin + * SPDX-FileCopyrightText: 2015 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.12 @@ -70,7 +57,7 @@ handleClosedIcon.source: null handleOpenIcon.source: null handleVisible: (modal || !drawerOpen) && (typeof(applicationWindow)===typeof(Function) && applicationWindow() ? applicationWindow().controlsVisible : true) && (!isMenu || Settings.isMobile) - + enabled: !isMenu || Settings.isMobile /** @@ -202,7 +189,7 @@ * showContentWhenCollapsed: bool * If true, when the drawer is collapsed as a sidebar, the content items * at the bottom will be hidden (default false). - * If you want to keep some items visible and some invisible, set this to + * If you want to keep some items visible and some invisible, set this to * false and control the visibility/opacity of individual items, * binded to the collapsed property * @since 2.5 @@ -213,7 +200,7 @@ * showTopContentWhenCollapsed: bool * If true, when the drawer is collapsed as a sidebar, the top content items * at the top will be hidden (default false). - * If you want to keep some items visible and some invisible, set this to + * If you want to keep some items visible and some invisible, set this to * false and control the visibility/opacity of individual items, * binded to the collapsed property * @since 2.5 @@ -505,7 +492,7 @@ } } } - + QQC2.ToolButton { icon.name: root.collapsed ? "view-right-new" : "view-right-close" Layout.fillWidth: root.collapsed diff --git a/src/controls/Heading.qml b/src/controls/Heading.qml --- a/src/controls/Heading.qml +++ b/src/controls/Heading.qml @@ -1,21 +1,8 @@ /* -* Copyright 2012 by Sebastian Kügler -* -* This program 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, 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 Library General Public License for more details -* -* You should have received a copy of the GNU Library General Public -* License along with this program; if not, write to the -* Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. -*/ + * SPDX-FileCopyrightText: 2012 by Sebastian Kügler + * + * SPDX-License-Identifier: LGPL-2.0-or-later + */ import QtQuick 2.0 import QtQuick.Controls 2.0 as QQC2 diff --git a/src/controls/InlineMessage.qml b/src/controls/InlineMessage.qml --- a/src/controls/InlineMessage.qml +++ b/src/controls/InlineMessage.qml @@ -1,22 +1,9 @@ /* - * Copyright 2018 Eike Hein - * Copyright 2018 Marco Martin - * Copyright 2018 Kai Uwe Broulik + * SPDX-FileCopyrightText: 2018 Eike Hein + * SPDX-FileCopyrightText: 2018 Marco Martin + * SPDX-FileCopyrightText: 2018 Kai Uwe Broulik * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 diff --git a/src/controls/ItemViewHeader.qml b/src/controls/ItemViewHeader.qml --- a/src/controls/ItemViewHeader.qml +++ b/src/controls/ItemViewHeader.qml @@ -1,20 +1,7 @@ /* - * Copyright 2017 Marco Martin + * SPDX-FileCopyrightText: 2017 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.5 diff --git a/src/controls/Label.qml b/src/controls/Label.qml --- a/src/controls/Label.qml +++ b/src/controls/Label.qml @@ -1,21 +1,8 @@ /* -* Copyright (C) 2011 by Marco Martin -* -* This program 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, 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 Library General Public License for more details -* -* You should have received a copy of the GNU Library General Public -* License along with this program; if not, write to the -* Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. -*/ + * SPDX-FileCopyrightText: 2011 by Marco Martin + * + * SPDX-License-Identifier: LGPL-2.0-or-later + */ import QtQuick 2.1 import QtQuick.Window 2.2 diff --git a/src/controls/LinkButton.qml b/src/controls/LinkButton.qml --- a/src/controls/LinkButton.qml +++ b/src/controls/LinkButton.qml @@ -1,20 +1,7 @@ /* - * Copyright (C) 2018 Aleix Pol Gonzalez + * SPDX-FileCopyrightText: 2018 Aleix Pol Gonzalez * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Library/Lesser General Public License - * version 2, or (at your option) any later version, as published by the - * Free Software Foundation - * - * 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 Library/Lesser General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.2 diff --git a/src/controls/ListItemDragHandle.qml b/src/controls/ListItemDragHandle.qml --- a/src/controls/ListItemDragHandle.qml +++ b/src/controls/ListItemDragHandle.qml @@ -1,21 +1,8 @@ /* -* Copyright (C) 2018 by Marco Martin -* -* This program 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, 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 Library General Public License for more details -* -* You should have received a copy of the GNU Library General Public -* License along with this program; if not, write to the -* Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. -*/ + * SPDX-FileCopyrightText: 2018 by Marco Martin + * + * SPDX-License-Identifier: LGPL-2.0-or-later + */ import QtQuick 2.6 import QtQuick.Layouts 1.2 @@ -60,7 +47,7 @@ * } * ListItem { * lablel: "Item 3" - * } + * } * } * //this is optional to make list items animated when reordered * moveDisplaced: Transition { @@ -145,7 +132,7 @@ anchors.fill: parent } preventStealing: true - + onPressed: { internal.originalParent = listItem.parent; @@ -178,7 +165,7 @@ id: dropAnimation YAnimator { target: listItem - from: listItem.y + from: listItem.y to: 0 duration: Kirigami.Units.longDuration easing.type: Easing.InOutQuad diff --git a/src/controls/ListSectionHeader.qml b/src/controls/ListSectionHeader.qml --- a/src/controls/ListSectionHeader.qml +++ b/src/controls/ListSectionHeader.qml @@ -1,20 +1,7 @@ /* - * Copyright 2019 Björn Feber + * SPDX-FileCopyrightText: 2019 Björn Feber * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.5 diff --git a/src/controls/OverlayDrawer.qml b/src/controls/OverlayDrawer.qml --- a/src/controls/OverlayDrawer.qml +++ b/src/controls/OverlayDrawer.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 diff --git a/src/controls/OverlaySheet.qml b/src/controls/OverlaySheet.qml --- a/src/controls/OverlaySheet.qml +++ b/src/controls/OverlaySheet.qml @@ -1,21 +1,8 @@ /* -* Copyright (C) 2016 by Marco Martin -* -* This program 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, 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 Library General Public License for more details -* -* You should have received a copy of the GNU Library General Public -* License along with this program; if not, write to the -* Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. -*/ + * SPDX-FileCopyrightText: 2016 by Marco Martin + * + * SPDX-License-Identifier: LGPL-2.0-or-later + */ import QtQuick 2.5 import org.kde.kirigami 2.4 diff --git a/src/controls/Page.qml b/src/controls/Page.qml --- a/src/controls/Page.qml +++ b/src/controls/Page.qml @@ -1,20 +1,7 @@ /* - * Copyright 2015 Marco Martin + * SPDX-FileCopyrightText: 2015 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.5 @@ -281,7 +268,7 @@ /** * The style for the automatically generated global toolbar: by default the Page toolbar is the one set globally in the PageRow in its globalToolBar.style property. * A single page can override the application toolbar style for itself. - * It is discouraged to use this, except very specific exceptions, like a chat + * It is discouraged to use this, except very specific exceptions, like a chat * application which can't have controls on the bottom except the text field. */ property int globalToolBarStyle: { diff --git a/src/controls/PagePoolAction.qml b/src/controls/PagePoolAction.qml --- a/src/controls/PagePoolAction.qml +++ b/src/controls/PagePoolAction.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 @@ -40,7 +27,7 @@ * pagePool: Kirigami.PagePool * The PagePool used by this PagePoolAction. * PagePool will make sure only one instance of the page identified by the page url will be created and reused. - *PagePool's lastLoaderUrl property will be used to control the mutual + *PagePool's lastLoaderUrl property will be used to control the mutual * exclusivity of the checked state of the PagePoolAction instances * sharing the same PagePool */ diff --git a/src/controls/PageRow.qml b/src/controls/PageRow.qml --- a/src/controls/PageRow.qml +++ b/src/controls/PageRow.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.5 @@ -163,7 +150,7 @@ * Pushes a page on the stack. * The page can be defined as a component, item or string. * If an item is used then the page will get re-parented. - * If a string is used then it is interpreted as a url that is used to load a page + * If a string is used then it is interpreted as a url that is used to load a page * component. * The last pushed page will become the current item. * @@ -191,7 +178,7 @@ * Inserts a new page or a list of new at an arbitrary position * The page can be defined as a component, item or string. * If an item is used then the page will get re-parented. - * If a string is used then it is interpreted as a url that is used to load a page + * If a string is used then it is interpreted as a url that is used to load a page * component. * The current Page will not be changed, currentIndex will be adjusted * accordingly if needed to keep the same current page. @@ -284,7 +271,7 @@ } /** - * Remove the given page + * Remove the given page * @param page The page can be given both as integer position or by reference * @return The page that has just been removed * @since 2.7 @@ -439,7 +426,7 @@ var d = root.depth; for (var i = 1; i < d; ++i) { pop(); - } + } } popEnter: Transition { @@ -481,7 +468,7 @@ from: height/2 to: 0 duration: Units.longDuration - easing.type: Easing.OutCubic + easing.type: Easing.OutCubic } } } @@ -570,7 +557,7 @@ if (pageComp.status === Component.Error) { throw new Error("Error while loading page: " + pageComp.errorString()); - } + } } else { // copy properties to the page for (var prop in properties) { diff --git a/src/controls/PasswordField.qml b/src/controls/PasswordField.qml --- a/src/controls/PasswordField.qml +++ b/src/controls/PasswordField.qml @@ -1,20 +1,7 @@ /* - * Copyright (C) 2019 Carl-Lucien Schwan * + * SPDX-FileCopyrightText: 2019 Carl-Lucien Schwan * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Library/Lesser General Public License - * version 2, or (at your option) any later version, as published by the - * Free Software Foundation - * - * 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 Library/Lesser General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.6 diff --git a/src/controls/ScrollablePage.qml b/src/controls/ScrollablePage.qml --- a/src/controls/ScrollablePage.qml +++ b/src/controls/ScrollablePage.qml @@ -1,20 +1,7 @@ /* - * Copyright 2015 Marco Martin + * SPDX-FileCopyrightText: 2015 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 @@ -161,7 +148,7 @@ anchors.topMargin: 0 Keys.forwardTo: root.keyboardNavigationEnabled && root.flickable - ? (("currentItem" in root.flickable) && root.flickable.currentItem ? + ? (("currentItem" in root.flickable) && root.flickable.currentItem ? [ root.flickable.currentItem, root.flickable ] : [ root.flickable ]) : [] diff --git a/src/controls/SearchField.qml b/src/controls/SearchField.qml --- a/src/controls/SearchField.qml +++ b/src/controls/SearchField.qml @@ -1,20 +1,7 @@ /* - * Copyright (C) 2019 Carl-Lucien Schwan * + * SPDX-FileCopyrightText: 2019 Carl-Lucien Schwan * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Library/Lesser General Public License - * version 2, or (at your option) any later version, as published by the - * Free Software Foundation - * - * 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 Library/Lesser General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.6 diff --git a/src/controls/Separator.qml b/src/controls/Separator.qml --- a/src/controls/Separator.qml +++ b/src/controls/Separator.qml @@ -1,21 +1,8 @@ /* - * Copyright 2012 Marco Martin - * Copyright 2016 Aleix Pol Gonzalez + * SPDX-FileCopyrightText: 2012 Marco Martin + * SPDX-FileCopyrightText: 2016 Aleix Pol Gonzalez * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 diff --git a/src/controls/SwipeListItem.qml b/src/controls/SwipeListItem.qml --- a/src/controls/SwipeListItem.qml +++ b/src/controls/SwipeListItem.qml @@ -1,20 +1,7 @@ /* - * Copyright 2010 Marco Martin + * SPDX-FileCopyrightText: 2010 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.5 @@ -44,7 +31,7 @@ * } * ] * } - * + * * } * @endcode * diff --git a/src/controls/Theme.qml b/src/controls/Theme.qml --- a/src/controls/Theme.qml +++ b/src/controls/Theme.qml @@ -1,49 +1,36 @@ /* - * Copyright 2015 Marco Martin + * SPDX-FileCopyrightText: 2015 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.4 pragma Singleton /** * A set of named colors for the application - * - * Since frameworks 5.38 Kirigami.Theme has been made an attached + * + * Since frameworks 5.38 Kirigami.Theme has been made an attached * property - the recommended way to interact with the Kirigami.Theme - * object is documented in its replacement found at + * object is documented in its replacement found at * Kirigami::PlatformTheme. * - * Attempting to access the depreciated colors declared here will - * generate warnings. Use the attached properties color sets instead. + * Attempting to access the depreciated colors declared here will + * generate warnings. Use the attached properties color sets instead. * For example, instead of using: - * + * * @code * color: Kirigami.Theme.buttonTextColor * @endcode - * + * * Use the button color set instead: - * + * * @code * Kirigami.Theme.colorSet: Kirigami.Theme.Button * color: Kirigami.Theme.textColor * @endcode - * + * * For more color sets, see Kirigami::PlatformTheme::ColorSet. * @inherit QtQuick.QtObject */ @@ -57,7 +44,7 @@ property color highlightedTextColor: "#eff0fa" property color backgroundColor: "#eff0f1" property color alternateBackgroundColor: "#bdc3c7" - + property color activeTextColor: "#0176D3" property color activeBackgroundColor: "#0176D3" property color linkColor: "#2196F3" diff --git a/src/controls/ToolBarApplicationHeader.qml b/src/controls/ToolBarApplicationHeader.qml --- a/src/controls/ToolBarApplicationHeader.qml +++ b/src/controls/ToolBarApplicationHeader.qml @@ -1,20 +1,7 @@ /* - * Copyright 2015 Marco Martin + * SPDX-FileCopyrightText: 2015 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.5 diff --git a/src/controls/Units.qml b/src/controls/Units.qml --- a/src/controls/Units.qml +++ b/src/controls/Units.qml @@ -1,20 +1,7 @@ /* - * Copyright 2015 Marco Martin + * SPDX-FileCopyrightText: 2015 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.4 diff --git a/src/controls/UrlButton.qml b/src/controls/UrlButton.qml --- a/src/controls/UrlButton.qml +++ b/src/controls/UrlButton.qml @@ -1,20 +1,7 @@ /* - * Copyright (C) 2018 Aleix Pol Gonzalez + * SPDX-FileCopyrightText: 2018 Aleix Pol Gonzalez * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Library/Lesser General Public License - * version 2, or (at your option) any later version, as published by the - * Free Software Foundation - * - * 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 Library/Lesser General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.2 diff --git a/src/controls/private/ActionButton.qml b/src/controls/private/ActionButton.qml --- a/src/controls/private/ActionButton.qml +++ b/src/controls/private/ActionButton.qml @@ -1,20 +1,7 @@ /* - * Copyright 2015 Marco Martin + * SPDX-FileCopyrightText: 2015 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 @@ -180,7 +167,7 @@ if (actionUnderMouse && actionUnderMouse.trigger) { actionUnderMouse.trigger(); } - + if (actionUnderMouse.hasOwnProperty("children") && actionUnderMouse.children.length > 0) { var subMenuUnderMouse; switch (actionUnderMouse) { diff --git a/src/controls/private/ActionIconGroup.qml b/src/controls/private/ActionIconGroup.qml --- a/src/controls/private/ActionIconGroup.qml +++ b/src/controls/private/ActionIconGroup.qml @@ -1,20 +1,7 @@ /* - * Copyright 2017 Marco Martin + * SPDX-FileCopyrightText: 2017 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQml 2.1 diff --git a/src/controls/private/ActionMenuItem.qml b/src/controls/private/ActionMenuItem.qml --- a/src/controls/private/ActionMenuItem.qml +++ b/src/controls/private/ActionMenuItem.qml @@ -1,20 +1,7 @@ /* - * Copyright 2018 Aleix Pol Gonzalez + * SPDX-FileCopyrightText: 2018 Aleix Pol Gonzalez * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.3 diff --git a/src/controls/private/ActionToolBarLayoutDetails.qml b/src/controls/private/ActionToolBarLayoutDetails.qml --- a/src/controls/private/ActionToolBarLayoutDetails.qml +++ b/src/controls/private/ActionToolBarLayoutDetails.qml @@ -1,21 +1,8 @@ /* - * Copyright 2018 Marco Martin - * Copyright 2019 Arjen Hiemstra + * SPDX-FileCopyrightText: 2018 Marco Martin + * SPDX-FileCopyrightText: 2019 Arjen Hiemstra * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 diff --git a/src/controls/private/ActionsMenu.qml b/src/controls/private/ActionsMenu.qml --- a/src/controls/private/ActionsMenu.qml +++ b/src/controls/private/ActionsMenu.qml @@ -1,20 +1,7 @@ /* - * Copyright 2018 Aleix Pol Gonzalez + * SPDX-FileCopyrightText: 2018 Aleix Pol Gonzalez * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.3 diff --git a/src/controls/private/BannerImage.qml b/src/controls/private/BannerImage.qml --- a/src/controls/private/BannerImage.qml +++ b/src/controls/private/BannerImage.qml @@ -1,20 +1,7 @@ /* - * Copyright 2018 Marco Martin + * SPDX-FileCopyrightText: 2018 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.6 @@ -35,7 +22,7 @@ */ property alias imageSource: root.source property alias iconSource: root.titleIcon - + /** * title: string * A title to be displayed on top of the image @@ -91,9 +78,9 @@ anchors { left: parent.left right: parent.right - top: root.status != + top: root.status != Image.Ready || (root.titleAlignment & Qt.AlignTop) ? parent.top : undefined - bottom: root.status != + bottom: root.status != Image.Ready || (root.titleAlignment & Qt.AlignBottom) ? parent.bottom : undefined } visible: root.source != "" && root.title != "" && ((root.titleAlignment & Qt.AlignTop) || (root.titleAlignment & Qt.AlignBottom)) @@ -107,7 +94,7 @@ } GradientStop { position: (root.titleAlignment & Qt.AlignTop) ? 1.0 : 0.0 - color: Qt.rgba(0, 0, 0, root.status == + color: Qt.rgba(0, 0, 0, root.status == Image.Ready ? 0 : 0.3) } } diff --git a/src/controls/private/CardsGridViewPrivate.qml b/src/controls/private/CardsGridViewPrivate.qml --- a/src/controls/private/CardsGridViewPrivate.qml +++ b/src/controls/private/CardsGridViewPrivate.qml @@ -1,20 +1,7 @@ /* - * Copyright 2018 Marco Martin + * SPDX-FileCopyrightText: 2018 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.10 diff --git a/src/controls/private/CardsListViewPrivate.qml b/src/controls/private/CardsListViewPrivate.qml --- a/src/controls/private/CardsListViewPrivate.qml +++ b/src/controls/private/CardsListViewPrivate.qml @@ -1,20 +1,7 @@ /* - * Copyright 2018 Marco Martin + * SPDX-FileCopyrightText: 2018 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.10 diff --git a/src/controls/private/ContextDrawerActionItem.qml b/src/controls/private/ContextDrawerActionItem.qml --- a/src/controls/private/ContextDrawerActionItem.qml +++ b/src/controls/private/ContextDrawerActionItem.qml @@ -1,20 +1,7 @@ /* - * Copyright 2019 Marco Martin + * SPDX-FileCopyrightText: 2019 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.6 @@ -49,7 +36,7 @@ visible: listItem.isSeparator Layout.fillWidth: true - + ActionsMenu { id: actionsMenu y: Settings.isMobile ? -height : listItem.height diff --git a/src/controls/private/CornerShadow.qml b/src/controls/private/CornerShadow.qml --- a/src/controls/private/CornerShadow.qml +++ b/src/controls/private/CornerShadow.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 @@ -45,16 +32,16 @@ switch (corner) { case Qt.TopLeftCorner: case Qt.BottomLeftCorner: - return -width/2; + return -width/2; default: return width/2; } } verticalOffset: { switch (corner) { case Qt.TopLeftCorner: case Qt.TopRightCorner: - return -width/2; + return -width/2; default: return width/2; } diff --git a/src/controls/private/DefaultCardBackground.qml b/src/controls/private/DefaultCardBackground.qml --- a/src/controls/private/DefaultCardBackground.qml +++ b/src/controls/private/DefaultCardBackground.qml @@ -1,20 +1,7 @@ /* - * Copyright 2019 Marco Martin + * SPDX-FileCopyrightText: 2019 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.6 diff --git a/src/controls/private/DefaultListItemBackground.qml b/src/controls/private/DefaultListItemBackground.qml --- a/src/controls/private/DefaultListItemBackground.qml +++ b/src/controls/private/DefaultListItemBackground.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 diff --git a/src/controls/private/EdgeShadow.qml b/src/controls/private/EdgeShadow.qml --- a/src/controls/private/EdgeShadow.qml +++ b/src/controls/private/EdgeShadow.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 diff --git a/src/controls/private/GlobalDrawerActionItem.qml b/src/controls/private/GlobalDrawerActionItem.qml --- a/src/controls/private/GlobalDrawerActionItem.qml +++ b/src/controls/private/GlobalDrawerActionItem.qml @@ -1,20 +1,7 @@ /* - * Copyright 2015 Marco Martin + * SPDX-FileCopyrightText: 2015 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.6 diff --git a/src/controls/private/PageActionPropertyGroup.qml b/src/controls/private/PageActionPropertyGroup.qml --- a/src/controls/private/PageActionPropertyGroup.qml +++ b/src/controls/private/PageActionPropertyGroup.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQml 2.1 diff --git a/src/controls/private/PrivateActionToolButton.qml b/src/controls/private/PrivateActionToolButton.qml --- a/src/controls/private/PrivateActionToolButton.qml +++ b/src/controls/private/PrivateActionToolButton.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 diff --git a/src/controls/private/RefreshableScrollView.qml b/src/controls/private/RefreshableScrollView.qml --- a/src/controls/private/RefreshableScrollView.qml +++ b/src/controls/private/RefreshableScrollView.qml @@ -1,20 +1,7 @@ /* - * Copyright 2015 Marco Martin + * SPDX-FileCopyrightText: 2015 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 @@ -154,7 +141,7 @@ } } Connections { - enabled: typeof applicationWindow !== "undefined" + enabled: typeof applicationWindow !== "undefined" target: typeof applicationWindow !== "undefined" ? applicationWindow() : null onReachableModeChanged: { overshootResetTimer.running = applicationWindow().reachableMode; diff --git a/src/controls/private/SwipeItemEventFilter.qml b/src/controls/private/SwipeItemEventFilter.qml --- a/src/controls/private/SwipeItemEventFilter.qml +++ b/src/controls/private/SwipeItemEventFilter.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.5 diff --git a/src/controls/private/globaltoolbar/AbstractPageHeader.qml b/src/controls/private/globaltoolbar/AbstractPageHeader.qml --- a/src/controls/private/globaltoolbar/AbstractPageHeader.qml +++ b/src/controls/private/globaltoolbar/AbstractPageHeader.qml @@ -1,20 +1,7 @@ /* - * Copyright 2018 Marco Martin + * SPDX-FileCopyrightText: 2018 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.5 diff --git a/src/controls/private/globaltoolbar/BreadcrumbControl.qml b/src/controls/private/globaltoolbar/BreadcrumbControl.qml --- a/src/controls/private/globaltoolbar/BreadcrumbControl.qml +++ b/src/controls/private/globaltoolbar/BreadcrumbControl.qml @@ -1,20 +1,7 @@ /* - * Copyright 2018 Marco Martin + * SPDX-FileCopyrightText: 2018 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.5 diff --git a/src/controls/private/globaltoolbar/PageRowGlobalToolBarStyleGroup.qml b/src/controls/private/globaltoolbar/PageRowGlobalToolBarStyleGroup.qml --- a/src/controls/private/globaltoolbar/PageRowGlobalToolBarStyleGroup.qml +++ b/src/controls/private/globaltoolbar/PageRowGlobalToolBarStyleGroup.qml @@ -1,20 +1,7 @@ /* - * Copyright 2018 Marco Martin + * SPDX-FileCopyrightText: 2018 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 diff --git a/src/controls/private/globaltoolbar/PageRowGlobalToolBarUI.qml b/src/controls/private/globaltoolbar/PageRowGlobalToolBarUI.qml --- a/src/controls/private/globaltoolbar/PageRowGlobalToolBarUI.qml +++ b/src/controls/private/globaltoolbar/PageRowGlobalToolBarUI.qml @@ -1,28 +1,15 @@ /* - * Copyright 2018 Marco Martin + * SPDX-FileCopyrightText: 2018 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.6 import QtQuick.Layouts 1.2 import org.kde.kirigami 2.4 as Kirigami import "../../templates/private" as TemplatesPrivate import "../" as Private - + Kirigami.AbstractApplicationHeader { id: header readonly property int leftReservedSpace: (buttonsLayout.visible && buttonsLayout.visibleChildren.length > 0 ? buttonsLayout.width : 0) + (leftHandleAnchor.visible ? leftHandleAnchor.width : 0) + (menuButton.visible ? menuButton.width : 0) diff --git a/src/controls/private/globaltoolbar/TabBarControl.qml b/src/controls/private/globaltoolbar/TabBarControl.qml --- a/src/controls/private/globaltoolbar/TabBarControl.qml +++ b/src/controls/private/globaltoolbar/TabBarControl.qml @@ -1,20 +1,7 @@ /* - * Copyright 2018 Marco Martin + * SPDX-FileCopyrightText: 2018 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.5 diff --git a/src/controls/private/globaltoolbar/TitlesPageHeader.qml b/src/controls/private/globaltoolbar/TitlesPageHeader.qml --- a/src/controls/private/globaltoolbar/TitlesPageHeader.qml +++ b/src/controls/private/globaltoolbar/TitlesPageHeader.qml @@ -1,20 +1,7 @@ /* - * Copyright 2018 Marco Martin + * SPDX-FileCopyrightText: 2018 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.5 diff --git a/src/controls/private/globaltoolbar/ToolBarPageHeader.qml b/src/controls/private/globaltoolbar/ToolBarPageHeader.qml --- a/src/controls/private/globaltoolbar/ToolBarPageHeader.qml +++ b/src/controls/private/globaltoolbar/ToolBarPageHeader.qml @@ -1,20 +1,7 @@ /* - * Copyright 2018 Marco Martin + * SPDX-FileCopyrightText: 2018 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.5 diff --git a/src/controls/templates/AbstractApplicationHeader.qml b/src/controls/templates/AbstractApplicationHeader.qml --- a/src/controls/templates/AbstractApplicationHeader.qml +++ b/src/controls/templates/AbstractApplicationHeader.qml @@ -1,20 +1,7 @@ /* - * Copyright 2015 Marco Martin + * SPDX-FileCopyrightText: 2015 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 @@ -54,7 +41,7 @@ property int bottomPadding: 0 property bool separatorVisible: true - LayoutMirroring.enabled: Qt.application.layoutDirection == Qt.RightToLeft + LayoutMirroring.enabled: Qt.application.layoutDirection == Qt.RightToLeft LayoutMirroring.childrenInherit: true //FIXME: remove diff --git a/src/controls/templates/AbstractCard.qml b/src/controls/templates/AbstractCard.qml --- a/src/controls/templates/AbstractCard.qml +++ b/src/controls/templates/AbstractCard.qml @@ -1,20 +1,7 @@ /* - * Copyright 2018 Marco Martin + * SPDX-FileCopyrightText: 2018 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.6 @@ -69,7 +56,7 @@ Layout.fillWidth: true implicitWidth: Math.max(background.implicitWidth, mainLayout.implicitWidth) + leftPadding + rightPadding - + implicitHeight: mainLayout.implicitHeight + topPadding + bottomPadding hoverEnabled: !Kirigami.Settings.tabletMode && showClickFeedback diff --git a/src/controls/templates/AbstractListItem.qml b/src/controls/templates/AbstractListItem.qml --- a/src/controls/templates/AbstractListItem.qml +++ b/src/controls/templates/AbstractListItem.qml @@ -1,20 +1,7 @@ /* - * Copyright 2010 Marco Martin + * SPDX-FileCopyrightText: 2010 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 @@ -33,7 +20,7 @@ */ T2.ItemDelegate { id: listItem - + /** * supportsMouseEvents: bool * Holds if the item emits signals related to mouse interaction. @@ -55,7 +42,7 @@ * If true the background of the list items will be alternating between two * colors, helping readability with multiple column views. * Use it only when implementing a view which shows data visually in multiple columns - * @ since 2.7 + * @ since 2.7 */ property bool alternatingBackground: false diff --git a/src/controls/templates/ApplicationHeader.qml b/src/controls/templates/ApplicationHeader.qml --- a/src/controls/templates/ApplicationHeader.qml +++ b/src/controls/templates/ApplicationHeader.qml @@ -1,20 +1,7 @@ /* - * Copyright 2015 Marco Martin + * SPDX-FileCopyrightText: 2015 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.5 @@ -159,16 +146,16 @@ from: height to: 0 duration: Units.longDuration - easing.type: Easing.OutCubic + easing.type: Easing.OutCubic } } pushExit: Transition { YAnimator { from: 0 to: -height duration: Units.longDuration - easing.type: Easing.OutCubic + easing.type: Easing.OutCubic } } diff --git a/src/controls/templates/InlineMessage.qml b/src/controls/templates/InlineMessage.qml --- a/src/controls/templates/InlineMessage.qml +++ b/src/controls/templates/InlineMessage.qml @@ -1,20 +1,7 @@ /* - * Copyright 2018 Eike Hein + * SPDX-FileCopyrightText: 2018 Eike Hein * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 diff --git a/src/controls/templates/OverlayDrawer.qml b/src/controls/templates/OverlayDrawer.qml --- a/src/controls/templates/OverlayDrawer.qml +++ b/src/controls/templates/OverlayDrawer.qml @@ -1,20 +1,7 @@ /* - * Copyright 2012 Marco Martin + * SPDX-FileCopyrightText: 2012 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 @@ -51,7 +38,7 @@ /** * peeking: true * When true the drawer is in a state between open and closed. the drawer is visible but not completely open. - * This is usually the case when the user is dragging the drawer from a screen + * This is usually the case when the user is dragging the drawer from a screen * edge, so the user is "peeking" what's in the drawer */ property bool peeking: false @@ -96,7 +83,7 @@ * If no custom icon is set, a menu icon is shown for the application globalDrawer * and an overflow menu icon is shown for the contextDrawer. * That's the default for the GlobalDrawer and ContextDrawer components respectively. - * + * * For OverlayDrawer the default is view-right-close or view-left-close depending on the drawer location * @since 2.5 */ @@ -111,7 +98,7 @@ * * If no custom icon is set, an X icon is shown, * which will morph into the Menu or overflow icons - * + * * For OverlayDrawer the default is view-right-new or view-left-new depending on the drawer location * @since 2.5 */ @@ -205,7 +192,7 @@ if (applicationWindow().footer) { margin = applicationWindow().footer.height + Units.smallSpacing; } - + if(root.height < root.parent.height) { margin = root.parent.height - root.height - root.y + Units.smallSpacing; } @@ -349,7 +336,7 @@ script: exitAnimation.animating = true } SmoothedAnimation { - velocity: 5 + velocity: 5 } ScriptAction { script: exitAnimation.animating = false diff --git a/src/controls/templates/OverlaySheet.qml b/src/controls/templates/OverlaySheet.qml --- a/src/controls/templates/OverlaySheet.qml +++ b/src/controls/templates/OverlaySheet.qml @@ -1,21 +1,8 @@ /* -* Copyright (C) 2016 by Marco Martin -* -* This program 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, 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 Library General Public License for more details -* -* You should have received a copy of the GNU Library General Public -* License along with this program; if not, write to the -* Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. -*/ + * SPDX-FileCopyrightText: 2016 by Marco Martin + * + * SPDX-License-Identifier: LGPL-2.0-or-later + */ import QtQuick 2.11 import QtQuick.Layouts 1.2 @@ -260,7 +247,7 @@ cursorY = focusItem.positionToRectangle(focusItem.cursorPosition).y; } - + var pos = focusItem.mapToItem(flickableContents, 0, cursorY - Units.gridUnit*3); //focused item already visible? add some margin for the space of the action buttons if (pos.y >= scrollView.flickableItem.contentY && pos.y <= scrollView.flickableItem.contentY + scrollView.flickableItem.height - Units.gridUnit * 8) { @@ -270,7 +257,7 @@ } ParallelAnimation { - id: openAnimation + id: openAnimation property int margins: Units.gridUnit * 5 property int topOpenPosition: Math.min(-mainItem.height*0.15, scrollView.flickableItem.contentHeight - mainItem.height + margins) property alias from: openAnimationInternal.from @@ -366,7 +353,7 @@ rightMargin: closeIcon.width + Units.smallSpacing } } - + EdgeShadow { z: -2 edge: Qt.TopEdge diff --git a/src/controls/templates/SwipeListItem.qml b/src/controls/templates/SwipeListItem.qml --- a/src/controls/templates/SwipeListItem.qml +++ b/src/controls/templates/SwipeListItem.qml @@ -1,20 +1,7 @@ /* - * Copyright 2019 Marco Martin + * SPDX-FileCopyrightText: 2019 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.6 @@ -47,7 +34,7 @@ * } * ] * } - * + * * } * @endcode * @@ -76,7 +63,7 @@ * If true the background of the list items will be alternating between two * colors, helping readability with multiple column views. * Use it only when implementing a view which shows data visually in multiple columns - * @ since 2.7 + * @ since 2.7 */ property bool alternatingBackground: false @@ -166,7 +153,7 @@ leftPadding: padding * 2 rightPadding: padding * 2 + (overlayLoader.visible ? overlayLoader.width : 0) + Kirigami.Units.smallSpacing - + topPadding: padding bottomPadding: padding @@ -284,7 +271,7 @@ } onPositionChanged: { var pos = mapToItem(listItem, mouse.x, mouse.y); - + if (listItem.LayoutMirroring.enabled) { listItem.swipe.position = Math.max(0, Math.min(openPosition, (pos.x / listItem.width))); openIntention = listItem.swipe.position > lastPosition; @@ -404,7 +391,7 @@ } } - + RowLayout { id: actionsLayout anchors { @@ -415,7 +402,7 @@ } visible: parent != listItem parent: Kirigami.Settings.tabletMode - ? listItem.swipe.leftItem || listItem.swipe.rightItem || listItem + ? listItem.swipe.leftItem || listItem.swipe.rightItem || listItem : overlayLoader property bool hasVisibleActions: false @@ -469,7 +456,7 @@ } } } - + background: DefaultListItemBackground {} diff --git a/src/controls/templates/private/BackButton.qml b/src/controls/templates/private/BackButton.qml --- a/src/controls/templates/private/BackButton.qml +++ b/src/controls/templates/private/BackButton.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 diff --git a/src/controls/templates/private/ContextIcon.qml b/src/controls/templates/private/ContextIcon.qml --- a/src/controls/templates/private/ContextIcon.qml +++ b/src/controls/templates/private/ContextIcon.qml @@ -1,20 +1,7 @@ /* - * Copyright 2015 Marco Martin + * SPDX-FileCopyrightText: 2015 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 diff --git a/src/controls/templates/private/ForwardButton.qml b/src/controls/templates/private/ForwardButton.qml --- a/src/controls/templates/private/ForwardButton.qml +++ b/src/controls/templates/private/ForwardButton.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 diff --git a/src/controls/templates/private/GenericDrawerIcon.qml b/src/controls/templates/private/GenericDrawerIcon.qml --- a/src/controls/templates/private/GenericDrawerIcon.qml +++ b/src/controls/templates/private/GenericDrawerIcon.qml @@ -1,20 +1,7 @@ /* - * Copyright 2015 Marco Martin + * SPDX-FileCopyrightText: 2015 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 diff --git a/src/controls/templates/private/IconPropertiesGroup.qml b/src/controls/templates/private/IconPropertiesGroup.qml --- a/src/controls/templates/private/IconPropertiesGroup.qml +++ b/src/controls/templates/private/IconPropertiesGroup.qml @@ -1,20 +1,7 @@ /* - * Copyright 2017 Marco Martin + * SPDX-FileCopyrightText: 2017 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQml 2.1 diff --git a/src/controls/templates/private/MenuIcon.qml b/src/controls/templates/private/MenuIcon.qml --- a/src/controls/templates/private/MenuIcon.qml +++ b/src/controls/templates/private/MenuIcon.qml @@ -1,20 +1,7 @@ /* - * Copyright 2015 Marco Martin + * SPDX-FileCopyrightText: 2015 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 diff --git a/src/controls/templates/private/PassiveNotification.qml b/src/controls/templates/private/PassiveNotification.qml --- a/src/controls/templates/private/PassiveNotification.qml +++ b/src/controls/templates/private/PassiveNotification.qml @@ -1,20 +1,7 @@ /* - * Copyright 2015 Marco Martin + * SPDX-FileCopyrightText: 2015 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.5 diff --git a/src/controls/templates/private/ScrollView.qml b/src/controls/templates/private/ScrollView.qml --- a/src/controls/templates/private/ScrollView.qml +++ b/src/controls/templates/private/ScrollView.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 import QtQuick.Controls 2.0 @@ -70,16 +57,16 @@ interval: 0 onTriggered: { //create or destroy the vertical scrollbar - if ((!flickableItem.ScrollBar.vertical) && + if ((!flickableItem.ScrollBar.vertical) && verticalScrollBarPolicy != Qt.ScrollBarAlwaysOff) { flickableItem.ScrollBar.vertical = verticalScrollComponent.createObject(root); } else if (flickableItem.ScrollBar.vertical && verticalScrollBarPolicy == Qt.ScrollBarAlwaysOff) { flickableItem.ScrollBar.vertical.destroy(); } //create or destroy the horizontal scrollbar - if ((!flickableItem.ScrollBar.horizontal) && + if ((!flickableItem.ScrollBar.horizontal) && horizontalScrollBarPolicy != Qt.ScrollBarAlwaysOff) { flickableItem.ScrollBar.horizontal = horizontalScrollComponent.createObject(root); } else if (flickableItem.ScrollBar.horizontal && diff --git a/src/delegaterecycler.h b/src/delegaterecycler.h --- a/src/delegaterecycler.h +++ b/src/delegaterecycler.h @@ -1,20 +1,7 @@ /* - * Copyright 2018 Marco Martin + * SPDX-FileCopyrightText: 2018 Marco Martin * - * This program 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, 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 Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ #ifndef DELEGATERECYCLER_H @@ -52,8 +39,8 @@ * be taken from the pool and reused, minimizing the need of instantiating new objects * and deleting old ones. It ensures scrolling of lists with heavy delegates is * smoother and helps with memory fragmentations as well. - * - * NOTE: CardListView and CardGridView are already using this recycler, so do NOT use it + * + * NOTE: CardListView and CardGridView are already using this recycler, so do NOT use it * as a delegate for those 2 views. * Also, do NOT use this with a Repeater. * @since 2.4 diff --git a/src/delegaterecycler.cpp b/src/delegaterecycler.cpp --- a/src/delegaterecycler.cpp +++ b/src/delegaterecycler.cpp @@ -1,21 +1,8 @@ /* - * Copyright 2011 Marco Martin - * Copyright 2014 Aleix Pol Gonzalez + * SPDX-FileCopyrightText: 2011 Marco Martin + * SPDX-FileCopyrightText: 2014 Aleix Pol Gonzalez * - * This program 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, 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 Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ #include "delegaterecycler.h" @@ -109,7 +96,7 @@ if (attached) { emit attached->pooled(); } - + item->setParentItem(nullptr); items.append(item); } diff --git a/src/enums.h b/src/enums.h --- a/src/enums.h +++ b/src/enums.h @@ -1,21 +1,8 @@ /* -* Copyright (C) 2016 by Marco Martin -* -* This program 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, 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 Library General Public License for more details -* -* You should have received a copy of the GNU Library General Public -* License along with this program; if not, write to the -* Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ + * SPDX-FileCopyrightText: 2016 Marco Martin + * + * SPDX-License-Identifier: LGPL-2.0-or-later + */ #ifndef ENUMS_H #define ENUMS_H diff --git a/src/enums.cpp b/src/enums.cpp --- a/src/enums.cpp +++ b/src/enums.cpp @@ -1,21 +1,8 @@ /* -* Copyright (C) 2016 by Marco Martin -* -* This program 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, 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 Library General Public License for more details -* -* You should have received a copy of the GNU Library General Public -* License along with this program; if not, write to the -* Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ + * SPDX-FileCopyrightText: 2016 Marco Martin + * + * SPDX-License-Identifier: LGPL-2.0-or-later + */ #include "enums.h" diff --git a/src/formlayoutattached.h b/src/formlayoutattached.h --- a/src/formlayoutattached.h +++ b/src/formlayoutattached.h @@ -1,21 +1,8 @@ /* -* Copyright (C) 2017 by Marco Martin -* -* This program 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, 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 Library General Public License for more details -* -* You should have received a copy of the GNU Library General Public -* License along with this program; if not, write to the -* Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ + * SPDX-FileCopyrightText: 2017 Marco Martin + * + * SPDX-License-Identifier: LGPL-2.0-or-later + */ #ifndef FORMLAYOUTATTACHED_H #define FORMLAYOUTATTACHED_H @@ -98,12 +85,12 @@ * If true a checkbox is prepended to the FormLayout item. */ Q_PROPERTY(bool checkable READ checkable WRITE setCheckable NOTIFY checkableChanged) - + /** * This property is true when the checkbox of the FormLayout item is checked, @see checkable. */ Q_PROPERTY(bool checked READ checked WRITE setChecked NOTIFY checkedChanged) - + /** * This property holds whether the label and the checkbox of the FormLayout item receive mouse and keyboard events. */ @@ -129,13 +116,13 @@ void setIsSection(bool section); bool isSection() const; - + void setCheckable(bool checkable); bool checkable() const; - + void setChecked(bool checked); bool checked() const; - + void setEnabled(bool enabled); bool enabled() const; diff --git a/src/formlayoutattached.cpp b/src/formlayoutattached.cpp --- a/src/formlayoutattached.cpp +++ b/src/formlayoutattached.cpp @@ -1,21 +1,8 @@ /* -* Copyright (C) 2017 by Marco Martin -* -* This program 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, 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 Library General Public License for more details -* -* You should have received a copy of the GNU Library General Public -* License along with this program; if not, write to the -* Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ + * SPDX-FileCopyrightText: 2017 Marco Martin + * + * SPDX-License-Identifier: LGPL-2.0-or-later + */ #include "formlayoutattached.h" #include @@ -66,7 +53,7 @@ if (checkable == m_checkable) { return; } - + m_checkable = checkable; emit checkableChanged(); } @@ -81,7 +68,7 @@ if (checked == m_checked) { return; } - + m_checked = checked; emit checkedChanged(); } @@ -96,7 +83,7 @@ if (enabled == m_enabled) { return; } - + m_enabled = enabled; emit enabledChanged(); } diff --git a/src/icon.h b/src/icon.h --- a/src/icon.h +++ b/src/icon.h @@ -1,21 +1,8 @@ /* - * Copyright 2011 Marco Martin - * Copyright 2014 Aleix Pol Gonzalez + * SPDX-FileCopyrightText: 2011 Marco Martin + * SPDX-FileCopyrightText: 2014 Aleix Pol Gonzalez * - * This program 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, 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 Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ #pragma once diff --git a/src/icon.cpp b/src/icon.cpp --- a/src/icon.cpp +++ b/src/icon.cpp @@ -1,21 +1,8 @@ /* - * Copyright 2011 Marco Martin - * Copyright 2014 Aleix Pol Gonzalez + * SPDX-FileCopyrightText: 2011 Marco Martin + * SPDX-FileCopyrightText: 2014 Aleix Pol Gonzalez * - * This program 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, 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 Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ #include "icon.h" diff --git a/src/kirigamiplugin.h b/src/kirigamiplugin.h --- a/src/kirigamiplugin.h +++ b/src/kirigamiplugin.h @@ -1,22 +1,9 @@ /* - * Copyright 2009 by Alan Alpert - * Copyright 2010 by Ménard Alexis - * Copyright 2010 by Marco Martin - - * This program 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, 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 Library General Public License for more details + * SPDX-FileCopyrightText: 2009 Alan Alpert + * SPDX-FileCopyrightText: 2010 Ménard Alexis + * SPDX-FileCopyrightText: 2010 Marco Martin * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ #ifndef KIRIGAMIPLUGIN_H diff --git a/src/kirigamiplugin.cpp b/src/kirigamiplugin.cpp --- a/src/kirigamiplugin.cpp +++ b/src/kirigamiplugin.cpp @@ -1,22 +1,9 @@ /* - * Copyright 2009 by Alan Alpert - * Copyright 2010 by Ménard Alexis - * Copyright 2010 by Marco Martin - - * This program 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, or - * (at your option) any later version. + * SPDX-FileCopyrightText: 2009 Alan Alpert + * SPDX-FileCopyrightText: 2010 Ménard Alexis + * SPDX-FileCopyrightText: 2010 Marco Martin * - * 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ #include "kirigamiplugin.h" diff --git a/src/libkirigami/basictheme.cpp b/src/libkirigami/basictheme.cpp --- a/src/libkirigami/basictheme.cpp +++ b/src/libkirigami/basictheme.cpp @@ -1,21 +1,8 @@ /* -* Copyright (C) 2017 by Marco Martin -* -* This program 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, 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 Library General Public License for more details -* -* You should have received a copy of the GNU Library General Public -* License along with this program; if not, write to the -* Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ + * SPDX-FileCopyrightText: 2017 by Marco Martin + * + * SPDX-License-Identifier: LGPL-2.0-or-later + */ #include "basictheme_p.h" #include @@ -112,9 +99,9 @@ connect(basicThemeDeclarative()->instance(this), SIGNAL(viewTextColorChanged()), basicThemeDeclarative()->m_colorSyncTimer, SLOT(start())); - connect(basicThemeDeclarative()->instance(this), SIGNAL(viewBackgroundColorChanged()), + connect(basicThemeDeclarative()->instance(this), SIGNAL(viewBackgroundColorChanged()), basicThemeDeclarative()->m_colorSyncTimer, SLOT(start())); - connect(basicThemeDeclarative()->instance(this), SIGNAL(viewAlternateBackgroundColorChanged()), + connect(basicThemeDeclarative()->instance(this), SIGNAL(viewAlternateBackgroundColorChanged()), basicThemeDeclarative()->m_colorSyncTimer, SLOT(start())); connect(basicThemeDeclarative()->instance(this), SIGNAL(viewHoverColorChanged()), basicThemeDeclarative()->m_colorSyncTimer, SLOT(start())); diff --git a/src/libkirigami/basictheme_p.h b/src/libkirigami/basictheme_p.h --- a/src/libkirigami/basictheme_p.h +++ b/src/libkirigami/basictheme_p.h @@ -1,21 +1,8 @@ /* -* Copyright (C) 2017 by Marco Martin -* -* This program 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, 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 Library General Public License for more details -* -* You should have received a copy of the GNU Library General Public -* License along with this program; if not, write to the -* Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ + * SPDX-FileCopyrightText: 2017 by Marco Martin + * + * SPDX-License-Identifier: LGPL-2.0-or-later + */ #ifndef BASICTHEME_H #define BASICTHEME_H diff --git a/src/libkirigami/kirigamipluginfactory.h b/src/libkirigami/kirigamipluginfactory.h --- a/src/libkirigami/kirigamipluginfactory.h +++ b/src/libkirigami/kirigamipluginfactory.h @@ -1,21 +1,8 @@ /* -* Copyright (C) 2017 by Marco Martin -* -* This program 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, 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 Library General Public License for more details -* -* You should have received a copy of the GNU Library General Public -* License along with this program; if not, write to the -* Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ + * SPDX-FileCopyrightText: 2017 by Marco Martin + * + * SPDX-License-Identifier: LGPL-2.0-or-later + */ #ifndef KIRIGAMIPLUGINFACTORY_H #define KIRIGAMIPLUGINFACTORY_H diff --git a/src/libkirigami/kirigamipluginfactory.cpp b/src/libkirigami/kirigamipluginfactory.cpp --- a/src/libkirigami/kirigamipluginfactory.cpp +++ b/src/libkirigami/kirigamipluginfactory.cpp @@ -1,21 +1,8 @@ /* -* Copyright (C) 2017 by Marco Martin -* -* This program 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, 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 Library General Public License for more details -* -* You should have received a copy of the GNU Library General Public -* License along with this program; if not, write to the -* Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ + * SPDX-FileCopyrightText: 2017 by Marco Martin + * + * SPDX-License-Identifier: LGPL-2.0-or-later + */ #include "kirigamipluginfactory.h" #include "platformtheme.h" diff --git a/src/libkirigami/platformtheme.h b/src/libkirigami/platformtheme.h --- a/src/libkirigami/platformtheme.h +++ b/src/libkirigami/platformtheme.h @@ -1,21 +1,8 @@ /* -* Copyright (C) 2017 by Marco Martin -* -* This program 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, 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 Library General Public License for more details -* -* You should have received a copy of the GNU Library General Public -* License along with this program; if not, write to the -* Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ + * SPDX-FileCopyrightText: 2017 by Marco Martin + * + * SPDX-License-Identifier: LGPL-2.0-or-later + */ #ifndef PLATFORMTHEME_H #define PLATFORMTHEME_H @@ -129,7 +116,7 @@ * The generic background color * Alternate background; for example, for use in lists. * This color may be the same as BackgroundNormal, - * especially in sets other than View and Window. + * especially in sets other than View and Window. */ Q_PROPERTY(QColor alternateBackgroundColor READ alternateBackgroundColor WRITE setCustomAlternateBackgroundColor RESET setCustomAlternateBackgroundColor NOTIFY colorsChanged) @@ -167,7 +154,7 @@ * Background color for positive areas, such as success messages and trusted content */ Q_PROPERTY(QColor positiveBackgroundColor READ positiveBackgroundColor WRITE setCustomPositiveBackgroundColor RESET setCustomPositiveBackgroundColor NOTIFY colorsChanged) - + //decoration colors /** * A decoration color that indicates active focus diff --git a/src/libkirigami/platformtheme.cpp b/src/libkirigami/platformtheme.cpp --- a/src/libkirigami/platformtheme.cpp +++ b/src/libkirigami/platformtheme.cpp @@ -1,21 +1,8 @@ /* -* Copyright (C) 2017 by Marco Martin -* -* This program 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, 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 Library General Public License for more details -* -* You should have received a copy of the GNU Library General Public -* License along with this program; if not, write to the -* Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ + * SPDX-FileCopyrightText: 2017 by Marco Martin + * + * SPDX-License-Identifier: LGPL-2.0-or-later + */ #include "platformtheme.h" #include "kirigamipluginfactory.h" @@ -184,16 +171,16 @@ } break; } - + } } QColor PlatformThemePrivate::tint(const QColor &c1, const QColor &c2, qreal ratio) { qreal r = c1.redF() + (c2.redF() - c1.redF()) * ratio; qreal g = c1.greenF() + (c2.greenF() - c1.greenF()) * ratio; qreal b = c1.blueF() + (c2.blueF() - c1.blueF()) * ratio; - + return QColor::fromRgbF(r, g, b, 1); } diff --git a/src/libkirigami/tabletmodewatcher.h b/src/libkirigami/tabletmodewatcher.h --- a/src/libkirigami/tabletmodewatcher.h +++ b/src/libkirigami/tabletmodewatcher.h @@ -1,21 +1,8 @@ /* -* Copyright 2018 Marco Martin -* -* This program 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, 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 Library General Public License for more details -* -* You should have received a copy of the GNU Library General Public -* License along with this program; if not, write to the -* Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ + * SPDX-FileCopyrightText: 2018 Marco Martin + * + * SPDX-License-Identifier: LGPL-2.0-or-later + */ #ifndef KIRIGAMI_TABLETMODEWATCHER #define KIRIGAMI_TABLETMODEWATCHER diff --git a/src/libkirigami/tabletmodewatcher.cpp b/src/libkirigami/tabletmodewatcher.cpp --- a/src/libkirigami/tabletmodewatcher.cpp +++ b/src/libkirigami/tabletmodewatcher.cpp @@ -1,21 +1,8 @@ /* -* Copyright 2018 Marco Martin -* -* This program 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, 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 Library General Public License for more details -* -* You should have received a copy of the GNU Library General Public -* License along with this program; if not, write to the -* Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ + * SPDX-FileCopyrightText: 2018 Marco Martin + * + * SPDX-License-Identifier: LGPL-2.0-or-later + */ #include "tabletmodewatcher.h" diff --git a/src/mnemonicattached.h b/src/mnemonicattached.h --- a/src/mnemonicattached.h +++ b/src/mnemonicattached.h @@ -1,21 +1,8 @@ /* -* Copyright (C) 2017 by Marco Martin -* -* This program 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, 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 Library General Public License for more details -* -* You should have received a copy of the GNU Library General Public -* License along with this program; if not, write to the -* Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ + * SPDX-FileCopyrightText: 2017 Marco Martin + * + * SPDX-License-Identifier: LGPL-2.0-or-later + */ #ifndef MNEMONICATTACHED_H #define MNEMONICATTACHED_H diff --git a/src/mnemonicattached.cpp b/src/mnemonicattached.cpp --- a/src/mnemonicattached.cpp +++ b/src/mnemonicattached.cpp @@ -1,21 +1,8 @@ /* -* Copyright (C) 2017 by Marco Martin -* -* This program 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, 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 Library General Public License for more details -* -* You should have received a copy of the GNU Library General Public -* License along with this program; if not, write to the -* Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ + * SPDX-FileCopyrightText: 2017 Marco Martin + * + * SPDX-License-Identifier: LGPL-2.0-or-later + */ #include "mnemonicattached.h" #include diff --git a/src/pagepool.h b/src/pagepool.h --- a/src/pagepool.h +++ b/src/pagepool.h @@ -1,20 +1,7 @@ /* - * Copyright 2019 Marco Martin + * SPDX-FileCopyrightText: 2019 Marco Martin * - * This program 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, 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 Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ #pragma once @@ -63,7 +50,7 @@ * or a relative one to the path of the qml file the PagePool is instantiated from * @param callback If we are loading a remote url, we can't have the item immediately but will be passed as a parameter to the provided callback. * Normally, don't set a callback, use it only in case of remote urls. - * @returns the page instance that will have been created if necessary. + * @returns the page instance that will have been created if necessary. * If the url is remote it will return null, * as well will return null if the callback has been provided */ diff --git a/src/pagepool.cpp b/src/pagepool.cpp --- a/src/pagepool.cpp +++ b/src/pagepool.cpp @@ -1,20 +1,7 @@ /* - * Copyright 2019 Marco Martin + * SPDX-FileCopyrightText: 2019 Marco Martin * - * This program 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, 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 Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ #include "pagepool.h" diff --git a/src/scenepositionattached.h b/src/scenepositionattached.h --- a/src/scenepositionattached.h +++ b/src/scenepositionattached.h @@ -1,21 +1,8 @@ /* -* Copyright (C) 2018 by Marco Martin -* -* This program 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, 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 Library General Public License for more details -* -* You should have received a copy of the GNU Library General Public -* License along with this program; if not, write to the -* Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ + * SPDX-FileCopyrightText: 2018 Marco Martin + * + * SPDX-License-Identifier: LGPL-2.0-or-later + */ #ifndef SCENEPOSITIONATTACHED_H #define SCENEPOSITIONATTACHED_H diff --git a/src/scenepositionattached.cpp b/src/scenepositionattached.cpp --- a/src/scenepositionattached.cpp +++ b/src/scenepositionattached.cpp @@ -1,21 +1,8 @@ /* -* Copyright (C) 2017 by Marco Martin -* -* This program 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, 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 Library General Public License for more details -* -* You should have received a copy of the GNU Library General Public -* License along with this program; if not, write to the -* Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ + * SPDX-FileCopyrightText: 2017 Marco Martin + * + * SPDX-License-Identifier: LGPL-2.0-or-later + */ #include "scenepositionattached.h" #include @@ -70,7 +57,7 @@ connect(ancestor, &QQuickItem::xChanged, this, &ScenePositionAttached::xChanged); connect(ancestor, &QQuickItem::yChanged, this, &ScenePositionAttached::yChanged); - connect(ancestor, &QQuickItem::parentChanged, this, + connect(ancestor, &QQuickItem::parentChanged, this, [this, ancestor]() { do { disconnect(ancestor, nullptr, this, nullptr); diff --git a/src/settings.h b/src/settings.h --- a/src/settings.h +++ b/src/settings.h @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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, 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 Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ #ifndef SETTINGS_H #define SETTINGS_H @@ -76,7 +63,7 @@ * @since org.kde.kirigami 2.6 */ Q_PROPERTY(QStringList information READ information CONSTANT) - + /** * @returns application window icon, basically \QApplication::windowIcon() * @@ -107,7 +94,7 @@ int mouseWheelScrollLines() const; QStringList information() const; - + QVariant applicationWindowIcon() const; static Settings *self(); diff --git a/src/settings.cpp b/src/settings.cpp --- a/src/settings.cpp +++ b/src/settings.cpp @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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, 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 Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ #include "settings.h" diff --git a/src/styles/Material/AbstractListItem.qml b/src/styles/Material/AbstractListItem.qml --- a/src/styles/Material/AbstractListItem.qml +++ b/src/styles/Material/AbstractListItem.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 @@ -35,7 +22,7 @@ visible: listItem.supportsMouseEvents pressed: listItem.pressed anchor: listItem - active: listItem.down || listItem.visualFocus + active: listItem.down || listItem.visualFocus color: Qt.rgba(0,0,0,0.2) } } diff --git a/src/styles/Material/InlineMessage.qml b/src/styles/Material/InlineMessage.qml --- a/src/styles/Material/InlineMessage.qml +++ b/src/styles/Material/InlineMessage.qml @@ -1,22 +1,9 @@ /* - * Copyright 2018 Eike Hein - * Copyright 2018 Marco Martin - * Copyright 2018 Kai Uwe Broulik + * SPDX-FileCopyrightText: 2018 Eike Hein + * SPDX-FileCopyrightText: 2018 Marco Martin + * SPDX-FileCopyrightText: 2018 Kai Uwe Broulik * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 diff --git a/src/styles/Material/Label.qml b/src/styles/Material/Label.qml --- a/src/styles/Material/Label.qml +++ b/src/styles/Material/Label.qml @@ -1,21 +1,8 @@ /* -* Copyright (C) 2011 by Marco Martin -* -* This program 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, 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 Library General Public License for more details -* -* You should have received a copy of the GNU Library General Public -* License along with this program; if not, write to the -* Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. -*/ + * SPDX-FileCopyrightText: 2011 by Marco Martin + * + * SPDX-License-Identifier: LGPL-2.0-or-later + */ import QtQuick 2.1 import QtQuick.Window 2.2 diff --git a/src/styles/Material/SwipeListItem.qml b/src/styles/Material/SwipeListItem.qml --- a/src/styles/Material/SwipeListItem.qml +++ b/src/styles/Material/SwipeListItem.qml @@ -1,20 +1,7 @@ /* - * Copyright 2010 Marco Martin + * SPDX-FileCopyrightText: 2010 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.5 @@ -47,7 +34,7 @@ * } * ] * } - * + * * } * @endcode * @@ -62,7 +49,7 @@ clip: visible pressed: listItem.pressed anchor: listItem - active: listItem.down || listItem.visualFocus + active: listItem.down || listItem.visualFocus color: Qt.rgba(0,0,0,0.2) } } diff --git a/src/styles/Material/Theme.qml b/src/styles/Material/Theme.qml --- a/src/styles/Material/Theme.qml +++ b/src/styles/Material/Theme.qml @@ -1,20 +1,7 @@ /* - * Copyright 2015 Marco Martin + * SPDX-FileCopyrightText: 2015 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 diff --git a/src/styles/org.kde.desktop/AbstractApplicationHeader.qml b/src/styles/org.kde.desktop/AbstractApplicationHeader.qml --- a/src/styles/org.kde.desktop/AbstractApplicationHeader.qml +++ b/src/styles/org.kde.desktop/AbstractApplicationHeader.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.5 @@ -47,7 +34,7 @@ left: parent.left right: parent.right bottom: root.y <= 0 ? parent.bottom : undefined - top: root.y <= 0 ? undefined : parent.top + top: root.y <= 0 ? undefined : parent.top } } } diff --git a/src/styles/org.kde.desktop/AbstractListItem.qml b/src/styles/org.kde.desktop/AbstractListItem.qml --- a/src/styles/org.kde.desktop/AbstractListItem.qml +++ b/src/styles/org.kde.desktop/AbstractListItem.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 diff --git a/src/styles/org.kde.desktop/ApplicationWindow.qml b/src/styles/org.kde.desktop/ApplicationWindow.qml --- a/src/styles/org.kde.desktop/ApplicationWindow.qml +++ b/src/styles/org.kde.desktop/ApplicationWindow.qml @@ -1,20 +1,7 @@ /* - * Copyright 2015 Marco Martin + * SPDX-FileCopyrightText: 2015 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.1 diff --git a/src/styles/org.kde.desktop/SwipeListItem.qml b/src/styles/org.kde.desktop/SwipeListItem.qml --- a/src/styles/org.kde.desktop/SwipeListItem.qml +++ b/src/styles/org.kde.desktop/SwipeListItem.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.5 diff --git a/src/styles/org.kde.desktop/Theme.qml b/src/styles/org.kde.desktop/Theme.qml --- a/src/styles/org.kde.desktop/Theme.qml +++ b/src/styles/org.kde.desktop/Theme.qml @@ -1,20 +1,7 @@ /* - * Copyright 2015 Marco Martin + * SPDX-FileCopyrightText: 2015 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.4 @@ -94,7 +81,7 @@ ] function __propagateColorSet(object, context) {} - + function __propagateTextColor(object, color) {} function __propagateBackgroundColor(object, color) {} function __propagatePrimaryColor(object, color) {} diff --git a/src/styles/org.kde.desktop/Units.qml b/src/styles/org.kde.desktop/Units.qml --- a/src/styles/org.kde.desktop/Units.qml +++ b/src/styles/org.kde.desktop/Units.qml @@ -1,20 +1,7 @@ /* - * Copyright 2015 Marco Martin + * SPDX-FileCopyrightText: 2015 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.4 diff --git a/src/wheelhandler.h b/src/wheelhandler.h --- a/src/wheelhandler.h +++ b/src/wheelhandler.h @@ -1,21 +1,8 @@ /* -* Copyright (C) 2019 by Marco Martin -* -* This program 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, 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 Library General Public License for more details -* -* You should have received a copy of the GNU Library General Public -* License along with this program; if not, write to the -* Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ + * SPDX-FileCopyrightText: 2019 Marco Martin + * + * SPDX-License-Identifier: LGPL-2.0-or-later + */ #pragma once @@ -100,7 +87,7 @@ * for instance it can be used to block the handler to manage the scroll of a view on some scenarions * @code * // This handler handles automatically the scroll of - * // flickableItem, unless Ctrl is pressed, in this case the + * // flickableItem, unless Ctrl is pressed, in this case the * // app has custom code to handle Ctrl+wheel zooming * Kirigami.WheelHandler { * target: flickableItem @@ -114,7 +101,7 @@ * } * } * @endcode - * + * */ Q_PROPERTY(bool accepted READ isAccepted WRITE setAccepted) diff --git a/src/wheelhandler.cpp b/src/wheelhandler.cpp --- a/src/wheelhandler.cpp +++ b/src/wheelhandler.cpp @@ -1,21 +1,8 @@ /* -* Copyright (C) 2019 by Marco Martin -* -* This program 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, 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 Library General Public License for more details -* -* You should have received a copy of the GNU Library General Public -* License along with this program; if not, write to the -* Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ + * SPDX-FileCopyrightText: 2019 Marco Martin + * + * SPDX-License-Identifier: LGPL-2.0-or-later + */ #include "wheelhandler.h" #include "settings.h" @@ -73,7 +60,7 @@ } } -bool GlobalWheelFilter::eventFilter(QObject *watched, QEvent *event) +bool GlobalWheelFilter::eventFilter(QObject *watched, QEvent *event) { if (event->type() == QEvent::Wheel) { QQuickItem *item = qobject_cast(watched); @@ -158,7 +145,7 @@ target->setProperty("contentY", qMin(-maxYExtent, qMax(-minYExtent, contentY - y))); } - + //Scroll X if (contentWidth > target->width()) { @@ -189,7 +176,7 @@ target->setProperty("contentX", qMin(-maxXExtent, qMax(-minXExtent, contentX - x))); } - //this is just for making the scrollbar + //this is just for making the scrollbar target->metaObject()->invokeMethod(target, "flick", Q_ARG(double, 0), Q_ARG(double, 1)); target->metaObject()->invokeMethod(target, "cancelFlick"); } diff --git a/tests/KeyboardListTest.qml b/tests/KeyboardListTest.qml --- a/tests/KeyboardListTest.qml +++ b/tests/KeyboardListTest.qml @@ -1,21 +1,8 @@ /* - * Copyright 2016 Aleix Pol Gonzalez - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Aleix Pol Gonzalez + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 diff --git a/tests/KeyboardTest.qml b/tests/KeyboardTest.qml --- a/tests/KeyboardTest.qml +++ b/tests/KeyboardTest.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Aleix Pol Gonzalez + * SPDX-FileCopyrightText: 2016 Aleix Pol Gonzalez * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 diff --git a/tests/WheelHandler.qml b/tests/WheelHandler.qml --- a/tests/WheelHandler.qml +++ b/tests/WheelHandler.qml @@ -1,20 +1,7 @@ /* - * Copyright 2019 Marco Martin + * SPDX-FileCopyrightText: 2019 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 @@ -45,7 +32,7 @@ flickable.resizeContent(contents.implicitWidth , contents.implicitHeight, contents.mapFromItem(flickable, wheel.x, wheel.y)); flickable.contentWidth = contents.implicitWidth; flickable.contentHeight = contents.implicitHeight; - + flickable.returnToBounds(); } } diff --git a/tests/actionsMenu.qml b/tests/actionsMenu.qml --- a/tests/actionsMenu.qml +++ b/tests/actionsMenu.qml @@ -1,21 +1,8 @@ /* - * Copyright 2016 Aleix Pol Gonzalez - * Copyright 2016 Marco Martin + * SPDX-FileCopyrightText: 2016 Aleix Pol Gonzalez + * SPDX-FileCopyrightText: 2016 Marco Martin * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 diff --git a/tests/cardsList.qml b/tests/cardsList.qml --- a/tests/cardsList.qml +++ b/tests/cardsList.qml @@ -1,20 +1,7 @@ /* - * Copyright 2018 Aleix Pol Gonzalez + * SPDX-FileCopyrightText: 2018 Aleix Pol Gonzalez * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7 diff --git a/tests/swipeListItemTest.qml b/tests/swipeListItemTest.qml --- a/tests/swipeListItemTest.qml +++ b/tests/swipeListItemTest.qml @@ -1,20 +1,7 @@ /* - * Copyright 2016 Aleix Pol Gonzalez + * SPDX-FileCopyrightText: 2016 Aleix Pol Gonzalez * - * This program 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, 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 Library General Public License for more details - * - * You should have received a copy of the GNU Library General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.7