Squashed commit of changes from the 4.8-temp branch.
88
doc/src/examples/applicationicon.qdoc
Normal file
@ -0,0 +1,88 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
||||
** All rights reserved.
|
||||
** Contact: Nokia Corporation (qt-info@nokia.com)
|
||||
**
|
||||
** This file is part of the documentation of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:FDL$
|
||||
** Commercial Usage
|
||||
** Licensees holding valid Qt Commercial licenses may use this file 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.
|
||||
**
|
||||
** GNU Free Documentation License
|
||||
** Alternatively, this file may be used under the terms of the GNU Free
|
||||
** Documentation License version 1.3 as published by the Free Software
|
||||
** Foundation and appearing in the file included in the packaging of this
|
||||
** file.
|
||||
**
|
||||
** If you have questions regarding the use of this file, please contact
|
||||
** Nokia at qt-info@nokia.com.
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
/*! \example widgets/applicationicon
|
||||
\group all-examples
|
||||
\title Application Icon Example
|
||||
|
||||
The example shows how to add an application icon to a mobile application.
|
||||
|
||||
\image appicon_screenshot.png The icon on a Nokia XPressMusic 5800
|
||||
|
||||
\section1 Creating an icon for Maemo
|
||||
|
||||
Maemo expects the icon of an application to be a 64x64 PNG image file. The
|
||||
file name of the icon should be the same as the executable with a \c .png
|
||||
extension. You also need a \c .desktop file that gives the window manager
|
||||
hints about the application, such as name, type and icon.
|
||||
|
||||
\quotefile examples/widgets/applicationicon/applicationicon.desktop
|
||||
|
||||
The \c Icon field should also contain the name of the executable. On the
|
||||
device, application icons are stored in the
|
||||
\c /usr/share/icons/hicolor/64x64/apps directory
|
||||
and desktop files in the \c /usr/share/applications/hildon directory.
|
||||
|
||||
\section1 Creating an icon for Symbian
|
||||
|
||||
Symbian uses Scalable Vector Graphics (SVG Tiny 1.1+) to render
|
||||
application icons in the application menu. Therefore icons could be
|
||||
created manually with a text editor, since SVG files are plain text with
|
||||
XML syntax, but usually you would use a vector graphics program that is
|
||||
able to output SVG files. Popular graphics programs such as Adobe
|
||||
Illustrator or Inkscape are able to do so.
|
||||
|
||||
For best results, the icon should be created on a 44x44 pixel canvas.
|
||||
Otherwise the image might be scaled in unexpected ways.
|
||||
|
||||
Once you have created your icon, make sure that it is stored according to
|
||||
the SVG-Tiny 1.1+ standard. Inkscape, for instance, is not able to save
|
||||
images that way, but there are tools that can convert general SVG files
|
||||
into the Tiny format. For instance, the svg2svgt tool that is bundled with
|
||||
Symbian 3rd and 5th editon SDKs under the folder s60tools can do this
|
||||
conversion to some extent. Another tool to convert SVG to SVG Tiny is SVG
|
||||
Pony.
|
||||
|
||||
\section1 Adding the icons to the project
|
||||
|
||||
Edit the .pro file and specify the ICON variable for the symbian target.
|
||||
For Maemo, we need to add that the \c .desktop and icon file should be
|
||||
installed.
|
||||
|
||||
\quotefile examples/widgets/applicationicon/applicationicon.pro
|
||||
|
||||
Currently, Qt Creator doesn't include the icon and desktop files in the
|
||||
application package for Maemo, merely the executable file is included. As a
|
||||
workaround for this, the files can be added manually in the Projects tab.
|
||||
In the "Create Package" build step for the Maemo target, the \c .desktop
|
||||
file and icon can be added to be a part of the package contents.
|
||||
Unfortunately, these additions are only stored as a part of the
|
||||
\c .pro.user file. This issue will be resolved in a future release of
|
||||
Qt Creator.
|
||||
|
||||
\image appicon_packagecontents.png Manual addition of files to the "Create Package" build step
|
||||
*/
|
178
doc/src/examples/cube.qdoc
Normal file
@ -0,0 +1,178 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
||||
** All rights reserved.
|
||||
** Contact: Nokia Corporation (qt-info@nokia.com)
|
||||
**
|
||||
** This file is part of the documentation of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** No Commercial Usage
|
||||
** This file contains pre-release code and may not be distributed.
|
||||
** You may use this file in accordance with the terms and conditions
|
||||
** contained in the Technology Preview License Agreement accompanying
|
||||
** this package.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 2.1 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 2.1 requirements
|
||||
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
**
|
||||
** In addition, as a special exception, Nokia gives you certain additional
|
||||
** rights. These rights are described in the Nokia Qt LGPL Exception
|
||||
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
**
|
||||
** If you have questions regarding the use of this file, please contact
|
||||
** Nokia at qt-info@nokia.com.
|
||||
**
|
||||
**
|
||||
**
|
||||
**
|
||||
**
|
||||
**
|
||||
**
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
/*!
|
||||
\example opengl/cube
|
||||
\group all-examples
|
||||
\title Cube OpenGL ES 2.0 example
|
||||
|
||||
The Cube OpenGL ES 2.0 example shows how to write mouse rotateable
|
||||
textured 3D cube using OpenGL ES 2.0 with Qt. It shows how to handle
|
||||
polygon geometries efficiently and how to write simple vertex and
|
||||
fragment shader for programmable graphics pipeline. In addition it
|
||||
shows how to use quaternions for representing 3D object orientation.
|
||||
|
||||
This example has been written for OpenGL ES 2.0 but it works also on
|
||||
desktop OpenGL because this example is simple enough and for the
|
||||
most parts desktop OpenGL API is same. It compiles also without OpenGL
|
||||
support but then it just shows a label stating that OpenGL support is
|
||||
required.
|
||||
|
||||
\image cube.png Screenshot of the Cube example running on N900
|
||||
|
||||
The example consist of two classes:
|
||||
|
||||
\list
|
||||
\o \c MainWidget extends QGLWidget and contains OpenGL ES 2.0
|
||||
initialization and drawing and mouse and timer event handling
|
||||
\o \c GeometryEngine handles polygon geometries. Transfers polygon geometry
|
||||
to vertex buffer objects and draws geometries from vertex buffer objects.
|
||||
\endlist
|
||||
|
||||
We'll start by initializing OpenGL ES 2.0 in \c MainWidget.
|
||||
|
||||
\tableofcontents
|
||||
|
||||
\section1 Initializing OpenGL ES 2.0
|
||||
|
||||
Since OpenGL ES 2.0 doesn't support fixed graphics pipeline anymore it has to
|
||||
be implemented by ourselves. This makes graphics pipeline very flexible but
|
||||
in the same time it becomes more difficult because user has to implement graphics
|
||||
pipeline to get even the simplest example running. It also makes graphics pipeline
|
||||
more efficient because user can decide what kind of pipeline is needed for the
|
||||
application.
|
||||
|
||||
First we have to implement vertex shader. It gets vertex data and
|
||||
model-view-projection matrix (MVP) as parameters. It transforms vertex position
|
||||
using MVP matrix to screen space and passes texture coordinate to
|
||||
fragment shader. Texture coordinate will be automatically interpolated on polygon
|
||||
faces.
|
||||
|
||||
\snippet examples/opengl/cube/vshader.glsl 0
|
||||
|
||||
After that we need to implement second part of the graphics pipeline - fragment
|
||||
shader. For this exercise we need to implement fragment shader that handles
|
||||
texturing. It gets interpolated texture coordinate as a parameter and looks up
|
||||
fragment color from the given texture.
|
||||
|
||||
\snippet examples/opengl/cube/fshader.glsl 0
|
||||
|
||||
Using \c QGLShaderProgram we can compile, link and bind shader code to
|
||||
graphics pipeline. This code uses Qt Resource files to access shader source code.
|
||||
|
||||
\snippet examples/opengl/cube/mainwidget.cpp 3
|
||||
|
||||
The following code enables depth buffering and back face culling.
|
||||
|
||||
\snippet examples/opengl/cube/mainwidget.cpp 2
|
||||
|
||||
\section1 Loading textures from Qt Resource files
|
||||
|
||||
\c QGLWidget interface implements methods for loading textures from QImage to GL
|
||||
texture memory. We still need to use OpenGL provided functions for specifying
|
||||
the GL texture unit and configuring texture filtering options.
|
||||
|
||||
\snippet examples/opengl/cube/mainwidget.cpp 4
|
||||
|
||||
\section1 Cube Geometry
|
||||
|
||||
There are many ways to render polygons in OpenGL but the most efficient way is
|
||||
to use only triangle strip primitives and render vertices from graphics hardware
|
||||
memory. OpenGL has a mechanism to create buffer objects to this memory area and
|
||||
transfer vertex data to these buffers. In OpenGL terminology these are referred
|
||||
as Vertex Buffer Objects (VBO).
|
||||
|
||||
\image cube_faces.png Cube faces and vertices
|
||||
|
||||
This is how cube faces break down to triangles. Vertices are ordered this way
|
||||
to get vertex ordering correct using triangle strips. OpenGL determines triangle
|
||||
front and back face based on vertex ordering. By default OpenGL uses
|
||||
counter-clockwise order for front faces. This information is used by back face
|
||||
culling which improves rendering performance by not rendering back faces of the
|
||||
triangles. This way graphics pipeline can omit rendering sides of the triangle that
|
||||
aren't facing towards screen.
|
||||
|
||||
Creating vertex buffer objects and transferring data to them is quite simple using
|
||||
OpenGL provided functions.
|
||||
|
||||
\snippet examples/opengl/cube/geometryengine.cpp 0
|
||||
|
||||
\snippet examples/opengl/cube/geometryengine.cpp 1
|
||||
|
||||
Drawing primitives from VBOs and telling programmable graphics pipeline how to
|
||||
locate vertex data requires few steps. First we need to bind VBOs to be used.
|
||||
After that we bind shader program attribute names and configure what
|
||||
kind of data it has in the bound VBO. Finally we'll draw triangle
|
||||
strip primitives using indices from the other VBO.
|
||||
|
||||
\snippet examples/opengl/cube/geometryengine.cpp 2
|
||||
|
||||
\section1 Perspective projection
|
||||
|
||||
Using \c QMatrix4x4 helper methods it's really easy to calculate perpective
|
||||
projection matrix. This matrix is used to project vertices to screen space.
|
||||
|
||||
\snippet examples/opengl/cube/mainwidget.cpp 5
|
||||
|
||||
\section1 Orientation of the 3D object
|
||||
|
||||
Quaternions are handy way to represent orientation of the 3D object. Quaternions
|
||||
involve quite complex mathematics but fortunately all the necessary mathematics
|
||||
behind quaternions is implemented in \c QQuaternion. That allows us to store
|
||||
cube orientation in quaternion and rotating cube around given axis is quite
|
||||
simple.
|
||||
|
||||
The following code calculates rotation axis and angular speed based on mouse events.
|
||||
|
||||
\snippet examples/opengl/cube/mainwidget.cpp 0
|
||||
|
||||
\c QBasicTimer is used to animate scene and update cube orientation. Rotations
|
||||
can be concatenated simply by multiplying quaternions.
|
||||
|
||||
\snippet examples/opengl/cube/mainwidget.cpp 1
|
||||
|
||||
Model-view matrix is calculated using the quaternion and by moving world by Z axis.
|
||||
This matrix is multiplied with the projection matrix to get MVP matrix for shader
|
||||
program.
|
||||
|
||||
\snippet examples/opengl/cube/mainwidget.cpp 6
|
||||
|
||||
*/
|
162
doc/src/examples/elidedlabel.qdoc
Normal file
@ -0,0 +1,162 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
||||
** All rights reserved.
|
||||
** Contact: Nokia Corporation (qt-info@nokia.com)
|
||||
**
|
||||
** This file is part of the documentation of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:FDL$
|
||||
** Commercial Usage
|
||||
** Licensees holding valid Qt Commercial licenses may use this file 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.
|
||||
**
|
||||
** GNU Free Documentation License
|
||||
** Alternatively, this file may be used under the terms of the GNU Free
|
||||
** Documentation License version 1.3 as published by the Free Software
|
||||
** Foundation and appearing in the file included in the packaging of this
|
||||
** file.
|
||||
**
|
||||
** If you have questions regarding the use of this file, please contact
|
||||
** Nokia at qt-info@nokia.com.
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
/*!
|
||||
\example widgets/elidedlabel
|
||||
\group all-examples
|
||||
\title Elided Label Example
|
||||
|
||||
This example creates a widget similar to QLabel, that elides the last
|
||||
visible line, if the text is too long to fit the widget's geometry.
|
||||
|
||||
\image elidedlabel-example.png Elided Label example on XPressMusic 5800
|
||||
|
||||
When text of varying length has to be displayed in a uniformly sized
|
||||
area, for instance within a list or grid view where all list items have the
|
||||
same size, it can be useful to give the user a visual clue when not all
|
||||
text is visible. QLabel can elide text that doesn't fit within it, but only
|
||||
in one line. The \c ElidedLabel widget shown in this example word wraps its
|
||||
text by its width, and elides the last visible line if some text is left
|
||||
out. \c TestWidget gives control to the features of \c ElidedWidget and
|
||||
forms the example application.
|
||||
|
||||
|
||||
\section1 ElidedLabel Class Definition
|
||||
|
||||
Like QLabel, \c ElidedLabel inherits from QFrame. Here's the definition of
|
||||
the \c ElidedLabel class:
|
||||
|
||||
|
||||
\snippet examples/widgets/elidedlabel/elidedlabel.h 0
|
||||
|
||||
The \c isElided property depends the font, text content and geometry of the
|
||||
widget. Whenever any of these change, the \c elisionChanged() signal might
|
||||
trigger. We cache the current elision value in \c elided, so that it
|
||||
doesn't have to be recomputed every time it's asked for.
|
||||
|
||||
|
||||
\section1 ElidedLabel Class Implementation
|
||||
|
||||
Except for initializing the member variables, the constructor sets the size
|
||||
policy to be horizontally expanding, since it's meant to fill the width of
|
||||
its container and grow vertically.
|
||||
|
||||
\snippet examples/widgets/elidedlabel/elidedlabel.cpp 0
|
||||
|
||||
Changing the \c content require a repaint of the widget.
|
||||
|
||||
\snippet examples/widgets/elidedlabel/elidedlabel.cpp 1
|
||||
|
||||
QTextLayout is used in the \c paintEvent() to divide the \c content into
|
||||
lines, that wrap on word boundaries. Each line, except the last visible
|
||||
one, is drawn \c lineSpacing pixels below the previous one. The \c draw()
|
||||
method of QTextLine will draw the line using the coordinate point as the
|
||||
top left corner.
|
||||
|
||||
\snippet examples/widgets/elidedlabel/elidedlabel.cpp 2
|
||||
|
||||
Unfortunately, QTextLayout does not elide text, so the last visible line
|
||||
has to be treated differently. This last line is elided if it is too wide.
|
||||
The \c drawText() method of QPainter draws the text starting from the base
|
||||
line, which is \c ascecnt() pixels below the last drawn line.
|
||||
|
||||
Finally, one more line is created to see if everything fit on this line.
|
||||
|
||||
\snippet examples/widgets/elidedlabel/elidedlabel.cpp 3
|
||||
|
||||
If the text was elided and wasn't before or vice versa, cache it in
|
||||
\c elided and emit the change.
|
||||
|
||||
\snippet examples/widgets/elidedlabel/elidedlabel.cpp 4
|
||||
|
||||
|
||||
\section1 TestWidget Class Definition
|
||||
|
||||
\c TestWidget is a QWidget and is the main window of the example. It
|
||||
contains an \c ElidedLabel which can be resized with two QSlider widgets.
|
||||
|
||||
\snippet examples/widgets/elidedlabel/testwidget.h 0
|
||||
|
||||
\section1 TestWidget Class Implementation
|
||||
|
||||
The constructor initializes the whole widget. Strings of different length
|
||||
are stored in \c textSamples. The user is able to switch between these.
|
||||
|
||||
\snippet examples/widgets/elidedlabel/testwidget.cpp 0
|
||||
|
||||
An \c ElidedLabel is created to contain the first of the sample strings.
|
||||
The frame is made visible to make it easier to see the actual size of the
|
||||
widget.
|
||||
|
||||
\snippet examples/widgets/elidedlabel/testwidget.cpp 1
|
||||
|
||||
The buttons and the elision label are created. By connecting the
|
||||
\c elisionChanged() signal to the \c setVisible() slot of the \c label,
|
||||
it will act as an indicator to when the text is elided or not. This signal
|
||||
could, for instance, be used to make a "More" button visible, or similar.
|
||||
|
||||
\snippet examples/widgets/elidedlabel/testwidget.cpp 2
|
||||
|
||||
The \c widthSlider and \c heightSlider specify the size of the
|
||||
\c elidedText. Since the y-axis is inverted, the \c heightSlider has to be
|
||||
inverted to act appropriately.
|
||||
|
||||
\snippet examples/widgets/elidedlabel/testwidget.cpp 3
|
||||
|
||||
The components are all stored in a QGridLayout, which is made the layout of
|
||||
the \c TestWidget.
|
||||
|
||||
\snippet examples/widgets/elidedlabel/testwidget.cpp 4
|
||||
|
||||
On the Maemo platform, windows are stuck in landscape mode by default. With
|
||||
this attribute set, the window manager is aware that this window can be
|
||||
rotated.
|
||||
|
||||
\snippet examples/widgets/elidedlabel/testwidget.cpp 5
|
||||
|
||||
The \c widthSlider and \c heightSlider have the exact same length as the
|
||||
dimensions of the \c elidedText. The maximum value for both of them is
|
||||
thus their lengths, and each tick indicates one pixel.
|
||||
|
||||
\snippet examples/widgets/elidedlabel/testwidget.cpp 6
|
||||
|
||||
The \c switchText() slot simply cycles through all the available sample
|
||||
texts.
|
||||
|
||||
\snippet examples/widgets/elidedlabel/testwidget.cpp 7
|
||||
|
||||
These slots set the width and height of the \c elided text, in response to
|
||||
changes in the sliders.
|
||||
|
||||
\section1 The \c main() Function
|
||||
|
||||
The \c main() function creates an instance of \c TestWidget fullscreen and
|
||||
enters the message loop.
|
||||
|
||||
\snippet examples/widgets/elidedlabel/main.cpp 0
|
||||
*/
|
||||
|
164
doc/src/examples/maemovibration.qdoc
Normal file
@ -0,0 +1,164 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
||||
** All rights reserved.
|
||||
** Contact: Nokia Corporation (qt-info@nokia.com)
|
||||
**
|
||||
** This file is part of the documentation of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:FDL$
|
||||
** Commercial Usage
|
||||
** Licensees holding valid Qt Commercial licenses may use this file 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.
|
||||
**
|
||||
** GNU Free Documentation License
|
||||
** Alternatively, this file may be used under the terms of the GNU Free
|
||||
** Documentation License version 1.3 as published by the Free Software
|
||||
** Foundation and appearing in the file included in the packaging of this
|
||||
** file.
|
||||
**
|
||||
** If you have questions regarding the use of this file, please contact
|
||||
** Nokia at qt-info@nokia.com.
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
/*!
|
||||
\example widgets/maemovibration
|
||||
\group all-examples
|
||||
\title Maemo Vibration Example
|
||||
|
||||
The Maemo Vibration example shows how to tell the Maemo Mode Control Entity
|
||||
(MCE) to vibrate a maemo device.
|
||||
|
||||
The MCE is a system service on Maemo that, among other things, provides an
|
||||
D-Bus interface to trigger vibrations. The vibrations are specified as
|
||||
patterns and are defined in a system configuration file.
|
||||
|
||||
The example program reads the configuration file to look for possible
|
||||
vibration patterns and display a button for each. Pressing a button will
|
||||
make the device vibrate accordingly, until the application closes, or
|
||||
another pattern is started.
|
||||
|
||||
\image maemovibration-example.png Screenshot of the Maemo Vibration Example
|
||||
|
||||
The code makes use of two classes:
|
||||
|
||||
\list
|
||||
\o \c MceVibrator connects to the MCE service and can start a certain
|
||||
vibrator pattern. It also is responsible to parse the configuration
|
||||
file.
|
||||
|
||||
\o \c ButtonWidget provides a button for each pattern. Pressing the button
|
||||
activates the pattern in question.
|
||||
\endlist
|
||||
|
||||
|
||||
\section1 MceVibrator Class Definition
|
||||
|
||||
\snippet examples/widgets/maemovibration/mcevibrator.h 0
|
||||
|
||||
The \c MceVibrator class inherits from QObject and provides a specialized
|
||||
and Qt friendly interface to the MCE vibration facilty. The slot \c vibrate()
|
||||
can be called to make the device vibrate according to a specific pattern
|
||||
name. We will connect it to a signal of a \c ButtonWidget object later. The
|
||||
static method \c ParsePatternNames() can be called to find out which patterns
|
||||
are available to us.
|
||||
|
||||
\list
|
||||
\o \c mceInterface is our D-Bus handle to the MCE service. We use it to
|
||||
invoke methods on the MCE request object.
|
||||
|
||||
\o \c lastPatternName contains the pattern that was activated last time. We
|
||||
have to keep track of this, because the last pattern has to be
|
||||
deactivated before activating a new pattern.
|
||||
\endlist
|
||||
|
||||
|
||||
\section1 MceVibrator Class Implementation
|
||||
|
||||
To connect to the service, we initialize the D-Bus interface handle. The
|
||||
system header \c "mce/dbus-names.h" contains definitions of the D-Bus
|
||||
service name and request object path and interface. These are passed to the
|
||||
constructor of the handle, and Qt will automatically establish a connection
|
||||
to it, if it is possible.
|
||||
|
||||
The MCE expects us to first enable the vibrator before we can use it. This
|
||||
is done with the call to the \c MCE_ENABLE_VIBRATOR D-Bus method.
|
||||
|
||||
\snippet examples/widgets/maemovibration/mcevibrator.cpp 0
|
||||
|
||||
From now on we can activate vibration patterns. Each time a vibration
|
||||
pattern is activated, the last pattern has to be deactivated first. In the
|
||||
vibrate slot we use the MCE interface to call the activation method.
|
||||
|
||||
\snippet examples/widgets/maemovibration/mcevibrator.cpp 1
|
||||
|
||||
The calls to the private method deactivate simply makes sure to deactivate
|
||||
the last pattern used, if there was one.
|
||||
|
||||
\snippet examples/widgets/maemovibration/mcevibrator.cpp 2
|
||||
|
||||
Calling either the activate or deactivate MCE D-Bus method with invalid
|
||||
pattern names are ignored.
|
||||
|
||||
Finally, the destructor disables the vibrator. When the destructor of the
|
||||
MCE interface handle is called, the connection is also closed.
|
||||
|
||||
\snippet examples/widgets/maemovibration/mcevibrator.cpp 3
|
||||
|
||||
The MCE configuration file contains options for many different things. We
|
||||
are only interested in one line that contains the vibration patterns. It
|
||||
has the following format:
|
||||
|
||||
|
||||
\code
|
||||
VibratorPatterns=semicolon;separated;list;of;values
|
||||
\endcode
|
||||
|
||||
The static method \c ParsePatternNames looks for this line and returns a
|
||||
QStringList containing the values, which are the pattern names we can use.
|
||||
|
||||
\snippet examples/widgets/maemovibration/mcevibrator.cpp 4
|
||||
|
||||
The helper function \c checkError() saves us some code duplication. None of the
|
||||
called methods return anything of use to us, so we're only interested in
|
||||
getting error messages for debugging.
|
||||
|
||||
\snippet examples/widgets/maemovibration/mcevibrator.cpp 5
|
||||
|
||||
|
||||
\section1 ButtonWidget Class Definition
|
||||
|
||||
\snippet examples/widgets/maemovibration/buttonwidget.h 0
|
||||
|
||||
The \c ButtonWidget class inherits from QWidget and provides the main user
|
||||
interface for the application. It creates a grid of buttons, one for each
|
||||
string in the stringlist passed to the constructor. Pressing a button emits
|
||||
the \c clicked() signal, where the string is the text of the button that
|
||||
was pressed.
|
||||
|
||||
This class is taken from the QSignalMapper documentation. The only change
|
||||
is the number of columns in the grid from three to two, to make the button
|
||||
labels fit.
|
||||
|
||||
|
||||
\section1 ButtonWidget Class Implementation
|
||||
|
||||
\snippet examples/widgets/maemovibration/buttonwidget.cpp 0
|
||||
|
||||
|
||||
\section1 \c main() Function
|
||||
|
||||
The main function begins with looking up the patterns available to us.
|
||||
|
||||
\snippet examples/widgets/maemovibration/main.cpp 0
|
||||
|
||||
Then we create one instance of both classes, and connects the
|
||||
\c ButtonWidget's clicked signal to the \c MceVibrator's \c vibrate() slot.
|
||||
This works, since the button texts are the same as the pattern names.
|
||||
|
||||
\snippet examples/widgets/maemovibration/main.cpp 1
|
||||
*/
|
143
doc/src/examples/orientation.qdoc
Normal file
@ -0,0 +1,143 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
||||
** All rights reserved.
|
||||
** Contact: Nokia Corporation (qt-info@nokia.com)
|
||||
**
|
||||
** This file is part of the documentation of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:FDL$
|
||||
** Commercial Usage
|
||||
** Licensees holding valid Qt Commercial licenses may use this file 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.
|
||||
**
|
||||
** GNU Free Documentation License
|
||||
** Alternatively, this file may be used under the terms of the GNU Free
|
||||
** Documentation License version 1.3 as published by the Free Software
|
||||
** Foundation and appearing in the file included in the packaging of this
|
||||
** file.
|
||||
**
|
||||
** If you have questions regarding the use of this file, please contact
|
||||
** Nokia at qt-info@nokia.com.
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
/*! \example widgets/orientation
|
||||
\group all-examples
|
||||
\title Orientation Example
|
||||
|
||||
The example shows a simple way to use different UIs depending on the screen
|
||||
orientation of a mobile device.
|
||||
|
||||
\image orientation-landscape.png The UI in landscape mode
|
||||
\image orientation-portrait.png The UI in portrait mode
|
||||
|
||||
The screen on many mobile devices can be viewed in both portrait and
|
||||
landscape orientation. The orientation can be swiched with the help of a
|
||||
hardware or software trigger. Due to the often small physical screen size,
|
||||
user interfaces has to be very simple and compact to stay usable, and
|
||||
applications usually occupy the whole screen. Designing a user interface
|
||||
that works equally well in both landscape and portrait mode is not always
|
||||
possible, however, so making a different layout for each case usually pays
|
||||
off.
|
||||
|
||||
The example application makes use of two different UI widgets created with
|
||||
the Qt Designer, one for portrait and one for landscape orientation. The
|
||||
application has a widget that contains an image and the user is able to
|
||||
select one of three images for it to show. In addition to the two UIs, the
|
||||
application consists of a \c MainWindow class.
|
||||
|
||||
\section1 Landscape UI
|
||||
|
||||
If the screen is in landscape mode, the user probably holds the device with
|
||||
both hands and is ready to give full attention to the application. The
|
||||
landscape UI looks like this:
|
||||
|
||||
\image orientation-landscape-ui.png The landscape UI
|
||||
|
||||
To the left is a QWidget called \c choiceWidget, which will show the
|
||||
current image, and to the right are three QRadioButton instances. The
|
||||
active radio button specifies the image to show.
|
||||
|
||||
\section1 Portrait UI
|
||||
|
||||
When the device is in portrait mode, it usually means that the user holds
|
||||
it with one hand, and can comfortably use the thumb for small amounts of
|
||||
input. The layout is simpler, and is focused on consuming content. The
|
||||
portrait UI looks like this:
|
||||
|
||||
\image orientation-portrait-ui.png The portrait UI
|
||||
|
||||
Similarly, it contains a QWidget, also called \c choiceWidget, that will
|
||||
show the current image. In contrast to the landscape UI, this one doesn't
|
||||
provide any controls to change the image.
|
||||
|
||||
\section1 MainWindow Class Definition
|
||||
|
||||
\c MainWindow inherits from QWidget and acts as the top level widget of the
|
||||
application.
|
||||
|
||||
\snippet examples/widgets/orientation/mainwindow.h 0
|
||||
|
||||
The \c resizeEvent() method is re-implemented, and used to check which
|
||||
UI to show. The \c onRadioButtonClicked() slot is connected to the
|
||||
landscape UI's radio button group and selects the current image.
|
||||
|
||||
\c landscapeWidget and \c portraitWidget will contain the UI layouts. Only
|
||||
one of them is visible at a time.
|
||||
|
||||
\section1 MainWindow Class Implementation
|
||||
|
||||
In the constructor, the widgets that will hold the UIs are created and set
|
||||
up.
|
||||
|
||||
\snippet examples/widgets/orientation/mainwindow.cpp 0
|
||||
|
||||
Since the exit buttons on the layouts are different from each other, both
|
||||
of them have to have their \c clicked() signal connected to the \c close()
|
||||
slot of the main widget. The first image is also made current with the call
|
||||
to \c onRadioButtonClicked().
|
||||
|
||||
\snippet examples/widgets/orientation/mainwindow.cpp 1
|
||||
|
||||
On the Maemo platform, windows are stuck in landscape mode by default. The
|
||||
application has to explicitly say that rotation is supported.
|
||||
|
||||
\snippet examples/widgets/orientation/mainwindow.cpp 2
|
||||
|
||||
The \c resizeEvent() is called when the main window is first created, and
|
||||
also whenever the window has been resized. If the window is shown in
|
||||
full screen, this is an indication that the orientation of the screen has
|
||||
changed.
|
||||
|
||||
The dimensions of \c landscapeWidget is the transpose of the dimensions of
|
||||
\c portraitWidget. When the orientation is known, both are set to the
|
||||
(possibly transposed) size of the window. Depending on the orientation, one
|
||||
widget is made visible and the other invisible.
|
||||
|
||||
\snippet examples/widgets/orientation/mainwindow.cpp 3
|
||||
|
||||
When the user selects one of the radio buttons in the landscape UI, the
|
||||
current image is changed. The image is displayed by specifying the
|
||||
background style of the choice widget. Since both \c portrait and
|
||||
\c landscape have a \c choiceWidget of their own, the change has to be
|
||||
reflected in both instances.
|
||||
|
||||
\snippet examples/widgets/orientation/mainwindow.cpp 4
|
||||
|
||||
Synchronizing both UIs like this might become unfeasible when there are
|
||||
many things that can change. In that case it is better to make use of the
|
||||
\l{Introduction to Model/View Programming}{Model-View-Controller pattern}
|
||||
more extensively and share the content between both portrait and landscape
|
||||
widgets. Then an interface for displaying and manipulating it can be tailor
|
||||
made for both orientations.
|
||||
|
||||
\section1 The \c main() Function
|
||||
|
||||
The main function creates a \c MainWindow instance and shows it full
|
||||
screen.
|
||||
\snippet examples/widgets/orientation/main.cpp 0
|
||||
*/
|
192
doc/src/examples/symbianvibration.qdoc
Normal file
@ -0,0 +1,192 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
||||
** All rights reserved.
|
||||
** Contact: Nokia Corporation (qt-info@nokia.com)
|
||||
**
|
||||
** This file is part of the documentation of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:FDL$
|
||||
** Commercial Usage
|
||||
** Licensees holding valid Qt Commercial licenses may use this file 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.
|
||||
**
|
||||
** GNU Free Documentation License
|
||||
** Alternatively, this file may be used under the terms of the GNU Free
|
||||
** Documentation License version 1.3 as published by the Free Software
|
||||
** Foundation and appearing in the file included in the packaging of this
|
||||
** file.
|
||||
**
|
||||
** If you have questions regarding the use of this file, please contact
|
||||
** Nokia at qt-info@nokia.com.
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
/*! \example widgets/symbianvibration
|
||||
\group all-examples
|
||||
\title Symbian Vibration Example
|
||||
|
||||
The Symbian Vibrator example shows how to get fine-grained vibration
|
||||
control on Symbian devices.
|
||||
|
||||
Native Symbian APIs have to be used to enable vibration, since QtMobility
|
||||
doesn't provide an interface for it yet. It is, however, planned to be
|
||||
included in a future release. In anticipation for that, we make use of the
|
||||
\c XQVibra class that was a part of the Mobile Extensions Technology Preview
|
||||
API for Qt for Symbian. The pre-compiled libraries are no longer compatible
|
||||
with Qt 4.6, but we can include the source code itself with the project.
|
||||
|
||||
\image symbianvibration-example.png Screenshot of the Symbian Vibration example
|
||||
|
||||
The example application divides the window into rectangles, which can be
|
||||
pressed to make the device vibrate. Pressing different rectangles make the
|
||||
device vibrate with different intensities. Each rectangle has a different
|
||||
color and its intensity number is drawn on top of it. Moving the cursor
|
||||
from one rectangle to another changes the vibration intensity to that of
|
||||
the new one. Vibration stops when the mouse button has been released. It
|
||||
is also possible to launch a short burst of vibration through the menu.
|
||||
|
||||
The example consists of four classes:
|
||||
|
||||
\list
|
||||
\o \c XQVibra is the vibration interface class taken from the Mobile
|
||||
Extensions for Qt for Symbian.
|
||||
|
||||
\o \c XQVibraPrivate is the Symbian specific private implementation of the
|
||||
vibration implementation.
|
||||
|
||||
\o \c VibrationSurface is a custom widget that uses a XQVibra instance to
|
||||
vibrate the device depending on where the user presses.
|
||||
|
||||
\o \c MainWindow inherits from QMainWindow and contains a \c VibrationSurface
|
||||
as its central widget, and also has a menu from which it is possible to
|
||||
make the phone vibrate.
|
||||
\endlist
|
||||
|
||||
\section1 XQVibra Class Definition
|
||||
|
||||
The \c XQVibra class uses the pimpl-idiom to hide the platform specific
|
||||
implementation behind a common interface. Technically it would be possible
|
||||
to support more target platforms, with only the addition of a private
|
||||
implementation. The rest of the code would work the same, since only the
|
||||
common interface is used.
|
||||
|
||||
\snippet examples/widgets/symbianvibration/xqvibra.h 0
|
||||
|
||||
\c XQVibra provides a very simple interface for us to use. The interesting
|
||||
part are the three slots \c start(), \c stop() and \c setIntensity(). Calling the start
|
||||
method initiates vibration for the specified duration. Calling it while the
|
||||
device is already vibrating causes it to stop the current one and start the
|
||||
new one, even if the intensities are the same. The \c setIntensity() method
|
||||
should be called before starting vibration.
|
||||
|
||||
|
||||
\section1 VibrationSurface Class Definition
|
||||
|
||||
\c VibrationSurface inherits from QWidget and acts like a controller for a
|
||||
\c XQVibra object. It responds to mouse events and performs custom painting.
|
||||
|
||||
\snippet examples/widgets/symbianvibration/vibrationsurface.h 0
|
||||
|
||||
The virtual event methods are reimplemented from QWidget. As can be seen,
|
||||
there is no public programmable interface beyond what QWidget provides.
|
||||
|
||||
|
||||
\section1 VibrationSurface Class Implementation
|
||||
|
||||
Mouse events control the intensity of the vibration.
|
||||
|
||||
\snippet examples/widgets/symbianvibration/vibrationsurface.cpp 0
|
||||
\codeline
|
||||
\snippet examples/widgets/symbianvibration/vibrationsurface.cpp 1
|
||||
\codeline
|
||||
\snippet examples/widgets/symbianvibration/vibrationsurface.cpp 2
|
||||
|
||||
Presses starts the vibration, movement changes the intensity and releases
|
||||
stops the vibration. To set the right amount of vibration, the private
|
||||
method \c applyIntensity() is used. It sets the vibration intensity according to
|
||||
which rectangle the mouse currently resides in.
|
||||
|
||||
\snippet examples/widgets/symbianvibration/vibrationsurface.cpp 3
|
||||
|
||||
We make sure only to change the intensity if it is different than last
|
||||
time, so that the vibrator isn't stopped and restarted unnecessarily.
|
||||
|
||||
The range of vibration intensity ranges from 0 to XQVibra::MaxIntensity. We
|
||||
divide this range into a set of levels. The number of levels and the intensity
|
||||
increase for each level are stored in two constants.
|
||||
|
||||
\snippet examples/widgets/symbianvibration/vibrationsurface.cpp 4
|
||||
|
||||
Each rectangle has an intensity of one \c IntensityPerLevel more than the
|
||||
previous one.
|
||||
|
||||
\snippet examples/widgets/symbianvibration/vibrationsurface.cpp 5
|
||||
|
||||
The rectangles are either put in a row, if the widget's width is greater
|
||||
than its height (landscape), otherwise they are put in a column (portrait).
|
||||
Each rectangle's size is thus dependent on the length of the width or the
|
||||
height of the widget, whichever is longer. The length is then divided by
|
||||
the number of levels, which gets us either the height or the width of each
|
||||
rectangle. The dx and dy specify the distance from one rectangle to the
|
||||
next, which is the same as either the width or height of the rectangle.
|
||||
|
||||
\snippet examples/widgets/symbianvibration/vibrationsurface.cpp 6
|
||||
|
||||
For each level of intensity, we draw a rectangle with increasing
|
||||
brightness. On top of the rectangle a text label is drawn, specifying the
|
||||
intesity of this level. We use the rectangle rect as a template for
|
||||
drawing, and move it down or right at each iteration.
|
||||
|
||||
The intensity is calculated by dividing the greater of the width and height
|
||||
into \c NumberOfLevels slices.
|
||||
|
||||
\snippet examples/widgets/symbianvibration/vibrationsurface.cpp 7
|
||||
|
||||
In case the widget's geometry is too small to fit all the levels, the user
|
||||
interface will not work. For simplicity, we just return 0.
|
||||
|
||||
When we know the axis along which the rectangles lie, we can find the one
|
||||
in which the mouse cursor lie.
|
||||
|
||||
\snippet examples/widgets/symbianvibration/vibrationsurface.cpp 8
|
||||
|
||||
The final clamp of the intensity value at the end is necessary in case the
|
||||
mouse coordinate lies outside the widget's geometry.
|
||||
|
||||
|
||||
\section1 MainWindow Class Definition
|
||||
|
||||
Here's the definition of the \c MainWindow class:
|
||||
|
||||
\snippet examples/widgets/symbianvibration/mainwindow.h 0
|
||||
|
||||
\c MainWindow is a top level window that uses a \c XQVibra and a
|
||||
\c VibrationSurface. It also adds a menu option to the menu bar which can
|
||||
start a short vibration.
|
||||
|
||||
\section1 MainWindow Class Implementation
|
||||
|
||||
In the \c MainWindow constructor the \c XQVibra and the \c VibrationSurface
|
||||
are created. An action is added to the menu and is connected to the vibrate
|
||||
slot.
|
||||
|
||||
\snippet examples/widgets/symbianvibration/mainwindow.cpp 0
|
||||
|
||||
The \c vibrate() slot offers a way to invoke the vibration in case no
|
||||
mouse is present on the device.
|
||||
|
||||
\snippet examples/widgets/symbianvibration/mainwindow.cpp 1
|
||||
|
||||
\section1 Symbian Vibration Library
|
||||
|
||||
The \c XQVibra class requires a platform library to be included. It is
|
||||
included in the \c .pro file for the symbian target.
|
||||
|
||||
\quotefromfile examples/widgets/symbianvibration/symbianvibration.pro
|
||||
\skipto /^symbian \{/
|
||||
\printuntil /^\}/
|
||||
*/
|
BIN
doc/src/images/appicon_packagecontents.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
doc/src/images/appicon_screenshot.png
Normal file
After Width: | Height: | Size: 147 KiB |
BIN
doc/src/images/cube.png
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
doc/src/images/cube_faces.png
Normal file
After Width: | Height: | Size: 62 KiB |
BIN
doc/src/images/elidedlabel-example.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
doc/src/images/maemovibration-example.png
Normal file
After Width: | Height: | Size: 54 KiB |
BIN
doc/src/images/orientation-landscape-ui.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
doc/src/images/orientation-landscape.png
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
doc/src/images/orientation-portrait-ui.png
Normal file
After Width: | Height: | Size: 9.6 KiB |
BIN
doc/src/images/orientation-portrait.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
doc/src/images/symbianvibration-example.png
Normal file
After Width: | Height: | Size: 23 KiB |
52
doc/src/snippets/textdocument-listitemstyles/main.cpp
Normal file
@ -0,0 +1,52 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
|
||||
** All rights reserved.
|
||||
** Contact: Nokia Corporation (qt-info@nokia.com)
|
||||
**
|
||||
** This file is part of the documentation of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** You may use this file under the terms of the BSD license as follows:
|
||||
**
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
|
||||
** the names of its contributors may be used to endorse or promote
|
||||
** products derived from this software without specific prior written
|
||||
** permission.
|
||||
**
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtGui>
|
||||
|
||||
#include "mainwindow.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication app(argc, argv);
|
||||
MainWindow *window = new MainWindow;
|
||||
window->resize(640, 480);
|
||||
window->show();
|
||||
return app.exec();
|
||||
}
|
84
doc/src/snippets/textdocument-listitemstyles/mainwindow.cpp
Normal file
@ -0,0 +1,84 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
|
||||
** All rights reserved.
|
||||
** Contact: Nokia Corporation (qt-info@nokia.com)
|
||||
**
|
||||
** This file is part of the documentation of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** You may use this file under the terms of the BSD license as follows:
|
||||
**
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
|
||||
** the names of its contributors may be used to endorse or promote
|
||||
** products derived from this software without specific prior written
|
||||
** permission.
|
||||
**
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtGui>
|
||||
|
||||
#include "mainwindow.h"
|
||||
|
||||
MainWindow::MainWindow()
|
||||
{
|
||||
QMenu *fileMenu = new QMenu(tr("&File"));
|
||||
|
||||
fileMenu->addAction(tr("E&xit"), this, SLOT(close()),
|
||||
QKeySequence(tr("Ctrl+Q", "File|Exit")));
|
||||
|
||||
QMenu *insertMenu = new QMenu(tr("&Insert"));
|
||||
|
||||
insertMenu->addAction(tr("&List"), this, SLOT(insertList()),
|
||||
QKeySequence(tr("Ctrl+L", "Insert|List")));
|
||||
|
||||
menuBar()->addMenu(fileMenu);
|
||||
menuBar()->addMenu(insertMenu);
|
||||
|
||||
editor = new QTextEdit(this);
|
||||
document = new QTextDocument(this);
|
||||
editor->setDocument(document);
|
||||
|
||||
setCentralWidget(editor);
|
||||
setWindowTitle(tr("Text Document List Item Styles"));
|
||||
}
|
||||
|
||||
void MainWindow::insertList()
|
||||
{
|
||||
QTextCursor cursor = editor->textCursor();
|
||||
cursor.beginEditBlock();
|
||||
|
||||
//! [add a styled, ordered list]
|
||||
QTextListFormat listFormat;
|
||||
|
||||
listFormat.setStyle(QTextListFormat::ListDecimal);
|
||||
listFormat.setNumberPrefix("(");
|
||||
listFormat.setNumberSuffix(")");
|
||||
|
||||
cursor.insertList(listFormat);
|
||||
//! [add a styled, ordered list]
|
||||
|
||||
cursor.endEditBlock();
|
||||
}
|
65
doc/src/snippets/textdocument-listitemstyles/mainwindow.h
Normal file
@ -0,0 +1,65 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
|
||||
** All rights reserved.
|
||||
** Contact: Nokia Corporation (qt-info@nokia.com)
|
||||
**
|
||||
** This file is part of the documentation of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** You may use this file under the terms of the BSD license as follows:
|
||||
**
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
|
||||
** the names of its contributors may be used to endorse or promote
|
||||
** products derived from this software without specific prior written
|
||||
** permission.
|
||||
**
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef WINDOW_H
|
||||
#define WINDOW_H
|
||||
|
||||
#include <QMainWindow>
|
||||
|
||||
class QTextDocument;
|
||||
class QTextEdit;
|
||||
|
||||
class MainWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
MainWindow();
|
||||
|
||||
public slots:
|
||||
void insertList();
|
||||
|
||||
private:
|
||||
QString currentFile;
|
||||
QTextEdit *editor;
|
||||
QTextDocument *document;
|
||||
};
|
||||
|
||||
#endif
|
@ -0,0 +1,3 @@
|
||||
HEADERS = mainwindow.h
|
||||
SOURCES = main.cpp \
|
||||
mainwindow.cpp
|
11
examples/animation/animatedtiles/animatedtiles.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Animated Tiles
|
||||
Exec=/opt/usr/bin/animatedtiles
|
||||
Icon=animatedtiles
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/animation/appchooser/appchooser.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Application Chooser
|
||||
Exec=/opt/usr/bin/appchooser
|
||||
Icon=appchooser
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/animation/easing/easing.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Easing Curves
|
||||
Exec=/opt/usr/bin/easing
|
||||
Icon=easing
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/animation/moveblocks/moveblocks.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Move Blocks
|
||||
Exec=/opt/usr/bin/moveblocks
|
||||
Icon=moveblocks
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/animation/states/states.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=States
|
||||
Exec=/opt/usr/bin/states
|
||||
Icon=states
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
33
examples/animation/stickman/rectbutton.cpp
Normal file
@ -0,0 +1,33 @@
|
||||
#include "rectbutton.h"
|
||||
#include <QPainter>
|
||||
|
||||
RectButton::RectButton(QString buttonText) : m_ButtonText(buttonText)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
RectButton::~RectButton()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void RectButton::mousePressEvent (QGraphicsSceneMouseEvent *event)
|
||||
{
|
||||
emit clicked();
|
||||
}
|
||||
|
||||
|
||||
QRectF RectButton::boundingRect() const
|
||||
{
|
||||
return QRectF(0.0, 0.0, 90.0, 40.0);
|
||||
}
|
||||
|
||||
|
||||
void RectButton::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
|
||||
{
|
||||
painter->setBrush(Qt::gray);
|
||||
painter->drawRoundedRect(boundingRect(), 5, 5);
|
||||
|
||||
painter->setPen(Qt::white);
|
||||
painter->drawText(20, 25, m_ButtonText);
|
||||
}
|
25
examples/animation/stickman/rectbutton.h
Normal file
@ -0,0 +1,25 @@
|
||||
#ifndef RECTBUTTON_H
|
||||
#define RECTBUTTON_H
|
||||
|
||||
#include <QGraphicsObject>
|
||||
|
||||
class RectButton : public QGraphicsObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
RectButton(QString buttonText);
|
||||
~RectButton();
|
||||
|
||||
virtual QRectF boundingRect() const;
|
||||
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
|
||||
|
||||
protected:
|
||||
QString m_ButtonText;
|
||||
|
||||
virtual void mousePressEvent (QGraphicsSceneMouseEvent *event);
|
||||
|
||||
signals:
|
||||
void clicked();
|
||||
};
|
||||
|
||||
#endif // RECTBUTTON_H
|
11
examples/animation/stickman/stickman.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Stickman
|
||||
Exec=/opt/usr/bin/stickman
|
||||
Icon=stickman
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/dbus/complexpingpong/complexping.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Complex Ping
|
||||
Exec=/opt/usr/bin/complexping
|
||||
Icon=complexping
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/dbus/complexpingpong/complexpong.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Complex Pong
|
||||
Exec=/opt/usr/bin/complexpong
|
||||
Icon=complexpong
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/dbus/dbus-chat/dbus-chat.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=D-Bus Chat
|
||||
Exec=/opt/usr/bin/dbus-chat
|
||||
Icon=dbus-chat
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/dbus/listnames/listnames.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=D-Bus List Names
|
||||
Exec=/opt/usr/bin/listnames
|
||||
Icon=listnames
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/dbus/pingpong/ping.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=D-Bus Ping
|
||||
Exec=/opt/usr/bin/ping
|
||||
Icon=ping
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/dbus/pingpong/pong.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=D-Bus Pong
|
||||
Exec=/opt/usr/bin/pong
|
||||
Icon=pong
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/dbus/remotecontrolledcar/car/car.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=D-Bus Remote Controlled Car
|
||||
Exec=/opt/usr/bin/car
|
||||
Icon=car
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=D-Bus Remote Controller
|
||||
Exec=/opt/usr/bin/controller
|
||||
Icon=controller
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/desktop/screenshot/screenshot.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Screenshot
|
||||
Exec=/opt/usr/bin/screenshot
|
||||
Icon=screenshot
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/desktop/systray/systray.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=System Tray Icon
|
||||
Exec=/opt/usr/bin/systray
|
||||
Icon=systray
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/dialogs/classwizard/classwizard.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Class Wizard
|
||||
Exec=/opt/usr/bin/classwizard
|
||||
Icon=classwizard
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/dialogs/configdialog/configdialog.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Config Dialog
|
||||
Exec=/opt/usr/bin/configdialog
|
||||
Icon=configdialog
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/dialogs/extension/extension.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Extension
|
||||
Exec=/opt/usr/bin/extension
|
||||
Icon=extension
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/dialogs/findfiles/findfiles.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Find Files
|
||||
Exec=/opt/usr/bin/findfiles
|
||||
Icon=findfiles
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/dialogs/licensewizard/licensewizard.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=License Wizard
|
||||
Exec=/opt/usr/bin/licensewizard
|
||||
Icon=licensewizard
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/dialogs/sipdialog/sipdialog.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=SIP Dialog
|
||||
Exec=/opt/usr/bin/sipdialog
|
||||
Icon=sipdialog
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/dialogs/standarddialogs/standarddialogs.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Standard Dialogs
|
||||
Exec=/opt/usr/bin/standarddialogs
|
||||
Icon=standarddialogs
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/dialogs/tabdialog/tabdialog.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Tab Dialog
|
||||
Exec=/opt/usr/bin/tabdialog
|
||||
Icon=tabdialog
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/dialogs/trivialwizard/trivialwizard.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Trivial Wizard
|
||||
Exec=/opt/usr/bin/trivialwizard
|
||||
Icon=trivialwizard
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/draganddrop/delayedencoding/delayedencoding.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Delayed Encoding
|
||||
Exec=/opt/usr/bin/delayedencoding
|
||||
Icon=delayedencoding
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/draganddrop/draggableicons/draggableicons.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Draggable Icons
|
||||
Exec=/opt/usr/bin/draggableicons
|
||||
Icon=draggableicons
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/draganddrop/draggabletext/draggabletext.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Draggable Text
|
||||
Exec=/opt/usr/bin/draggabletext
|
||||
Icon=draggabletext
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/draganddrop/dropsite/dropsite.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Drop Site
|
||||
Exec=/opt/usr/bin/dropsite
|
||||
Icon=dropsite
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/draganddrop/fridgemagnets/fridgemagnets.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Fridge Magnets
|
||||
Exec=/opt/usr/bin/fridgemagnets
|
||||
Icon=fridgemagnets
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/draganddrop/puzzle/puzzle.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Drag and Drop Puzzle
|
||||
Exec=/opt/usr/bin/puzzle
|
||||
Icon=puzzle
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/effects/blurpicker/blurpicker.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Blur Picker Effect
|
||||
Exec=/opt/usr/bin/blurpicker
|
||||
Icon=blurpicker
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/effects/fademessage/fademessage.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Fade Message Effect
|
||||
Exec=/opt/usr/bin/fademessage
|
||||
Icon=fademessage
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/effects/lighting/lighting.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Lighting Effect
|
||||
Exec=/opt/usr/bin/lighting
|
||||
Icon=lighting
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/gestures/imagegestures/imagegestures.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Image Gestures
|
||||
Exec=/opt/usr/bin/imagegestures
|
||||
Icon=imagegestures
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/graphicsview/anchorlayout/anchorlayout.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Anchor Layout
|
||||
Exec=/opt/usr/bin/anchorlayout
|
||||
Icon=anchorlayout
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Basic Graphics Layouts
|
||||
Exec=/opt/usr/bin/basicgraphicslayouts
|
||||
Icon=basicgraphicslayouts
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/graphicsview/collidingmice/collidingmice.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Colliding Mice
|
||||
Exec=/opt/usr/bin/collidingmice
|
||||
Icon=collidingmice
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/graphicsview/dragdroprobot/dragdroprobot.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Drag and Drop Robot
|
||||
Exec=/opt/usr/bin/dragdroprobot
|
||||
Icon=dragdroprobot
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/graphicsview/elasticnodes/elasticnodes.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Elastic Nodes
|
||||
Exec=/opt/usr/bin/elasticnodes
|
||||
Icon=elasticnodes
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/graphicsview/flowlayout/flowlayout.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Flow Layout
|
||||
Exec=/opt/usr/bin/flowlayout
|
||||
Icon=flowlayout
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/graphicsview/padnavigator/padnavigator.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Pad Navigator
|
||||
Exec=/opt/usr/bin/padnavigator
|
||||
Icon=padnavigator
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Ported Asteroids
|
||||
Exec=/opt/usr/bin/portedasteroids
|
||||
Icon=portedasteroids
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/graphicsview/portedcanvas/portedcanvas.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Ported Canvas
|
||||
Exec=/opt/usr/bin/portedcanvas
|
||||
Icon=portedcanvas
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Simple Anchor Layout
|
||||
Exec=/opt/usr/bin/simpleanchorlayout
|
||||
Icon=simpleanchorlayout
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Weather Anchor Layout
|
||||
Exec=/opt/usr/bin/weatheranchorlayout
|
||||
Icon=weatheranchorlayout
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/ipc/localfortuneclient/localfortuneclient.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Local Fortune Client
|
||||
Exec=/opt/usr/bin/localfortuneclient
|
||||
Icon=localfortuneclient
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/ipc/localfortuneserver/localfortuneserver.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Local Fortune Server
|
||||
Exec=/opt/usr/bin/localfortuneserver
|
||||
Icon=localfortuneserver
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/ipc/sharedmemory/sharedmemory.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Shared Memory
|
||||
Exec=/opt/usr/bin/sharedmemory
|
||||
Icon=sharedmemory
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/itemviews/addressbook/addressbook.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Address Book
|
||||
Exec=/opt/usr/bin/addressbook
|
||||
Icon=addressbook
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Basic Sort Filter Model
|
||||
Exec=/opt/usr/bin/basicsortfiltermodel
|
||||
Icon=basicsortfiltermodel
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/itemviews/chart/chart.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Chart
|
||||
Exec=/opt/usr/bin/chart
|
||||
Icon=chart
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Color Editor Factory
|
||||
Exec=/opt/usr/bin/coloreditorfactory
|
||||
Icon=coloreditorfactory
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Combo Widget Mapper
|
||||
Exec=/opt/usr/bin/combowidgetmapper
|
||||
Icon=combowidgetmapper
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Custom Sort Filter Model
|
||||
Exec=/opt/usr/bin/customsortfiltermodel
|
||||
Icon=customsortfiltermodel
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/itemviews/dirview/dirview.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Dir View
|
||||
Exec=/opt/usr/bin/dirview
|
||||
Icon=dirview
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Editable Tree Model
|
||||
Exec=/opt/usr/bin/editabletreemodel
|
||||
Icon=editabletreemodel
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/itemviews/fetchmore/fetchmore.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Fetch More
|
||||
Exec=/opt/usr/bin/fetchmore
|
||||
Icon=fetchmore
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/itemviews/frozencolumn/frozencolumn.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Frozen Column
|
||||
Exec=/opt/usr/bin/frozencolumn
|
||||
Icon=frozencolumn
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/itemviews/pixelator/pixelator.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Pixelator
|
||||
Exec=/opt/usr/bin/pixelator
|
||||
Icon=pixelator
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/itemviews/puzzle/puzzle.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Item Views Puzzle
|
||||
Exec=/opt/usr/bin/puzzle
|
||||
Icon=puzzle
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/itemviews/simpledommodel/simpledommodel.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Simple DOM Model
|
||||
Exec=/opt/usr/bin/simpledommodel
|
||||
Icon=simpledommodel
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/itemviews/simpletreemodel/simpletreemodel.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Simple Tree Model
|
||||
Exec=/opt/usr/bin/simpletreemodel
|
||||
Icon=simpletreemodel
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Simple Widget Mapper
|
||||
Exec=/opt/usr/bin/simplewidgetmapper
|
||||
Icon=simplewidgetmapper
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/itemviews/spinboxdelegate/spinboxdelegate.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Spin Box Delegate
|
||||
Exec=/opt/usr/bin/spinboxdelegate
|
||||
Icon=spinboxdelegate
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/itemviews/stardelegate/stardelegate.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Star Delegate
|
||||
Exec=/opt/usr/bin/stardelegate
|
||||
Icon=stardelegate
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/layouts/basiclayouts/basiclayouts.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Basic Layouts
|
||||
Exec=/opt/usr/bin/basiclayouts
|
||||
Icon=basiclayouts
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/layouts/borderlayout/borderlayout.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Border Layout
|
||||
Exec=/opt/usr/bin/borderlayout
|
||||
Icon=borderlayout
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/layouts/dynamiclayouts/dynamiclayouts.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Dynamic Layouts
|
||||
Exec=/opt/usr/bin/dynamiclayouts
|
||||
Icon=dynamiclayouts
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/layouts/flowlayout/flowlayout.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Flow Layout
|
||||
Exec=/opt/usr/bin/flowlayout
|
||||
Icon=flowlayout
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/mainwindows/application/application.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Application
|
||||
Exec=/opt/usr/bin/application
|
||||
Icon=application
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/mainwindows/dockwidgets/dockwidgets.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Dock Widgets
|
||||
Exec=/opt/usr/bin/dockwidgets
|
||||
Icon=dockwidgets
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/mainwindows/mdi/mdi.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=MDI
|
||||
Exec=/opt/usr/bin/mdi
|
||||
Icon=mdi
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/mainwindows/menus/menus.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Menus
|
||||
Exec=/opt/usr/bin/menus
|
||||
Icon=menus
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/mainwindows/recentfiles/recentfiles.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Recent Files
|
||||
Exec=/opt/usr/bin/recentfiles
|
||||
Icon=recentfiles
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/mainwindows/sdi/sdi.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=SDI
|
||||
Exec=/opt/usr/bin/sdi
|
||||
Icon=sdi
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|
11
examples/network/bearercloud/bearercloud.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Bearer Cloud
|
||||
Exec=/opt/usr/bin/bearercloud
|
||||
Icon=bearercloud
|
||||
X-Window-Icon=
|
||||
X-HildonDesk-ShowInToolbar=true
|
||||
X-Osso-Type=application/x-executable
|