void MSignallingWindow::showHide()
{
    if (isOnDisplay())
        hide();
    else
        show();
}
StatusIndicator::StatusIndicator(QGraphicsItem *parent) :
    MWidgetController(new StatusIndicatorModel, parent),
    animateIfPossible(false),
    modelUpdatesEnabled(isOnDisplay()),
    currentValue(QVariant())
{
}
void StatusIndicatorMenuWindow::makeVisible()
{
#ifdef HAVE_QMSYSTEM
    if (deviceLocked) {
        return;
    }
#endif

    // Show the window if it's not visible (from Qt's point of view). Note that isOnDisplay() should NOT be used here: show() means setVisible(true) and the accessor is isVisible().
    if (!isVisible()) {
        show();
    }

    // Always raise the window. Even if it's visible (from Qt's point of view) it may not be the topmost window.
    raise();

    // If the menu is closed and opened quickly enough, we might never get the displayEnter signal because the display state
    // exits with a delay, so displayActive is not called and we need to make the menu widget appear here
    if(menuWidget->sceneWindowState() == MSceneWindow::Disappeared && isOnDisplay()) {
        sceneManager()->appearSceneWindow(menuWidget);
    }
}