Adriaan de Groot
fa28788f78
[netinstall] Build the model from QVariantList always
2020-03-23 17:20:14 +01:00
Adriaan de Groot
ebc1db6a7b
[netinstall] Test loading of a whole (example) file
2020-03-23 17:20:14 +01:00
Adriaan de Groot
f592a3f373
[netinstall] Expand tests to include group-checking
...
- Check groups
- Check whole treemodels recursively (this is not in PackageTreeItem,
because that explicitly ignores the tree structure).
- Also a stub of checking example files (from the src dir)
2020-03-23 17:19:32 +01:00
Adriaan de Groot
025ab8b524
[netinstall] Be explicit about checkedness-to-bool conversions
2020-03-23 17:19:32 +01:00
Adriaan de Groot
0e2b3986b9
[netinstall] Use explicit accessor for the type-of-item
2020-03-23 17:19:32 +01:00
Adriaan de Groot
f7191ac29e
[netinstall] Compare two PackageTreeItems
...
- Packages and groups check different fields for equality.
- Selected-state is **not** part of equality.
- Also operator !=
2020-03-23 17:19:15 +01:00
Adriaan de Groot
52d3f4417f
[netinstall] Add explicit isGroup()
...
- Previously you would either need to know where in the tree a
PackageTreeItem was, or guess that an empty packageName() means that
it's a group.
2020-03-23 17:19:14 +01:00
Adriaan de Groot
bca316299e
[netinstall] Add tests
...
- Just some simple tests for the Items
- Test creation of package group from variant
- This needs Qt5::Gui to link because QStandardItem is a GUI class,
although we can run the tests without a GUI.
2020-03-23 17:19:00 +01:00
Adriaan de Groot
dc403237f2
[netinstall] Build model from QVariantList
...
- As an alternative to the YAML-wranging, build the model from
a QVariantList instead.
- Expose this as a constructor, too.
2020-03-23 17:18:44 +01:00
Adriaan de Groot
4143ad67af
[netinstall] Remove superfluous code
...
- The constructor for PackageTreeItem now takes over the selected
state from the parent.
2020-03-23 17:18:44 +01:00
Adriaan de Groot
c7b646315a
[netinstall] Add immutable to groups settings
2020-03-23 17:18:44 +01:00
Adriaan de Groot
4cb2ed9552
[netinstall] Chase removal of ItemData
...
- Simplify creation of PackageTreeItems by interpreting the
YAML directly (instead of via ItemData),
- Simplify list types,
- Drop superfluous API.
2020-03-23 17:18:44 +01:00
Adriaan de Groot
c66ef5a201
[netinstall] Refactor: kill ItemData
...
- This doesn't compile right now.
- The nested class ItemData doesn't do anything useful or
meaningful that having model items with the right data wouldn't.
2020-03-23 17:18:44 +01:00
Adriaan de Groot
8825c9c995
[netinstall] Apply coding style
2020-03-23 17:18:44 +01:00
Adriaan de Groot
3b0c0435bc
[libcalamaresui] Chase API change in Yaml
...
- We can drop a bunch of calls to toMap() now.
2020-03-20 21:55:03 +01:00
Adriaan de Groot
2eb84e2de1
[partition] [tracking] [welcome] Missing Q_OBJECT
...
- These aren't strictly necessary for the code, but they
help with translations.
2020-03-19 00:37:37 +01:00
Calamares CI
2eff1f0e78
i18n: [dummypythonqt] Automatic merge of Transifex translations
2020-03-18 23:41:19 +01:00
Gabriel Craciunescu
47c167dc04
[bootloader] Resume from outer swap partition
...
- These fixes are similar to the other swap-from-LUKS changes,
and just needed to be applied to a different module.
2020-03-18 17:21:20 +01:00
Gabriel Craciunescu
65a989d3cd
[grubcfg] With LUKS, resume from the correct swap name
...
FIXES #1208
2020-03-18 17:12:33 +01:00
Adriaan de Groot
489fd0b272
[welcomeq] Fix QML import
...
- Now using the properly-namespaced QML import for Calamares things
2020-03-18 11:12:15 +01:00
Adriaan de Groot
cd7884a0e5
[welcomeq] Fix build with clang
...
- can't convert lambda-with-captures to a function pointer (Clang 9)
- instead, use a context property .. QmlViewStep already sets a
"config" property with the Config object, but WelcomeQ wants it
as another name as well.
- this avoids registering the Welcome object across all QML pages,
as well.
NOTE: needs to have the QML adjusted for this change.
2020-03-18 11:02:35 +01:00
Adriaan de Groot
3897bd54df
Changes: write some of the QML docs
...
- Fix references; I decided to put it in Qml.h, which is
the header for the code that does the work.
2020-03-12 17:37:39 +01:00
Adriaan de Groot
4576cb4fa0
[notesqml] Fix up documentation pointers
2020-03-12 17:30:08 +01:00
Adriaan de Groot
a834d67283
[notesqml] Adjust to new name for Branding
2020-03-11 17:42:19 +01:00
Adriaan de Groot
28c2da12ae
[libcalamaresui] Register in io.calamares namespace
...
- Register both Branding and ViewManager for QML
- Note that this changes the name of Branding
- Add code-docs about object ownership
2020-03-11 17:40:03 +01:00
Adriaan de Groot
7d99ad3177
[welcomeq] Adjust to Config-API that QmlViewStep expects
2020-03-11 16:49:07 +01:00
Adriaan de Groot
862b05221d
[libcalamaresui] Drop 'name' parameter in QmlViewStep
...
- The name is just the module identifier, and now we
search for *m@i* and also *m* from that identifier,
the name becomes much less important -- and it
can be set from the config key *qmlFilename* as well.
2020-03-11 15:57:08 +01:00
Adriaan de Groot
165bcfd75d
[libcalamaresui] "namespace" QML settings
...
- To avoid name-collisions in otherwise well-behaved
modules and configurations, make the QML settings
more specific:
search -> qmlSearch
filename -> qmlFilename
2020-03-11 15:36:42 +01:00
Adriaan de Groot
0f50dc8d33
[welcomeq] Include the QML search mode
2020-03-11 15:23:37 +01:00
Adriaan de Groot
8302f2182b
[welcomeq] The QML file name still has a q
2020-03-11 15:21:46 +01:00
Camilo Higuita
d26fa63ccd
[welcomeq] initial work for welcomeview in qml
2020-03-11 14:48:14 +01:00
Camilo Higuita
d7f7c16958
[welcome] using config for both qcc2 or qwidgets
2020-03-11 14:48:06 +01:00
Adriaan de Groot
e2d9ce737c
[netinstall] Implement pre-expanded groups
...
- Return relevant data
- Document code
- Add to README.md documentation about new key
2020-03-10 12:59:41 -05:00
Adriaan de Groot
b9b48cfbb1
[netinstall] Apply coding style
...
- Some missing {} were not noticed by astyle
2020-03-10 12:49:12 -05:00
Adriaan de Groot
4f216b0394
[netinstall] Refactor model-data setting
...
- Introduce convenience methods getString(), getBool() to pick
out an entry from item definitions in YAML format.
- Apply coding style.
- Pick up the "expanded" property as well.
2020-03-10 12:46:49 -05:00
Adriaan de Groot
0f7f5216ee
[netinstall] isHidden is const after construction
2020-03-10 12:39:35 -05:00
Adriaan de Groot
b074696ac1
[netinstall] isCritical is const after construction
2020-03-10 12:38:11 -05:00
Adriaan de Groot
09006a936d
[netinstall] Expand groups if requested
2020-03-10 12:37:57 -05:00
Adriaan de Groot
4f22a70b08
[netinstall] Restructure model-method data()
2020-03-10 12:30:33 -05:00
Adriaan de Groot
df86972ea7
[netinstall] Introduce constexpr names for columns and roles
2020-03-10 12:22:56 -05:00
Adriaan de Groot
3d68c74a19
[netinstall] Sanitize PackageTreeItem::data()
...
- Use of != nullptr for QString just a bad idea
- Massage code so structure for packages resembles that of groups
2020-03-09 22:46:59 -05:00
Adriaan de Groot
201c5ddfe1
[netinstall] Add some debug-logging
...
- Also, prepare for a start-expanded setting
2020-03-09 22:44:16 -05:00
Adriaan de Groot
4cf3ec8663
[netinstall] Resolve TODO (changes translations)
2020-03-09 22:01:39 -05:00
Adriaan de Groot
3302fe319b
[netinstall] Fix typo's in README
2020-03-09 21:58:30 -05:00
Adriaan de Groot
220fd31226
[partition] Improve EncryptionWidget
...
- Use normal translation framework. The EncryptWidget was the one place
not using the "usual" translation framework, but rolled its own.
- Emphasize that the checkbox-state (checked-ness) is the parameter,
not a state of the EncryptWidget.
- All other instances of UI classes from Designer use a pointer-to-UI,
not multiple inheritance.
- Convenience method for setting the pixmap in response to
changes in the passphrase
- Tighten up types: enum -> enum class
- Reduce the scope for int-confusion by using an enum-class for
the encryption state of the widget
- Include UI implementation header only in .cpp
- Apply coding style
- Update copyright
2020-03-09 21:43:14 -05:00
Adriaan de Groot
1299c64415
[interactiveterminal] Tidy up includes
...
- The KF5/ part of the path isn't necessary, and some of the KF5
includes can be found with a shorter name (with modern ECM and
imported targets)
2020-03-09 21:13:19 -05:00
Adriaan de Groot
350627172d
[partition] Tidy up includes
2020-03-09 21:09:24 -05:00
Adriaan de Groot
c5b038587e
[welcome] Tidy up includes
2020-03-09 21:07:12 -05:00
Adriaan de Groot
ebb3f319cc
[modules] Be more consistent in include punctuation
...
- Use <> for Qt, system, externals
- Use double-quotes for Calamares headers
2020-03-09 21:05:15 -05:00
Adriaan de Groot
c4bfad9399
[packages] Provide status feedback
...
- The status message should be updated; the name is constant.
FIXES #1330
2020-03-09 15:41:17 -05:00