From e9188f712ae52266b61f91509b86880e7db36280 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 9 Jan 2012 17:22:09 +0100 Subject: [PATCH] try harder to maximize the dialog window --- declarativeimports/plasmacomponents/fullscreendialog.cpp | 2 ++ declarativeimports/plasmacomponents/plasmacomponentsplugin.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/declarativeimports/plasmacomponents/fullscreendialog.cpp b/declarativeimports/plasmacomponents/fullscreendialog.cpp index 6df54742c..3c4201492 100644 --- a/declarativeimports/plasmacomponents/fullscreendialog.cpp +++ b/declarativeimports/plasmacomponents/fullscreendialog.cpp @@ -203,7 +203,9 @@ void FullScreenDialog::setVisible(const bool visible) if (m_view->isVisible() != visible) { m_view->setVisible(visible); if (visible) { + unsigned long state = NET::Sticky | NET::StaysOnTop | NET::KeepAbove | NET::SkipTaskbar | NET::SkipPager | NET::MaxVert | NET::MaxHoriz; m_view->setVisible(visible); + KWindowSystem::setState(m_view->effectiveWinId(), state); m_view->raise(); } } diff --git a/declarativeimports/plasmacomponents/plasmacomponentsplugin.cpp b/declarativeimports/plasmacomponents/plasmacomponentsplugin.cpp index f74046b9c..615cfe845 100644 --- a/declarativeimports/plasmacomponents/plasmacomponentsplugin.cpp +++ b/declarativeimports/plasmacomponents/plasmacomponentsplugin.cpp @@ -97,6 +97,7 @@ void PlasmaComponentsPlugin::registerTypes(const char *uri) qmlRegisterType(uri, 0, 1, "Menu"); qmlRegisterType(uri, 0, 1, "MenuItem"); + //on touch systems the dialog is fullscreen, c++ needed to do that } else { qmlRegisterType(uri, 0, 1, "Dialog"); }