~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to .pc/debian-changes-4:4.7.1-0ubuntu7/doc/html/declarative-tutorials-samegame-samegame2-samegame-qml.html

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2011-01-18 20:37:32 UTC
  • Revision ID: james.westby@ubuntu.com-20110118203732-butn2uvaa6hydoqu
Tags: 4:4.7.1-0ubuntu8
Add kubuntu_26_dbusconnection_pointer.diff,
kubuntu_27_dbus_signal_filter_passes_not_handled.diff from Qt 4.8
to add a way to obtain the DBusConnectionpointer from a
QDBusConnection.  Requested by Ryan Lortie

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="UTF-8"?>
2
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
4
 
<head>
5
 
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
 
  <title>Qt 4.7: samegame.qml Example File (declarative/tutorials/samegame/samegame2/samegame.qml)</title>
7
 
  <link rel="stylesheet" type="text/css" href="style/style.css" />
8
 
  <script src="scripts/jquery.js" type="text/javascript"></script>
9
 
  <script src="scripts/functions.js" type="text/javascript"></script>
10
 
</head>
11
 
<body class="offline narrow creator">
12
 
 <div class="header" id="qtdocheader">
13
 
    <div class="content"> 
14
 
    <div id="nav-logo">
15
 
      <a href="index.html">Home</a></div>
16
 
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
17
 
    <div id="nav-topright">
18
 
      <ul>
19
 
        <li class="nav-topright-home"><a href="http://qt.nokia.com/">Qt HOME</a></li>
20
 
        <li class="nav-topright-dev"><a href="http://developer.qt.nokia.com/">DEV</a></li>
21
 
        <li class="nav-topright-labs"><a href="http://labs.qt.nokia.com/blogs/">LABS</a></li>
22
 
        <li class="nav-topright-doc nav-topright-doc-active"><a href="http://doc.qt.nokia.com/">
23
 
          DOC</a></li>
24
 
        <li class="nav-topright-blog"><a href="http://blog.qt.nokia.com/">BLOG</a></li>
25
 
      </ul>
26
 
    </div>
27
 
    <div id="shortCut">
28
 
      <ul>
29
 
        <li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.7</a></span></li>
30
 
        <li class="shortCut-topleft-active"><a href="http://doc.qt.nokia.com">ALL VERSIONS        </a></li>
31
 
      </ul>
32
 
     </div>
33
 
 <ul class="sf-menu sf-js-enabled sf-shadow" id="narrowmenu"> 
34
 
                 <li><a href="#">API Lookup</a> 
35
 
                         <ul id="topmenuLook"> 
36
 
                           <li><a href="classes.html">Class index</a></li> 
37
 
                          <li><a href="functions.html">Function index</a></li> 
38
 
                           <li><a href="modules.html">Modules</a></li> 
39
 
                           <li><a href="namespaces.html">Namespaces</a></li> 
40
 
                           <li><a href="qtglobal.html">Global Declarations</a></li> 
41
 
                           <li><a href="licensing.html">Licenses and Credits</a></li> 
42
 
                           </ul> 
43
 
                 </li> 
44
 
                 <li><a href="#">Qt Topics</a> 
45
 
                         <ul id="topmenuTopic"> 
46
 
                           <li><a href="qt-basic-concepts.html">Programming with Qt</a></li> 
47
 
                           <li><a href="qtquick.html">Device UI's &amp; Qt Quick</a></li> 
48
 
                           <li><a href="qt-gui-concepts.html">UI Design with Qt</a></li> 
49
 
                           <li><a href="developing-with-qt.html">Cross-platform and Platform-specific</a></li> 
50
 
                           <li><a href="platform-specific.html">Platform-specific info</a></li> 
51
 
                           <li><a href="technology-apis.html">Qt and Key Technologies</a></li> 
52
 
                           <li><a href="best-practices.html">How-To's and Best Practices</a></li> 
53
 
                         </ul> 
54
 
                </li> 
55
 
                 <li><a href="#">Examples</a> 
56
 
                         <ul id="topmenuexample"> 
57
 
                                 <li><a href="all-examples.html">Examples</a></li> 
58
 
                                 <li><a href="tutorials.html">Tutorials</a></li> 
59
 
                                 <li><a href="demos.html">Demos</a></li> 
60
 
                                 <li><a href="qdeclarativeexamples.html">QML Examples</a></li> 
61
 
                         </ul> 
62
 
                 </li> 
63
 
 </ul> 
64
 
    </div>
65
 
  </div>
