Commit 1e6b19f2 authored by Ganesh Katrapati's avatar Ganesh Katrapati
Browse files

Objects added

parent f02a1a9a
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 2.7.0, 2014-09-18T15:00:02. -->
<!-- Written by QtCreator 2.7.0, 2014-09-18T15:05:10. -->
<qtcreator>
<data>
<variable>ProjectExplorer.Project.ActiveTarget</variable>
......@@ -56,7 +56,7 @@
<value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">{57e35cd9-a6f7-4c14-96e9-7e9edc4ab084}</value>
<value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
<value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
<value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">-1</value>
<value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
......@@ -189,7 +189,55 @@
<value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
</valuemap>
<value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
<value type="int" key="ProjectExplorer.Target.RunConfigurationCount">0</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
<value type="bool" key="Analyzer.Project.UseGlobal">true</value>
<valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/>
<value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
<value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
<value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
<value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
<value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
<value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
<value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
<value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value>
<value type="int" key="Analyzer.Valgrind.NumCallers">25</value>
<valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
<value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value>
<value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
<valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds">
<value type="int">0</value>
<value type="int">1</value>
<value type="int">2</value>
<value type="int">3</value>
<value type="int">4</value>
<value type="int">5</value>
<value type="int">6</value>
<value type="int">7</value>
<value type="int">8</value>
<value type="int">9</value>
<value type="int">10</value>
<value type="int">11</value>
<value type="int">12</value>
<value type="int">13</value>
<value type="int">14</value>
</valuelist>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">freefalltower</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/home/nesh/Documents/Work/QtApps/freefalltower/freefalltower.pro</value>
<value type="int" key="Qt4ProjectManager.Qt4RunConfiguration.BaseEnvironmentBase">2</value>
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value>
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">freefalltower.pro</value>
<value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value>
<value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">false</value>
<valuelist type="QVariantList" key="Qt4ProjectManager.Qt4RunConfiguration.UserEnvironmentChanges"/>
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value>
<value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
<value type="bool" key="RunConfiguration.UseCppDebugger">true</value>
<value type="bool" key="RunConfiguration.UseMultiProcess">false</value>
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
</valuemap>
<value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
</valuemap>
</data>
<data>
......
......@@ -8,6 +8,7 @@ int main(int argc, char *argv[])
QtQuick2ApplicationViewer viewer;
viewer.setMainQmlFile(QStringLiteral("qml/freefalltower/main.qml"));
viewer.showExpanded();
viewer.setMaximumSize(QSize(600, 600));
viewer.setPosition(QPoint(500,100));
return app.exec();
}
import QtQuick 2.0
Rectangle {
width: 360
height: 360
width: 500
height: 500
Text {
text: qsTr("Hello World")
anchors.centerIn: parent
id: status_text
x: 236
y: 39
anchors.horizontalCenter: parent.horizontalCenter
text: qsTr("Welcome to Freefall tower")
font.pixelSize: 12
}
MouseArea {
anchors.fill: parent
onClicked: {
Qt.quit();
GridView {
id: objects_grid
x: 25
y: 109
width: 112
height: 85
model : Qt.createComponent("objects.qml").createObject(null);
// Text {
// anchors.bottom: parent.top
// font.weight: Font.Bold
// font.underline: true
// text : "Objects"
// }
delegate: Item {
x: 5
height: 50
Column {
spacing: 5
Rectangle {
width: 40
height: 40
Image {
width: init_width
height : init_height
source : image
}
anchors.horizontalCenter: parent.horizontalCenter
}
Text {
x: 5
text: name
font.bold: true
anchors.horizontalCenter: parent.horizontalCenter
}
}
}
cellHeight: 70
cellWidth: 70
}
}
import QtQuick 2.0
ListModel {
id : object_list
ListElement {
name: "Golf Ball"
image: "golf-ball.jpg"
mass : 100
init_width : 50
init_height : 40
}
ListElement {
name: "Cotton Ball"
image : "cotton-ball.jpg"
mass : 200
init_width : 40
init_height : 40
}
ListElement {
name: "Iron Ball"
image : "iron-ball.jpg"
mass : 300
init_width : 40
init_height : 40
}
ListElement {
name: "Foot Ball"
image : "football.jpg"
mass : 300
init_width : 40
init_height : 40
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment