Changeset View
Changeset View
Standalone View
Standalone View
src/plasmaquick/dialog.cpp
Show First 20 Lines • Show All 1313 Lines • ▼ Show 20 Line(s) | |||||
1314 | { | 1314 | { | ||
1315 | d->componentComplete = false; | 1315 | d->componentComplete = false; | ||
1316 | } | 1316 | } | ||
1317 | 1317 | | |||
1318 | void Dialog::componentComplete() | 1318 | void Dialog::componentComplete() | ||
1319 | { | 1319 | { | ||
1320 | d->componentComplete = true; | 1320 | d->componentComplete = true; | ||
1321 | QQuickWindow::setVisible(d->visible); | 1321 | QQuickWindow::setVisible(d->visible); | ||
1322 | if (d->visible) { | | |||
1323 | // FIXME TODO: We can remove this once we depend on Qt 5.6.1+. | | |||
1324 | // See: https://bugreports.qt.io/browse/QTBUG-26978 | | |||
1325 | KWindowSystem::setState(winId(), NET::SkipTaskbar | NET::SkipPager); | | |||
1326 | } | | |||
1327 | d->updateTheme(); | 1322 | d->updateTheme(); | ||
1328 | } | 1323 | } | ||
1329 | 1324 | | |||
1330 | bool Dialog::hideOnWindowDeactivate() const | 1325 | bool Dialog::hideOnWindowDeactivate() const | ||
1331 | { | 1326 | { | ||
1332 | return d->hideOnWindowDeactivate; | 1327 | return d->hideOnWindowDeactivate; | ||
1333 | } | 1328 | } | ||
1334 | 1329 | | |||
Show All 31 Lines | 1360 | if (visible && d->visualParent) { | |||
1366 | setPosition(popupPosition(d->visualParent, size())); | 1361 | setPosition(popupPosition(d->visualParent, size())); | ||
1367 | } | 1362 | } | ||
1368 | //setting the main item visible before the show event arrives | 1363 | //setting the main item visible before the show event arrives | ||
1369 | //makes positioning work better | 1364 | //makes positioning work better | ||
1370 | if (visible && d->mainItem) { | 1365 | if (visible && d->mainItem) { | ||
1371 | d->mainItem->setVisible(true); | 1366 | d->mainItem->setVisible(true); | ||
1372 | } | 1367 | } | ||
1373 | QQuickWindow::setVisible(visible); | 1368 | QQuickWindow::setVisible(visible); | ||
1374 | if (visible) { | | |||
1375 | // FIXME TODO: We can remove this once we depend on Qt 5.6.1+. | | |||
1376 | // See: https://bugreports.qt.io/browse/QTBUG-26978 | | |||
1377 | KWindowSystem::setState(winId(), NET::SkipTaskbar | NET::SkipPager); | | |||
1378 | } | | |||
1379 | //signal will be emitted and proxied from the QQuickWindow code | 1369 | //signal will be emitted and proxied from the QQuickWindow code | ||
1380 | } else { | 1370 | } else { | ||
1381 | emit visibleChangedProxy(); | 1371 | emit visibleChangedProxy(); | ||
1382 | } | 1372 | } | ||
1383 | } | 1373 | } | ||
1384 | 1374 | | |||
1385 | bool Dialog::isVisible() const | 1375 | bool Dialog::isVisible() const | ||
1386 | { | 1376 | { | ||
Show All 25 Lines |