Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KDE Portal for XDG Desktop
Commits
59314fc6
Commit
59314fc6
authored
Sep 28, 2022
by
Aleix Pol Gonzalez
🐧
Committed by
Aleix Pol Gonzalez
Sep 28, 2022
Browse files
Make sure the QuickDialog's localisation context has a domain
(cherry picked from commit
2e6b976d
)
parent
ab17ce2b
Pipeline
#238026
passed with stage
in 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/quickdialog.cpp
View file @
59314fc6
...
...
@@ -24,7 +24,9 @@ QuickDialog::~QuickDialog() noexcept
void
QuickDialog
::
create
(
const
QString
&
file
,
const
QVariantMap
&
props
)
{
auto
engine
=
new
QQmlApplicationEngine
(
this
);
engine
->
rootContext
()
->
setContextObject
(
new
KLocalizedContext
(
engine
));
auto
context
=
new
KLocalizedContext
(
engine
);
context
->
setTranslationDomain
(
TRANSLATION_DOMAIN
);
engine
->
rootContext
()
->
setContextObject
(
context
);
engine
->
setInitialProperties
(
props
);
engine
->
load
(
file
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment