4329 Commits (0716a46eb2a79668c727bfc5b24f539306cd65e2)

Author SHA1 Message Date
Adriaan de Groot 0716a46eb2 [libcalamares] Switch to using KPluginFactory
- this is not entirely straightfoward, since  we need
   different constructor arguments for the objects
   Calamares creates (no QVariantList& args, in particular).
   Implement our own registerPlugin() and createInstance()
   for that.
 - work around a bug in K_PLUGIN_FACTORY_DECLARATION_WITH_BASEFACTORY
6 years ago
Adriaan de Groot 1711071c58 [libcalamares] Swap out own PluginLoader for KCoreAddons 6 years ago
Adriaan de Groot 44991e700b [libcalamaresui] Check KCoreAddons version directly 6 years ago
Adriaan de Groot bcb7f17584 [calamares] Make KCoreAddons a requirement
- Require KCoreAddons for KAboutData (also, optionally, for KOSRelease)
6 years ago
Adriaan de Groot a6db224fcb [fsresizer] [partition] Gracefully fail on missing dependencies
- If KPMcore is found -- it requires some other KDE Frameworks but
   at least in pre-4.0 versions doesn't check very well for them --
   then missing its dependencies is no cause for CMake failure.
   Instead, log it nicely and suppress the module.
6 years ago
Adriaan de Groot 08a08f9b54 [calamares] Minor optimizations and documentation
- document the data structure; for the vector V (called m_rows)
   the values are V_i < i, so that enables microscopic optimizations.
6 years ago
Adriaan de Groot 96ef488f1b [calamares] Clean up VariantModel
- stop compiler warnings with some judicious casting;
   that's what you get when a container indexed by int
   stored those indexes as quintptr.
 - apply coding style
6 years ago
Adriaan de Groot 8a7f32d3aa [libcalamaresui] Polish ImageRegistry
- do static initialization more carefully
 - float -> qreal (double) because that's what the Qt API expects,
   to reduce type-conversion warnings
 - apply current coding style
6 years ago
Adriaan de Groot ec08a293b2 [libcalamaresui] Reduce compile warnings
- "this" isn't used in the lambda; in future it might be if the
   lambda needs to get the configuration from settings.
6 years ago
Adriaan de Groot 91d327b224 [libcalamaresui] Paste TCP port is quint16
- no sense in feeding in an int (and getting a compiler warning
   for narrowing) into something that by spec is a 16-bit value.
6 years ago
Adriaan de Groot 41173360a7 [libcalamares] We're just testing file modes, not whole int range 6 years ago
Adriaan de Groot 76041a2184 [dummycpp] Reduce warnings and apply coding style
- tired of the (IMO, bogus) clang warnings from the
   switch() statement with a default:, so swap it out for
   some cascaded ifs.
6 years ago
Adriaan de Groot e81bd52fb5 [initcpio] [initramfs] Set compilation options on tests
- calamares_automoc() sets AUTOMOC, but also adds some flags
   to avoid compilation warnings from the generated MOC code.
 - drop weird hard-coded include paths
6 years ago
Adriaan de Groot 739363cecd [libcalamaresui] Fix initialization order (reduce warnings) 6 years ago
Adriaan de Groot 6f73151786 [libcalamares] Reduce warnings
- Although milliseconds::count() is long long, we pass it to
   a Qt interface that only takes int; let's assume we have
   only a 32-bit count, since a timeout of 4 billion milliseconds
   is roughly 46 days, which we'll just call "no timeout".
6 years ago
Adriaan de Groot dc09c5700b [calamares] Remove unreachable return 6 years ago
Adriaan de Groot f5af4818fb [calamares] Apply current coding style 6 years ago
Adriaan de Groot ea0acf1606 [calamares] Apply current coding style 6 years ago
Adriaan de Groot ab7a559e03 [calamares] Add headerData to model (Key, Value columns) 6 years ago
Adriaan de Groot eba4dc8df1 [calamares] Use VariantModel instead of QJsonModel
- Drop the round-trip of forming a JSON document from a QVariant,
   then parsing the document into JSON objects and building a
   model out of that. View the Variant directly.