66
 
  <div class="wrapper">
67
 
    <div class="hd">
68
 
      <span></span>
69
 
    </div>
70
 
    <div class="bd group">
71
 
      <div class="sidebar">
72
 
        <div class="searchlabel">
73
 
          Search index:</div>
74
 
        <div class="search">
75
 
          <form id="qtdocsearch" action="" onsubmit="return false;">
76
 
            <fieldset>
77
 
              <input type="text" name="searchstring" id="pageType" value="" />
78
 
            </fieldset>
79
 
          </form>
80
 
        </div>
81
 
        <div class="box first bottombar" id="lookup">
82
 
          <h2 title="API Lookup"><span></span>
83
 
            API Lookup</h2>
84
 
          <div  id="list001" class="list">
85
 
          <ul id="ul001" >
86
 
              <li class="defaultLink"><a href="classes.html">Class index</a></li>
87
 
              <li class="defaultLink"><a href="functions.html">Function index</a></li>
88
 
              <li class="defaultLink"><a href="modules.html">Modules</a></li>
89
 
              <li class="defaultLink"><a href="namespaces.html">Namespaces</a></li>
90
 
              <li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li>
91
 
              <li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li>
92
 
            </ul> 
93
 
          </div>
94
 
        </div>
95
 
        <div class="box bottombar" id="topics">
96
 
          <h2 title="Qt Topics"><span></span>
97
 
            Qt Topics</h2>
98
 
          <div id="list002" class="list">
99
 
            <ul id="ul002" >
100
 
                           <li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li> 
101
 
                           <li class="defaultLink"><a href="qtquick.html">Device UI's &amp; Qt Quick</a></li> 
102
 
                           <li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li> 
103
 
                           <li class="defaultLink"><a href="developing-with-qt.html">Cross-platform and Platform-specific</a></li> 
104
 
                           <li class="defaultLink"><a href="platform-specific.html">Platform-specific info</a></li> 
105
 
                           <li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li> 
106
 
                           <li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li> 
107
 
            </ul>  
108
 
          </div>
109
 
        </div>
110
 
        <div class="box" id="examples">
111
 
          <h2 title="Examples"><span></span>
112
 
            Examples</h2>
113
 
          <div id="list003" class="list">
114
 
        <ul id="ul003">
115
 
              <li class="defaultLink"><a href="all-examples.html">Examples</a></li>
116
 
              <li class="defaultLink"><a href="tutorials.html">Tutorials</a></li>
117
 
              <li class="defaultLink"><a href="demos.html">Demos</a></li>
118
 
              <li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li>
119
 
            </ul> 
120
 
          </div>
121
 
        </div>
122
 
      </div>
123
 
      <div class="wrap">
124
 
        <div class="toolbar">
125
 
          <div class="breadcrumb toolblock">
126
 
            <ul>
127
 
              <li class="first"><a href="index.html">Home</a></li>
128
 
              <!--  Bread crumbs goes here -->
129
 
            </ul>
130
 
          </div>
131
 
          <div class="toolbuttons toolblock">
132
 
            <ul>
133
 
              <li id="smallA" class="t_button">A</li>
134
 
              <li id="medA" class="t_button active">A</li>
135
 
              <li id="bigA" class="t_button">A</li>
136
 
              <li id="print" class="t_button"><a href="javascript:this.print();">
137
 
                <span>Print</span></a></li>
138
 
            </ul>
139
 
        </div>
140
 
        </div>
141
 
        <div class="content">
142
 
<h1 class="title">samegame.qml Example File</h1>
143
 
<span class="small-subtitle">declarative/tutorials/samegame/samegame2/samegame.qml</span>
144
 
<!-- $$$declarative/tutorials/samegame/samegame2/samegame.qml-description -->
145
 
<div class="descr"> <a name="details"></a>
146
 
