//
//  ModalWindow.qml
//
//  Created by Bradley Austin Davis on 22 Jan 2016
//  Copyright 2015 High Fidelity, Inc.
//
//  Distributed under the Apache License, Version 2.0.
//  See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//

import QtQuick 2.5

import "."

ScrollingWindow {
    id: window
    modality: Qt.ApplicationModal
    destroyOnCloseButton: true
    destroyOnHidden: true
    frame: ModalFrame { }

    property int colorScheme: hifi.colorSchemes.light
    property bool draggable: false

    signal frameClicked();

    anchors.centerIn: draggable ? undefined : parent
}