5 changed files with 93 additions and 30 deletions
@ -0,0 +1,54 @@
@@ -0,0 +1,54 @@
|
||||
/**************************************************************************** |
||||
* |
||||
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> |
||||
* |
||||
* QGroundControl is licensed according to the terms in the file |
||||
* COPYING.md in the root of the source code directory. |
||||
* |
||||
****************************************************************************/ |
||||
|
||||
import QtQuick 2.11 |
||||
import QtQuick.Controls 2.4 |
||||
import QtQuick.Dialogs 1.3 |
||||
import QtQuick.Layouts 1.11 |
||||
import QtQuick.Window 2.11 |
||||
|
||||
ApplicationWindow { |
||||
id: errorWindow |
||||
minimumWidth: messageArea.width + 60 |
||||
minimumHeight: messageArea.height + 60 |
||||
width: messageArea.width + 60 |
||||
height: messageArea.height + 60 |
||||
visible: true |
||||
|
||||
//------------------------------------------------------------------------- |
||||
//-- Main, full window background (Fly View) |
||||
background: Item { |
||||
id: rootBackground |
||||
anchors.fill: parent |
||||
Rectangle { |
||||
anchors.fill: parent |
||||
color: "#000000" |
||||
} |
||||
} |
||||
|
||||
Column { |
||||
id: messageArea |
||||
spacing: 20 |
||||
anchors.centerIn: parent |
||||
Label { |
||||
width: 600 |
||||
text: errorMessage |
||||
color: "#eecc44" |
||||
wrapMode: Text.WordWrap |
||||
anchors.horizontalCenter: parent.horizontalCenter |
||||
} |
||||
Button { |
||||
text: qsTr("Close") |
||||
highlighted: true |
||||
onClicked: errorWindow.close() |
||||
anchors.horizontalCenter: parent.horizontalCenter |
||||
} |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue