main.qml
author sl
Tue, 27 May 2014 17:14:22 +0200
changeset 2 780ee91f4ffb
parent 1 bc046f5187fd
child 5 62a1d3631dcb
permissions -rw-r--r--
Creating a quick item for our MiniDisplay.
sl@0
     1
import QtQuick 2.2
sl@0
     2
import QtQuick.Controls 1.2
sl@0
     3
import QtPositioning 5.3
sl@0
     4
import QtWinExtras 1.0
sl@0
     5
import QtQuick.Dialogs 1.2
sl@0
     6
import QtQuick.Window 2.1
sl@0
     7
import Qt.labs.settings 1.0
sl@0
     8
sl@0
     9
sl@0
    10
ApplicationWindow {
sl@0
    11
    id: appWindow
sl@0
    12
    visible: true
sl@0
    13
    width: 640
sl@0
    14
    height: 480
sl@0
    15
    title: qsTr("MiniDisplay Manager")
sl@0
    16
    SystemPalette { id: palette }
sl@0
    17
sl@0
    18
    Settings {
sl@0
    19
        property alias x: appWindow.x
sl@0
    20
        property alias y: appWindow.y
sl@0
    21
        property alias width: appWindow.width
sl@0
    22
        property alias height: appWindow.height
sl@0
    23
    }
sl@0
    24
sl@0
    25
    /*
sl@0
    26
    menuBar: MenuBar {
sl@0
    27
        Menu {
sl@0
    28
            title: qsTr("File")
sl@0
    29
            MenuItem {
sl@0
    30
                text: qsTr("Exit")
sl@0
    31
                onTriggered: Qt.quit();
sl@0
    32
            }
sl@0
    33
        }
sl@0
    34
sl@0
    35
    }*/
sl@0
    36
sl@0
    37
    TabView {
sl@0
    38
        anchors.fill: parent
sl@0
    39
        anchors.margins: 8
sl@2
    40
        Tab {
sl@2
    41
            title: qsTr("Display")
sl@2
    42
            DisplayTab { anchors.fill: parent }
sl@2
    43
        }
sl@2
    44
        Tab {
sl@0
    45
            title: qsTr("Fonts")
sl@0
    46
            FontsTab { anchors.fill: parent }
sl@0
    47
        }
sl@0
    48
        Tab {
sl@0
    49
            title: qsTr("Tests")
sl@0
    50
            TestsTab { anchors.fill: parent }
sl@0
    51
        }
sl@0
    52
sl@0
    53
    }
sl@0
    54
}