Changeset View
Changeset View
Standalone View
Standalone View
greeter/greeterapp.cpp
Show First 20 Lines • Show All 357 Lines • ▼ Show 20 Line(s) | |||||
358 | void UnlockApp::markViewsAsVisible(KQuickAddons::QuickViewSharedEngine *view) | 358 | void UnlockApp::markViewsAsVisible(KQuickAddons::QuickViewSharedEngine *view) | ||
359 | { | 359 | { | ||
360 | disconnect(view, &QQuickWindow::frameSwapped, this, 0); | 360 | disconnect(view, &QQuickWindow::frameSwapped, this, 0); | ||
361 | QQmlProperty showProperty(view->rootObject(), QStringLiteral("viewVisible")); | 361 | QQmlProperty showProperty(view->rootObject(), QStringLiteral("viewVisible")); | ||
362 | showProperty.write(true); | 362 | showProperty.write(true); | ||
363 | // random state update, actually rather required on init only | 363 | // random state update, actually rather required on init only | ||
364 | QMetaObject::invokeMethod(this, "getFocus", Qt::QueuedConnection); | 364 | QMetaObject::invokeMethod(this, "getFocus", Qt::QueuedConnection); | ||
365 | QGuiApplication::clipboard()->clear(); | 365 | QGuiApplication::clipboard()->clear(); | ||
366 | QGuiApplication::clipboard()->clear(QClipboard::Selection); | ||||
366 | } | 367 | } | ||
367 | 368 | | |||
368 | void UnlockApp::getFocus() | 369 | void UnlockApp::getFocus() | ||
369 | { | 370 | { | ||
370 | if (m_views.isEmpty()) { | 371 | if (m_views.isEmpty()) { | ||
371 | return; | 372 | return; | ||
372 | } | 373 | } | ||
373 | QWindow *w = 0; | 374 | QWindow *w = 0; | ||
▲ Show 20 Lines • Show All 332 Lines • Show Last 20 Lines |