<pre class="highlightedCode brush: cpp"> /****************************************************************************
147
 
 **
148
 
 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
149
 
 ** All rights reserved.
150
 
 ** Contact: Nokia Corporation (qt-info@nokia.com)
151
 
 **
152
 
 ** This file is part of the examples of the Qt Toolkit.
153
 
 **
154
 
 ** $QT_BEGIN_LICENSE:BSD$
155
 
 ** You may use this file under the terms of the BSD license as follows:
156
 
 **
157
 
 ** &quot;Redistribution and use in source and binary forms, with or without
158
 
 ** modification, are permitted provided that the following conditions are
159
 
 ** met:
160
 
 **   * Redistributions of source code must retain the above copyright
161
 
 **     notice, this list of conditions and the following disclaimer.
162
 
 **   * Redistributions in binary form must reproduce the above copyright
163
 
 **     notice, this list of conditions and the following disclaimer in
164
 
 **     the documentation and/or other materials provided with the
165
 
 **     distribution.
166
 
 **   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
167
 
 **     the names of its contributors may be used to endorse or promote
168
 
 **     products derived from this software without specific prior written
169
 
 **     permission.
170
 
 **
171
 
 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
172
 
 ** &quot;AS IS&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
173
 
 ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
174
 
 ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
175
 
 ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
176
 
 ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
177
 
 ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
178
 
 ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
179
 
 ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
180
 
 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
181
 
 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.&quot;
182
 
 ** $QT_END_LICENSE$
183
 
 **
184
 
 ****************************************************************************/
185
 
 
186
 
 import QtQuick 1.0
187
 
 import &quot;samegame.js&quot; as SameGame
188
 
 
189
 
 Rectangle {
190
 
     id: screen
191
 
 
192
 
     width: 490; height: 720
193
 
 
194
 
     SystemPalette { id: activePalette }
195
 
 
196
 
     Item {
197
 
         width: parent.width
198
 
         anchors { top: parent.top; bottom: toolBar.top }
199
 
 
200
 
         Image {
201
 
             id: background
202
 
             anchors.fill: parent
203
 
             source: &quot;../shared/pics/background.jpg&quot;
204
 
             fillMode: Image.PreserveAspectCrop
205
 
         }
206
 
     }
207
 
 
208
 
     Rectangle {
209
 
         id: toolBar
210
 
         width: parent.width; height: 32
211
 
         color: activePalette.window
212
 
         anchors.bottom: screen.bottom
213
 
 
214
 
         Button {
215
 
             anchors { left: parent.left; verticalCenter: parent.verticalCenter }
216
 
             text: &quot;New Game&quot;
217
 
             onClicked: SameGame.startNewGame()
218
 
         }
219
 
 
220
 
         Text {
221
 
             id: score
222
 
             anchors { right: parent.right; verticalCenter: parent.verticalCenter }
223
 
             text: &quot;Score: Who knows?&quot;
224
 
         }
225
 
     }
226
 
 }</pre>
227
 
</div>
228
 
<!-- @@@declarative/tutorials/samegame/samegame2/samegame.qml -->
229
 
        <div class="feedback t_button">
230
 
          [+] Documentation Feedback</div>
231
 
      </div>
232
 
    </div>
233
 
    </div> 
234
 
    <div class="ft">
235
 
      <span></span>
236
 
    </div>
237
 
  </div> 
238
 
  <div class="footer">
239
 
    <p>
240
 
      <acronym title="Copyright">&copy;</acronym> 2008-2010 Nokia Corporation and/or its
241
 
      subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation 
242
 
      in Finland and/or other countries worldwide.</p>
243
 
    <p>
244
 
      All other trademarks are property of their respective owners. <a title="Privacy Policy"
245
 
        href="http://qt.nokia.com/about/privacy-policy">Privacy Policy</a></p>
246
 
    <br />
247
 
    <p>
248
 
      Licensees holding valid Qt Commercial licenses may use this document in accordance with the      Qt Commercial License Agreement provided with the Software or, alternatively, in accordance      with the terms contained in a written agreement between you and Nokia.</p>
249
 
    <p>
250
 
      Alternatively, this document may be used under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU
251
 
      Free Documentation License version 1.3</a>
252
 
      as published by the Free Software Foundation.</p>
253
 
  </div>
254
 
  <div id="feedbackBox">
255
 
      <div id="feedcloseX" class="feedclose t_button">X</div>
256
 
    <form id="feedform" action="http://doc.qt.nokia.com/docFeedbck/feedback.php" method="get">
257
 
      <p id="noteHead">Thank you for giving your feedback.</p> <p class="note">Make sure it is related to this specific page. For more general bugs and 
258
 
      requests, please use the <a href="http://bugreports.qt.nokia.com/secure/Dashboard.jspa">Qt Bug Tracker</a>.</p>
259
 
      <p><textarea id="feedbox" name="feedText" rows="5" cols="40"></textarea></p>
260
 
      <p><input id="feedsubmit" class="feedclose" type="submit" name="feedback" /></p>
261
 
    </form>
262
 
  </div>
263
 
  <div id="blurpage">
264
 
  </div>
265
 
</body>
266
 
</html>