Skip to content
Verified Commit d6ca4093 authored by ivan tkachenko's avatar ivan tkachenko 🗯
Browse files

Introducing kqml: QML runtime with initialized KLocalizedContext

Useful for testing scratch files that either directly or via imported
modules assume that KLocalizedString domain has been set and
KLocalizedContext initialized, so they can rely on family of i18n*
functions being available in QML scope. In other words, for loading any
real-world KDE QML source file without getting these errors:

> ReferenceError: i18n is not defined

This simple application is very similar to `qml` and `qmlscene` tools
provided by qt-declarative package. But unlike those tools kqml is very
minimal, without any of the advanced options, custom containment
configs or things like OS X specific platform workarounds. Those things
can always be added back later if desired, but so far I personally
never heard of anyone who would use any of `qml` options beyond passing
it a single *.qml file. Except… maybe a --slow-animations which we
can't implement anyway without including private API bits.

This new tool comes with documentation (man page) and zsh completions.
parent 44169d9d
Pipeline #425741 passed with stage
in 53 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment