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