Adriaan de Groot
cb80d47682
[license] Move translation / retranslation to LicenseWidget
...
- Language change didn't otherwise apply to the license items
2019-04-21 13:50:06 +02:00
Adriaan de Groot
1235207ead
[license] Refactor LicenseWidget
...
- Move all the widget code into its own file
2019-04-21 13:36:28 +02:00
Adriaan de Groot
35f23c86c6
[license] Add stub LicenseWidget files
...
- Prepare for refactoring
- Clean up weirdness in the CMakeLists.txt
2019-04-21 12:43:04 +02:00
Adriaan de Groot
d2957fbad3
[license] Handle the case where all the licenses are optional
...
- If all of the licenses are optional, you should be able to
continue without accepting. Refactor to a single visible
slot to check the conditions.
- Always set the globalsettings value; to "false" on entry
to make sure it's there.
- When setting the list of entries, check the conditions
(because if the list is empty, or all of them are optional,
then it's ok to continue).
FIXES #1124
FIXES #1125
2019-04-20 15:27:00 -04:00
Adriaan de Groot
c245238b89
[license] Use standard algorithms, simplify code
...
- Introduce isRequired() for readability later
- Use std::any_of instead of rolling own loop
2019-04-20 11:58:01 -04:00
Adriaan de Groot
937f332441
[license] Refactor LicenseEntry
...
- Follow Calamares conventions for member naming
- Switch to struct since everything is public anyway
2019-04-20 11:53:16 -04:00
Adriaan de Groot
dc006d58b2
[license] Use NamedEnum
2019-04-20 11:43:19 -04:00
Adriaan de Groot
614bd3c6de
[license] Move logic to LicenseEntry class
2019-04-20 09:52:29 -04:00
Adriaan de Groot
81016667ae
[license] Change to enum class
...
- non-functional change, just chasing modern C++
2019-04-20 09:52:28 -04:00
Adriaan de Groot
f299b86a3b
[license] start to document license.conf
...
- document keys and values in a way consistent with other modules
- document **intended** use of local URLs.
2019-04-20 09:52:28 -04:00
Adriaan de Groot
cef2f50510
Reduce warnings about extra ;
...
- Trailing ; after Q_UNUSED
- Trailing ; after CALAMARES_RETRANSLATE
2019-04-18 12:06:09 +02:00
Adriaan de Groot
6071489788
[libcalamaresui] Provide default implementations of next() and back()
...
- These methods are used for multi-page view-steps, which are rare.
For all the others, just drop the empty implementation and defer
to the base class.
2019-02-25 07:49:10 -05:00
Adriaan de Groot
08565b5f17
[libcalamaresui] Remove the signal done() from ViewStep
...
- The signal is emitted, generally from next(), but not actually used.
2019-02-25 07:34:40 -05:00
Adriaan de Groot
dd8e53dc22
Copyright: update copyright lines on files touched in 2018
...
Contributions from:
Adriaan de Groot <groot@kde.org>
Gabriel Craciunescu <crazy@frugalware.org>
AlmAck <gluca86@gmail.com>
Andrius Štikonas <andrius@stikonas.eu>
Caio Carvalho <caiojcarvalho@gmail.com>
Raul Rodrigo Segura <raurodse@gmail.com>
2018-06-15 05:59:11 -04:00
Adriaan de Groot
51ccd6be4d
[license] Warnings-- by making the one default case explicit
2018-03-06 16:23:29 +01:00
Adriaan de Groot
0b03d56a40
i18n: Massage code to help lupdate understand
2018-02-07 17:43:26 +01:00
Adriaan de Groot
762ad54344
Documentation: change http links to GitHub to https
2017-12-20 08:39:09 -05:00
Adriaan de Groot
337903db09
Clang: reduce warnings about overriden destructors
2017-09-20 09:11:18 -04:00
Adriaan de Groot
196b1567db
Modules: remove boilerplate module.desc
2017-08-02 11:05:32 -04:00
Teo Mrnjavac
e2b2d761c2
Do not LINK_PUBLIC by default.
2016-12-07 16:37:29 +01:00
Andrius Štikonas
9f0ca042fe
Port away from most cases of Q_FOREACH to C++11 ranged for loop.
...
In order to avoid deep copies, Qt containers over which we iterate must be const
The remaining unported cases require qAsConst (Qt 5.7) or std::as_const (C++17)
2016-09-01 16:46:14 +01:00
Teo Mrnjavac
ff9cf0880a
Fix QVariant type check (fix Coverity defect 114155).
2016-02-26 13:34:30 +01:00
Teo Mrnjavac
b2f1e08377
Prevent unnecessary switch fallthrough (fix Coverity defect 114171).
2016-02-26 13:24:13 +01:00
Teo Mrnjavac
4b57749945
Use PluginFactory in License module.
2015-09-15 17:21:19 +02:00
demmm
2372e45a8a
better spaced layout, most will use less then 3
2015-09-14 18:51:42 -04:00
demmm
031ff75630
Update License screenshot
2015-09-14 11:36:33 -04:00
Teo Mrnjavac
69b35da6bf
Fix up README.md.
2015-09-14 16:51:04 +02:00
demmm
c1ee36946c
New License module, based on KaOS license module.
...
See README.md for details.
2015-09-14 16:51:04 +02:00