Adriaan de Groot
8408a3284b
[libcalamaresui] Apply newer clang-formatting
2024-04-17 10:51:25 +02:00
Adriaan de Groot
2555b5baf4
[calamares] avoid double-quit message
...
In Qt5, QApplication::quit() was sufficient.
In Qt6, QApplication::quit() sends close events to top-level
windows, so we get a duplicate prompt for quit.
See https://blog.broulik.de/2023/11/on-the-road-to-plasma-6-vol-4/
2024-02-27 00:02:03 +01:00
Adriaan de Groot
633d6bda0d
[libcalamaresui] Be more careful about which bindings are in use
2024-02-24 21:47:24 +01:00
Adriaan de Groot
809d6cdda0
CMake: do not put PYBIND11 on the command-line
...
This is already stored in CalamaresConfig.hfor ABI purposes.
2024-02-24 18:54:33 +01:00
Adriaan de Groot
be5ce2e60f
[libcalamares] repair boost / pybind split
...
The difference wasn't being recorded in the ABI-parts of
the CalamaresConfig.h header file, and it was unclear if
the two builds were "clean", e.g. no pybind11 stuff in a
boost build and vice-versa.
Tidy that up by writing more ABI info to the header and
double-checking defines when including Python-related
Calamares headers.
2024-02-24 13:27:44 +01:00
Adriaan de Groot
54265f87b1
[libcalamaresui] Make symbols visible as needed
2024-02-20 12:07:57 +01:00
Adriaan de Groot
dc39791766
[libcalamares] Default symbols to hidden
2024-02-20 11:23:12 +01:00
Adriaan de Groot
14e9da251a
[libcalamaresui] Avoid Qt warning
...
16:23:24 [2]: WARNING (Qt): QThread::setPriority: Cannot set priority, thread is not running
Start the log widget's thread with a specific priority. This is
ignored on Linux anyway, but we'll avoid the setPriority() warning.
2024-02-17 16:52:06 +01:00
Adriaan de Groot
25f9eaf523
[libcalamares*] Prefer < comparisons in Qt version
2024-02-04 22:06:55 +01:00
Adriaan de Groot
7d7a4597c1
[libcalamaresui] prefer < comparison of Qt versions
2024-02-04 22:06:55 +01:00
Adriaan de Groot
fd2610c739
[*] Remove pre-Qt-5.15 compatibility ifdefs
2024-02-04 22:06:51 +01:00
Adriaan de Groot
e73f5fb9fe
[libcalamaresui] update percentage indicator on language change
...
Otherwise starting in one language will never change the
formatting of percentages when the language changes
later (example: Turkish writes %30, while Dutch writes 30%).
FIXES #2258
2023-12-25 00:06:00 +01:00
Adriaan de Groot
8ebba4fcff
libcalamares*: adapt consumers of network manager
2023-10-24 02:01:19 +02:00
Emir SARI
682cbe6951
Improve string formatting and context
2023-10-23 13:39:26 +03:00
Adriaan de Groot
aaa82386d8
libcalamaresui: always use KOSRelease
...
The places where KOSRelease was ifdeffed always set the ifdef in
the surrounding CMake code, so make it unconditional.
2023-10-17 22:46:11 +02:00
Adriaan de Groot
63b0589382
CI: apply style tool across the entire codebase
2023-10-17 22:24:46 +02:00
Adriaan de Groot
61f0100cd9
Python: add new Python job implementation
...
The implementation is quite incomplete: it does not
actually run any Python code.
2023-10-16 20:07:39 +02:00
Adriaan de Groot
4a5e7af9a4
libcalamaresui: support Qt6 QMLViewStep
2023-10-10 23:51:52 +02:00
Adriaan de Groot
628c98becb
libcalamaresui: apply coding style (include order)
2023-10-10 23:51:52 +02:00
Adriaan de Groot
364e940a9a
CMake: don't default to SHARED libraries, require explicit
2023-09-28 20:56:09 +02:00
Adriaan de Groot
1efb12e332
libcalamares: rename CalamaresUtilsSystem and Gui
2023-09-11 20:40:10 +02:00
Adriaan de Groot
eb840d4117
libcalamares: ditch namespace CalamaresUtils
...
- Most CalamaresUtils things go to Calamares
- YAML support to Calamares::YAML and then remove redundant "yaml"
from the function names.
2023-09-11 20:34:01 +02:00
Adriaan de Groot
a9ef587705
libcalamares: use namespace Calamares::Network consistently
2023-09-10 22:32:49 +02:00
Adriaan de Groot
1ca6b27afe
Merge pull request #2195 from AsahiLinux/wayland-hidpi
...
Make HiDPI SVG rendering work on Wayland
2023-09-05 15:53:53 +02:00
Adriaan de Groot
8a8860e75c
Qt6: resolve TODOs against missing KF6
...
- On FreeBSD, no KF6 was available
- On KDE Neon Unstable, there are somewhat wonky KF6 packages available
- Adjust CMake to find the KDE Neon versions, then fix the C++ code
2023-09-04 21:51:03 +02:00
Hector Martin
15027f40b2
Make HiDPI SVG rendering work on Wayland
...
Branding SVGs were rendering at 1x on Wayland and then scaling up to the
display DPI, which looks ugly. To get this to work properly we need to
explicitly multiply the devicePixelRatio into the dimensions that
QPixmaps render at, since QPixmap is DPI-unaware.
This probably only takes care of a subset of the problem codepaths, but
at least it makes the sidebar logo and welcome screen work properly.
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-09-04 14:35:14 +09:00
Adriaan de Groot
8ea7c578b3
libcalamaresui: deal with QMessageBox::question
2023-09-03 23:02:09 +02:00
Adriaan de Groot
159eccbda0
libcalamaresui: enable build for Qt6
...
Compatibility code for mutex and variant is already in place.
2023-09-03 23:02:09 +02:00
Adriaan de Groot
f385c94729
[libcalamaresui] Document 'we do not translate this' for developer-tooltip
2023-04-25 11:17:11 +02:00
Adriaan de Groot
b07f0c2857
Changes: add credit for %p
...
While here, add a disambiguation to help translators.
2023-04-23 11:35:48 +02:00
Emir SARI
2d118c7057
Add i18n support for percent value
2023-04-18 04:21:08 +03:00
Adriaan de Groot
1821eb1b39
[libcalamaresui] Branding uses $-substitution
...
Replace @{name} with ${name} to be consistent with the rest
of the replacement-code in Calamares.
2022-09-09 22:04:49 +02:00
Adriaan de Groot
6558cd5150
CMake: add .so-version
...
This is basically PR #2002 , from Undef-a.
2022-08-23 15:45:20 +02:00
Adriaan de Groot
1c7c0b9af8
CI: apply coding style (clang-format 13)
2022-06-27 00:37:15 +02:00
Adriaan de Groot
20d96f9ea3
[libcalamaresui] More constness
2022-06-26 23:24:32 +02:00
Adriaan de Groot
d9b4562076
Style: remove trailing ; after namespace
2022-06-20 21:48:22 +02:00
Adriaan de Groot
57d978b82d
Merge pull request #1977 from calamares/issue-1974
...
[welcome] Show welcome-image when all requirements are satisfied
2022-06-11 00:17:01 +02:00
Adriaan de Groot
42f9f07a07
[libcalamares] The spinner doesn't support rich text
2022-06-10 01:27:37 +02:00
Adriaan de Groot
d4a776e759
[libcalamaresui] Adjust description of countdown spinner
2022-06-07 11:55:03 +02:00
Adriaan de Groot
2c07463ac6
[libcalamaresui] Check for typo's in branding keys
2022-06-03 11:53:02 +02:00
Adriaan de Groot
7356961f52
[libcalamares] Use the enum names as keys
...
- this uses the Qt internals to map enum values to names, making
the separate translation table unnecessary. Adjust default branding
to use the new names.
This makes code (using enum identifiers) and configuration (using
string keys) consistent in naming.
2022-06-03 11:40:10 +02:00
Adriaan de Groot
dc699db5f5
[libcalamaresui] Document style-string mapping
...
- while here, the static array of names doesn't need to be
a class member, it is entirely internal.
- document how names are mapped to branding keys.
2022-06-03 11:20:59 +02:00
Adriaan de Groot
66682b3e84
Merge branch 'calamares' into work-3.3
2022-05-18 15:13:21 +02:00
Adriaan de Groot
874a0c1f38
CI: apply coding style globally again
2022-05-18 12:44:55 +02:00
Adriaan de Groot
7096ee760e
[libcalamaresui] Remove unused image-transformation function
2022-05-10 00:07:41 +02:00
Adriaan de Groot
880c367d64
[libcalamaresui] Remove under-used function
2022-05-10 00:07:41 +02:00
Adriaan de Groot
704e250664
[libcalamaresui] Remove under-used function
...
- there was one consumer of this function, and it was over-engineered
for what was needed (removing a list of widgets). Just drop it.
2022-05-10 00:07:41 +02:00
Adriaan de Groot
928b46f18e
[libcalamaresui] Use namespace Calamares::Widgets
2022-05-10 00:07:41 +02:00
Adriaan de Groot
a7d3630e42
[libcalamaresui] Improve naming, resolve TODO
2022-05-04 00:51:50 +02:00
Adriaan de Groot
7db14cb5cf
[libcalamaresui] Fix build for ::ceil
2022-04-20 12:00:21 +02:00