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
KScreenLocker
Commits
cff1ad62
Commit
cff1ad62
authored
Apr 20, 2022
by
Volker Krause
Browse files
Port away from deprecated KDeclarative API
parent
56746387
Pipeline
#166476
passed with stage
in 2 minutes and 20 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
greeter/greeterapp.cpp
View file @
cff1ad62
...
...
@@ -37,6 +37,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include
<KCrash>
#include
<KDeclarative/KQuickAddons/QuickViewSharedEngine>
#include
<KDeclarative/QmlObjectSharedEngine>
#include
<KLocalizedContext>
#include
<KWindowSystem>
#include
<kdeclarative/kdeclarative.h>
...
...
@@ -310,9 +311,8 @@ KQuickAddons::QuickViewSharedEngine *UnlockApp::createViewForScreen(QScreen *scr
});
// first create KDeclarative, to be sure that it created a KIO Network Factory
KDeclarative
::
KDeclarative
declarative
;
declarative
.
setDeclarativeEngine
(
view
->
engine
());
declarative
.
setupBindings
();
KDeclarative
::
KDeclarative
::
setupEngine
(
view
->
engine
());
view
->
engine
()
->
rootContext
()
->
setContextObject
(
new
KLocalizedContext
(
view
->
engine
()));
if
(
!
m_testing
)
{
if
(
QX11Info
::
isPlatformX11
())
{
...
...
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