ApplicationWindow.qml 1018 Bytes
Newer Older
Ronan's avatar
Ronan committed
1
import QtQuick 2.7
2
import QtQuick.Controls 2.2
Ronan's avatar
Ronan committed
3 4 5 6 7

import 'Window.js' as Logic

// =============================================================================

8
ApplicationWindow {
9 10
  id: window

Ronan's avatar
Ronan committed
11 12
  default property alias _content: content.data

13 14 15 16 17 18 19
  readonly property bool virtualWindowVisible: virtualWindow.visible

  // ---------------------------------------------------------------------------

  signal attachedVirtualWindow
  signal detachedVirtualWindow

Ronan's avatar
Ronan committed
20 21
  // ---------------------------------------------------------------------------

22 23
  function attachVirtualWindow (component, properties, exitStatusHandler) {
    Logic.attachVirtualWindow.call(this, component, properties, exitStatusHandler)
Ronan's avatar
Ronan committed
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
  }

  function detachVirtualWindow () {
    Logic.detachVirtualWindow()
  }

  // ---------------------------------------------------------------------------

  Item {
    anchors.fill: parent

    Rectangle {
      id: content

      anchors.fill: parent
    }

    VirtualWindow {
      id: virtualWindow
    }
  }
}