Adriaan de Groot
217e4ab4f7
[welcome] Start improving the tooltips for missing requirements
2022-04-20 16:36:18 +02:00
Adriaan de Groot
b129cb0786
[libcalamares] Match roles from model to Qt standard roles
2022-04-20 16:25:28 +02:00
Adriaan de Groot
e102e2630e
[welcome] Rip out the "details" dialog for requirements
...
- The dialog gave very little extra information
- The text descriptions from the dialog are already available
as tooltips in the existing list view.
2022-04-20 16:19:34 +02:00
Adriaan de Groot
7650795f48
[welcome] Give the result-display somre more space
2022-04-20 16:16:20 +02:00
Adriaan de Groot
e5036da084
[welcome] Draw an icon for requirement-status
2022-04-20 16:03:42 +02:00
Adriaan de Groot
07f4ec529b
[libcalamares] Clean up requirements model API
...
- don't need friends
- made modify-the-model API public where it makes sense
- improve naming
2022-04-20 15:39:53 +02:00
Adriaan de Groot
0b2af86ec9
[welcome] Remove compensating-for-model-reset code
...
The model was emptied-and-refilled when re-checked, which
meant we needed to have some special handling when messages
changed to avoid re-creating widgets. Since we use a model
view now, we don't need the extra machinery.
2022-04-20 15:15:06 +02:00
Adriaan de Groot
8b917ace4d
[welcome] Replace widgets in dialog with model+listview
...
While here, remove unused vars and functions, tidy code.
2022-04-20 15:09:54 +02:00
Adriaan de Groot
ab1c78ca23
[welcome] Allow delegate to pick the text role to display
2022-04-20 13:29:19 +02:00
Adriaan de Groot
3679bb45f0
[welcome] Give the countdown a tooltip
2022-04-20 13:16:10 +02:00
Adriaan de Groot
1101b0dc82
CMake: hand off RC-or-not to the version header again (for welcome-checks)
2022-04-20 13:12:02 +02:00
Adriaan de Groot
15b4660d3e
[welcome] Rip out rest of ResultWidget
...
- this breaks the dialog showing details, but we'll switch
that to the delegate as well.
2022-04-20 13:12:02 +02:00
Adriaan de Groot
e457d099d8
[welcome] Replace manual widgets-creation by a listview with model
2022-04-20 12:00:21 +02:00
Adriaan de Groot
7686b89cd6
[welcome] Very basic model delegate for results / requirements
2022-04-20 12:00:21 +02:00
Adriaan de Groot
e757639669
[calamares] A progresstree isn't a tree
2022-04-20 12:00:21 +02:00
Adriaan de Groot
7b22546b14
[calamares] Don't need a method for painting, reduce API
2022-04-20 12:00:21 +02:00
Adriaan de Groot
7db14cb5cf
[libcalamaresui] Fix build for ::ceil
2022-04-20 12:00:21 +02:00
Adriaan de Groot
87ff7ae0da
[libcalamaresui] Use Qt max, min, bound
2022-04-16 12:51:11 +02:00
Adriaan de Groot
58306de28a
[libcalamaresui] Private static methods can be hidden
2022-04-16 12:48:12 +02:00
Adriaan de Groot
56c27c4255
[libcalamaresui] Warnings--
2022-04-16 12:45:58 +02:00
Adriaan de Groot
9084d746af
Git: add a blame-ignore file for large-scale reformatting
2022-04-16 12:42:29 +02:00
Adriaan de Groot
18fef8dfe5
[libcalamaresui] Apply coding style
2022-04-16 12:39:21 +02:00
Adriaan de Groot
7e5df42fc0
Merge branch 'issue-1924' into work-3.3
...
This is a rather clunky implementation of re-check requirements.
"Clunky" because the UI parts are re-created each time, rather
than fishing from a model of checked (or unchecked) requirements.
The Widgets parts should be updated to use a full model, rather
than the recreate-list-of-Widgets implementation they have now.
Unrelated changes pull in a bunch of improvements to the
waiting spinner widget.
2022-04-16 12:34:40 +02:00
Adriaan de Groot
e11a0ee448
[libcalamaresui] Use delegating-constructor, drop initialize()
2022-04-16 12:25:28 +02:00
Adriaan de Groot
18f8633dd9
[libcalamaresui] Also modern-style initialize center and disable flags
...
- All constructors explicitly initialize these, so there's no
real change here.
2022-04-16 12:20:02 +02:00
Adriaan de Groot
497422e72c
[libcalamaresui] Don't disable parent while waiting
2022-04-16 12:18:49 +02:00
Adriaan de Groot
78a8993f38
[libcalamaresui] Move to more modern-style initializations
2022-04-16 12:11:52 +02:00
Adriaan de Groot
1f7dd2fcd5
[libcalamaresui] Convenience API
2022-04-16 12:02:56 +02:00
Adriaan de Groot
2ccd59e90b
[libcalamaresui] Move waitingspinnerwidget.* into calamaresui
...
Although this is 3rd-party code, it now diverges -- by merging the
stale PR from upstream, and from adding features of our own --
enough that we should not pretend that it is the original 3rdparty
code.
Chase a couple of include paths that called this from 3rdparty/
2022-04-16 11:59:31 +02:00
Adriaan de Groot
3bd610a838
[libcalamaresui] Port Countdown to spinner widget alone
2022-04-16 11:53:03 +02:00
Adriaan de Groot
5060a66d4e
[locale] Remove unused include
2022-04-16 11:29:49 +02:00
Adriaan de Groot
3c5ac535f1
[libcalamaresui] The waiting spinner now supports text, no need for extra label
2022-04-16 11:28:10 +02:00
Adriaan de Groot
82d721f455
[libcalamaresui] Display countdown
2022-04-16 00:05:01 +02:00
Adriaan de Groot
bef6b2fffd
[3rdparty] Introduce alignment flag for text
2022-04-16 00:04:32 +02:00
Adriaan de Groot
fac8662387
[3rdparty] Tidy up access and API dox
2022-04-15 23:08:58 +02:00
Adriaan de Groot
15dc47555a
[3rdparty] Constness for waitingspinner
...
The accessors can be (should be!) const.
2022-04-15 22:05:37 +02:00
Adriaan de Groot
171a597355
[3rdparty] Add SPDX tags for setText() support
...
The setText() support was submitted upstream at
https://github.com/snowwlex/QtWaitingSpinner/pull/14
by `huxingyi <huxingyi@msn.com>`, but not merged. The
commits from that PR were merged into Calamares' copy
of the waitingspinnerwidget files. Add relevant tags
(which aren't in the PR, but Calamares does chase SPDX)
2022-04-15 22:05:37 +02:00
huxingyi
022f04355a
Change default text color to black.
2022-04-15 21:54:13 +02:00
huxingyi
9786614917
Add text support.
...
Implement the setText function. The text will be displayed under the spinner image.
2022-04-15 21:54:13 +02:00
Adriaan de Groot
e351b1dafa
[libcalamaresui] Drop the countdown label
2022-04-15 12:50:18 +02:00
Adriaan de Groot
075185547a
[welcome] Display a countdown while (re)checking requirements
2022-04-15 12:47:12 +02:00
Adriaan de Groot
514b728449
[libcalamaresui] Tweak widget display for countdown
2022-04-15 12:41:29 +02:00
Adriaan de Groot
9a3d9feb30
[libcalamaresui] Add a countdown widget for limited waiting.
2022-04-15 12:13:16 +02:00
Adriaan de Groot
fcb893cd12
[welcome] Avoid growing more spacers
...
Insert spacers only once; avoid crashing when all the requirements
are satisfied immediately.
2022-04-14 22:06:36 +02:00
Adriaan de Groot
e79f29dc0e
[welcome] Update the explanation only when all the results are in.
2022-04-14 21:51:43 +02:00
Adriaan de Groot
11d7870d68
[welcome] Factor out check for a filled requirements-model
2022-04-14 21:48:55 +02:00
Adriaan de Groot
fc653adcc0
[welcome] Don't duplicate result widgets
2022-04-13 18:15:21 +02:00
Adriaan de Groot
ee925492d4
[welcome] Don't duplicate widgets
2022-04-13 17:12:25 +02:00
Adriaan de Groot
6348309936
[libcalamaresui] If requirements are not satisfied, recheck in 5 seconds
2022-04-13 17:09:43 +02:00
Adriaan de Groot
a9e098b0b4
[libcalamares] Allow resetting the requirements model
...
- When a requirements checker starts, it can reset the model
to clear it of previous entries.
2022-04-13 17:08:17 +02:00