mirror of
https://github.com/leozide/leocad.git
synced 2026-10-26 22:10:32 +00:00
Translate Blender defaults after translators are installed and give the spinner its own translation context. Translate remaining page and minifigure labels, and use Qt numerus messages for count-dependent text. Embed an English plural catalog so missing locale translations still have correct singular and plural forms. Refresh all eight language catalogs and fill missing translations as unfinished drafts with provenance comments. Preserve existing translation text, placeholders, markup, internal identifiers, and combo/filter syntax. Keep nonempty unfinished translations visible in release catalogs. Validation: Qt 6.10 debug build; warning-free lupdate extraction; active catalog keys match all 2,044 source messages; catalog integrity checks; runtime checks of spinner and 228 Blender default strings plus 472 plural, draft visibility, placeholder, and English fallback cases.
22 lines
460 B
C++
22 lines
460 B
C++
#pragma once
|
|
|
|
class lcSpinnerWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
lcSpinnerWidget(QWidget* Parent = nullptr);
|
|
|
|
protected:
|
|
void paintEvent(QPaintEvent* Event) override;
|
|
void showEvent(QShowEvent* Event) override;
|
|
void hideEvent(QHideEvent* Event) override;
|
|
|
|
private:
|
|
static constexpr qreal OrbitRadius = 7.0; // Logical pixels from the center.
|
|
static constexpr qreal DiscRadius = 3; // Logical pixels.
|
|
|
|
QTimer mTimer;
|
|
QElapsedTimer mElapsed;
|
|
};
|