6 years ago
Adriaan de Groot 2bd03ad3c0 [calamares] Add reload() to update model after underlying data 6 years ago
Adriaan de Groot 2a3ab4dbe7 [calamares] Add a model for viewing QVariants directly 6 years ago
Adriaan de Groot e31a498c9b [calamares] Move DebugWindow
- This is a fairly specialized class, for use only in the
   whole-application where it ties in with the module system.
   Move it to the application directory and slim down the UI library.
 - Include it from the new location.
 - Add UIC to Calamares (the application) because there's now
   a designer-based widget in it.
6 years ago
Adriaan de Groot 85d28af1e2 [libcalamaresui] Don't include QJsonModel 6 years ago
Adriaan de Groot 419329ee49 [libcalamares] Remove friend, add accessor, make includes explicit 6 years ago
Adriaan de Groot 695e16bb87 [libcalamaresui] Drop QJsonModel from the library 6 years ago
Adriaan de Groot 48a25858f0 [partition] Chase 3rdparty move 6 years ago
Adriaan de Groot b31c6c3a22 [calamares] Chase 3rdparty move 6 years ago
Adriaan de Groot c83e95e66a [libcalamaresui] Chase 3rdparty move
- Widgets need to #include from different path
6 years ago
Adriaan de Groot 2166eb4511 [libcalamares] [libcalamaresui] Adjust for moved sources 6 years ago
Adriaan de Groot 937ff608eb [libcalamaresui] Move spinner widget to 3rd party 6 years ago
Adriaan de Groot e7c66de4df [libcalamares] Move kdsingleapplicationguard to 3rdparty 6 years ago
Adriaan de Groot 47dbf9ab0c [libcalamares] Move 3rd party code to separate dir 6 years ago
Adriaan de Groot 115f5bfd82 [libcalamares] Apply coding style to remainder of geoip/ 6 years ago
Adriaan de Groot ec073ee188 [libcalamares] Apply coding style to geoip/ 6 years ago
Adriaan de Groot 6e9f1be9e9 [libcalamares] Don't reformat string tables in GeoIP 6 years ago
Adriaan de Groot 81fa1735b1 [libcalamares] Apply current coding style 6 years ago
Adriaan de Groot 6b659b6f48 [libcalamares] Apply current coding standard to locale/ 6 years ago
Adriaan de Groot 8636689cea [packagechooser] Fix tests when run from in-source build 6 years ago
Adriaan de Groot 251e16e72c [libcalamares] Allow en_US locale for tests as well 6 years ago
Adriaan de Groot 20f43225b5 [packagechooser] Adjust AppData path for tests
- running tests by hand or from "make test" uses different paths.
6 years ago
Adriaan de Groot 781be3368e [packagechooser] Remove bogus images
- KDE and GNOME selection images were drawn by me for the bogus
   package model, and should not be used.
 - Keep Calamares logo though, even if it doesn't make much sense
   to use it in package selection.
 - Keep the no-selection image since it might be used more often,
   but it's not very good.
6 years ago
Adriaan de Groot f3de320288 [packagechooser] Drop hard-coded data
- Now that the configuration can do all the things, we don't need
   a hard-coded model with bogus entries.
6 years ago
Adriaan de Groot 194a562727 [packagechooser] Expand tests with override features 6 years ago
Adriaan de Groot a4362dac65 [packagechooser] Change tests for modified API 6 years ago
Adriaan de Groot 5d4c3ea92c [packagechooser] Don't give a default pixmap 6 years ago
Adriaan de Groot 0b72006ffb [packagechooser] Use overrides on AppData for example 6 years ago
Adriaan de Groot 6ddae94628 [packagechooser] Allow to override some of AppData
- The ID and Screenshot entries might be weird in AppData (in particular,
   a remove URL) so put those back under the control of Calamares even
   when using AppData as the source of descriptions.
6 years ago
Adriaan de Groot d72391942f [packagechooser] Implement AppData loading
- An item can refer to *appdata* and load that, or provide
   the data in the config file itself.
 - Fix documentation about translations.
6 years ago
Adriaan de Groot 9a8b2c5a1e [packagechooser] CHeck that AppData load was succesful 6 years ago