| 1 |
import QtQuick 2.4 |
| 2 |
import QtQuick.Controls 2.2 |
| 3 |
|
| 4 |
import FlightGear.Launcher 1.0 |
| 5 |
import FlightGear 1.0 |
| 6 |
|
| 7 |
Item { |
| 8 |
|
| 9 |
Row { |
| 10 |
id: buttonRow |
| 11 |
spacing: Style.margin |
| 12 |
height: childrenRect.height |
| 13 |
anchors { |
| 14 |
margins: Style.margin |
| 15 |
top: parent.top |
| 16 |
left: parent.left |
| 17 |
right: parent.right |
| 18 |
} |
| 19 |
|
| 20 |
Button { |
| 21 |
text: qsTr("Copy to clipboard") |
| 22 |
onClicked: { |
| 23 |
_config.copyCommandLine(); |
| 24 |
} |
| 25 |
} |
| 26 |
} |
| 27 |
|
| 28 |
Flickable { |
| 29 |
id: flick |
| 30 |
ScrollBar.vertical: ScrollBar {} |
| 31 |
|
| 32 |
anchors { |
| 33 |
left: parent.left |
| 34 |
right: parent.right |
| 35 |
top: buttonRow.bottom |
| 36 |
bottom: parent.bottom |
| 37 |
margins: Style.margin |
| 38 |
} |
| 39 |
|
| 40 |
contentHeight: contents.implicitHeight |
| 41 |
|
| 42 |
TextEdit { |
| 43 |
id: contents |
| 44 |
width: parent.width |
| 45 |
selectByMouse: true |
| 46 |
|
| 47 |
textFormat: TextEdit.RichText |
| 48 |
readOnly: true |
| 49 |
|
| 50 |
wrapMode: TextEdit.Wrap |
| 51 |
font.pixelSize: Style.baseFontPixelSize |
| 52 |
color: Style.baseTextColor |
| 53 |
|
| 54 |
text: _config.htmlForCommandLine(); |
| 55 |
} |
| 56 |
} |
| 57 |
} |