mirror of
https://github.com/overte-org/overte.git
synced 2025-04-17 06:26:28 +02:00
31 lines
766 B
QML
31 lines
766 B
QML
//
|
|
// 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 bool closeButtonVisible: false
|
|
// only applicable for if close button is visible.
|
|
property bool clickedCloseButton: false
|
|
property int colorScheme: hifi.colorSchemes.light
|
|
property bool draggable: false
|
|
|
|
signal frameClicked();
|
|
|
|
anchors.centerIn: draggable ? undefined : parent
|
|
}
|