import QtQuick 2.0 //import "../components" import QtQuick.Window 2.0 import QtDesktop 0.2 import "content" Rectangle { property string loremIpsum: "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor "+ "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor "+ "incididunt ut labore et dolore magna aliqua.\n Ut enim ad minim veniam, quis nostrud "+ "exercitation ullamco laboris nisi ut aliquip ex ea commodo cosnsequat. "; width: 538 + frame.margins * 2 height: 360 + frame.margins * 2 ToolBar { id: toolbar width: parent.width height: 40 Row { spacing: 2 anchors.verticalCenter: parent.verticalCenter ToolButton{ iconName: "folder-new" iconSource: "images/folder_new.png" anchors.verticalCenter: parent.verticalCenter Accessible.name: "New" tooltip: "A button." } ToolButton{ iconName: "folder-new" iconSource: "images/folder_new.png" anchors.verticalCenter: parent.verticalCenter Accessible.name: "New 2" tooltip: "A second button." } ToolButton{ iconName: "window-new" iconSource: "images/toplevel_window.png" anchors.verticalCenter: parent.verticalCenter onClicked: window1.visible = !window1.visible Accessible.name: "New window" tooltip: "New window button." } } Window { id: window1 width: 400 height: 400 /* minimumWidth: 400 minimumHeight: 400 windowDecoration: true modal: modalCheck.checked */ windowTitle: "child window" /* MenuBar { Menu { text: "File" MenuItem { text: "Open" shortcut: "Ctrl+O" iconSource: "images/toplevel_window.png" onTriggered: console.log("we should display a file open dialog") } MenuItem { text: "Close" shortcut: "Ctrl+Q" onTriggered: Qt.quit() } } Menu { text: "Window" MenuItem { text: "Enable Window Decoration" onTriggered: window1.windowDecoration = true } MenuItem { text: "Disable Window Decoration" onTriggered: window1.windowDecoration = false } Menu { text: "Advanced" iconSource: "images/toplevel_window.png" MenuItem { id: modalCheck text: "Window Modal" checkable: true } } } } */ Rectangle { color: syspal.window anchors.fill: parent Text { id: dimensionsText anchors.horizontalCenter: parent.horizontalCenter anchors.top: parent.top anchors.margins: frame.margins width: parent.width horizontalAlignment: Text.AlignHCenter text: { if (Desktop.screenCount == 1) { "You have only a single screen.\nThe dimensions of your screen are: " + Desktop.screenWidth + " x " + Desktop.screenHeight; } else { var text = "You have " + Desktop.screenCount + " screens.\nThe dimensions of your screens are: " for(var i=0; i