Commit 57a01632 authored by Marco Martin's avatar Marco Martin

use showFullScreen() instead of visible=true

parent 3b265922
......@@ -42,10 +42,8 @@ FullScreenPanel::~FullScreenPanel()
void FullScreenPanel::showEvent(QShowEvent *event)
{
QQuickWindow::showEvent(event);
setWindowState(Qt::WindowFullScreen);
KWindowSystem::setState(winId(), NET::SkipTaskbar);
}
#include "fullscreenpanel.moc"
......@@ -40,7 +40,7 @@ FullScreenPanel {
property alias fixedArea: fixedArea
function open() {
window.visible = true;
window.showFullScreen();
peekAnim.running = true;
}
function close() {
......
......@@ -83,7 +83,7 @@ FullScreenPanel {
property alias to: internalAnim.to
property alias from: internalAnim.from
ScriptAction {
script: window.visible = true;
script: window.showFullScreen();
}
NumberAnimation {
id: internalAnim
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment