use showFullScreen() instead of visible=true

This commit is contained in:
Marco Martin 2018-02-12 16:37:35 +01:00
parent 3b265922fd
commit 57a016320b
3 changed files with 2 additions and 4 deletions

View file

@ -42,10 +42,8 @@ FullScreenPanel::~FullScreenPanel()
void FullScreenPanel::showEvent(QShowEvent *event) void FullScreenPanel::showEvent(QShowEvent *event)
{ {
QQuickWindow::showEvent(event); QQuickWindow::showEvent(event);
setWindowState(Qt::WindowFullScreen);
KWindowSystem::setState(winId(), NET::SkipTaskbar); KWindowSystem::setState(winId(), NET::SkipTaskbar);
} }
#include "fullscreenpanel.moc" #include "fullscreenpanel.moc"

View file

@ -40,7 +40,7 @@ FullScreenPanel {
property alias fixedArea: fixedArea property alias fixedArea: fixedArea
function open() { function open() {
window.visible = true; window.showFullScreen();
peekAnim.running = true; peekAnim.running = true;
} }
function close() { function close() {

View file

@ -83,7 +83,7 @@ FullScreenPanel {
property alias to: internalAnim.to property alias to: internalAnim.to
property alias from: internalAnim.from property alias from: internalAnim.from
ScriptAction { ScriptAction {
script: window.visible = true; script: window.showFullScreen();
} }
NumberAnimation { NumberAnimation {
id: internalAnim id: internalAnim