8 Commits (f1971eed86ba230fff69c0f3c7b80a2b2e96819e)

Author SHA1 Message Date
Adriaan de Groot f1971eed86 [libcalamares] Support calling a slot on retranslation
- sometimes a slot is easier than a lambda. Introduce
   a macro CALAMARES_RETRANSLATE_SLOT that calls a given
   slot in an object on language change.
 - extend the retranslator with support for calling slots:
   - use Qt's signal/slot mechanism alongside the private
     list of functions to call
   - provide convenience for obtaining the retranslator of
     an object.
6 years ago
Adriaan de Groot b8a74657f4 [libcalamares] Apply current coding style to libcalamares/utils/
- String.cpp needs special handling since part of it should
   remain unchanged, the formatting is "special" there.
6 years ago
Adriaan de Groot 66c4445077 [libcalamares] Move translation-related functions to Retranslator.h 6 years ago
Adriaan de Groot 762ad54344 Documentation: change http links to GitHub to https 7 years ago
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)
9 years ago
Teo Mrnjavac 8b98b1cc24 Do not filter out LanguageChange events when in a RETRANSLATE functor. 10 years ago
Teo Mrnjavac e5c3888be2 Allow multiple CALAMARES_RETRANSLATE blocks in the same widget. 11 years ago
Teo Mrnjavac 08b90e975b Add retranslator class to CalamaresUtils. 11 years ago