~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/painting-painterpaths-window-h.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: window.h Example File (painting/painterpaths/window.h)</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">window.h Example File</h1>
143
 
<span class="small-subtitle">painting/painterpaths/window.h</span>
144
 
<!-- $$$painting/painterpaths/window.h-description -->
145
 
<div class="descr"> <a name="details"></a>
146
 
<pre class="highlightedCode brush: cpp"><span class="comment"> /****************************************************************************
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
 
 ****************************************************************************/</span>
185
 
 
186
 
 #ifndef WINDOW_H
187
 
 #define WINDOW_H
188
 
 
189
 
 #include &lt;QWidget&gt;
190
 
 
191
 
 class QComboBox;
192
 
 class QLabel;
193
 
 class QSpinBox;
194
 
 
195
 
 class RenderArea;
196
 
 
197
 
 class Window : public QWidget
198
 
 {
199
 
     Q_OBJECT
200
 
 
201
 
 public:
202
 
     Window();
203
 
 
204
 
 private slots:
205
 
     void fillRuleChanged();
206
 
     void fillGradientChanged();
207
 
     void penColorChanged();
208
 
 
209
 
 private:
210
 
     void populateWithColors(QComboBox *comboBox);
211
 
     QVariant currentItemData(QComboBox *comboBox);
212
 
 
213
 
     enum { NumRenderAreas = 9 };
214
 
 
215
 
     RenderArea *renderAreas[NumRenderAreas];
216
 
     QLabel *fillRuleLabel;
217
 
     QLabel *fillGradientLabel;
218
 
     QLabel *fillToLabel;
219
 
     QLabel *penWidthLabel;
220
 
     QLabel *penColorLabel;
221
 
     QLabel *rotationAngleLabel;
222
 
     QComboBox *fillRuleComboBox;
223
 
     QComboBox *fillColor1ComboBox;
224
 
     QComboBox *fillColor2ComboBox;
225
 
     QSpinBox *penWidthSpinBox;
226
 
     QComboBox *penColorComboBox;
227
 
     QSpinBox *rotationAngleSpinBox;
228
 
 };
229
 
 
230
 
 #endif</pre>
231
 
</div>
232
 
<!-- @@@painting/painterpaths/window.h -->
233
 
        <div class="feedback t_button">
234
 
          [+] Documentation Feedback</div>
235
 
      </div>
236
 
    </div>
237
 
    </div> 
238
 
    <div class="ft">
239
 
      <span></span>
240
 
    </div>
241
 
  </div> 
242
 
  <div class="footer">
243
 
    <p>
244
 
      <acronym title="Copyright">&copy;</acronym> 2008-2010 Nokia Corporation and/or its
245
 
      subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation 
246
 
      in Finland and/or other countries worldwide.</p>
247
 
    <p>
248
 
      All other trademarks are property of their respective owners. <a title="Privacy Policy"
249
 
        href="http://qt.nokia.com/about/privacy-policy">Privacy Policy</a></p>
250
 
    <br />
251
 
    <p>
252
 
      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>
253
 
    <p>
254
 
      Alternatively, this document may be used under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU
255
 
      Free Documentation License version 1.3</a>
256
 
      as published by the Free Software Foundation.</p>
257
 
  </div>
258
 
  <div id="feedbackBox">
259
 
      <div id="feedcloseX" class="feedclose t_button">X</div>
260
 
    <form id="feedform" action="http://doc.qt.nokia.com/docFeedbck/feedback.php" method="get">
261
 
      <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 
262
 
      requests, please use the <a href="http://bugreports.qt.nokia.com/secure/Dashboard.jspa">Qt Bug Tracker</a>.</p>
263
 
      <p><textarea id="feedbox" name="feedText" rows="5" cols="40"></textarea></p>
264
 
      <p><input id="feedsubmit" class="feedclose" type="submit" name="feedback" /></p>
265
 
    </form>
266
 
  </div>
267
 
  <div id="blurpage">
268
 
  </div>
269
 
</body>
270
 
</html>