summaryrefslogtreecommitdiffstats
path: root/src/imports
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports')
-rw-r--r--src/imports/gestures/gestures.pro3
-rw-r--r--src/imports/gestures/plugin.cpp3
-rw-r--r--src/imports/gestures/qdeclarativegesturearea_p.h2
-rw-r--r--src/imports/imports.pro2
-rw-r--r--src/imports/multimedia/multimedia.cpp2
-rw-r--r--src/imports/multimedia/multimedia.pro5
-rw-r--r--src/imports/multimedia/qdeclarativeaudio.cpp12
-rw-r--r--src/imports/multimedia/qdeclarativemediabase.cpp8
-rw-r--r--src/imports/multimedia/qdeclarativemediabase_p.h2
-rw-r--r--src/imports/multimedia/qdeclarativevideo.cpp168
-rw-r--r--src/imports/multimedia/qdeclarativevideo_p.h2
-rw-r--r--src/imports/multimedia/qmetadatacontrolmetaobject.cpp152
-rw-r--r--src/imports/multimedia/qmetadatacontrolmetaobject_p.h2
-rw-r--r--src/imports/particles/particles.pro3
-rw-r--r--src/imports/particles/qdeclarativeparticles.cpp14
-rw-r--r--src/imports/webkit/webkit.pro3
-rw-r--r--src/imports/widgets/graphicslayouts.cpp112
-rw-r--r--src/imports/widgets/graphicslayouts_p.h78
-rw-r--r--src/imports/widgets/widgets.cpp6
-rw-r--r--src/imports/widgets/widgets.pro3
20 files changed, 380 insertions, 202 deletions
diff --git a/src/imports/gestures/gestures.pro b/src/imports/gestures/gestures.pro
index b9c5b4e..f55c00e 100644
--- a/src/imports/gestures/gestures.pro
+++ b/src/imports/gestures/gestures.pro
@@ -17,8 +17,7 @@ symbian:{
load(data_caging_paths)
include($$QT_SOURCE_TREE/demos/symbianpkgrules.pri)
- importFiles.sources = gesturesqmlplugin.dll \
- qmldir
+ importFiles.sources = gesturesqmlplugin.dll qmldir
importFiles.path = $$QT_IMPORTS_BASE_DIR/$$TARGETPATH
DEPLOYMENT = importFiles
diff --git a/src/imports/gestures/plugin.cpp b/src/imports/gestures/plugin.cpp
index 9f5d923..b8a9751 100644
--- a/src/imports/gestures/plugin.cpp
+++ b/src/imports/gestures/plugin.cpp
@@ -53,8 +53,7 @@ public:
virtual void registerTypes(const char *uri)
{
Q_ASSERT(QLatin1String(uri) == QLatin1String("Qt.labs.gestures"));
- qmlRegisterCustomType<QDeclarativeGestureArea>(uri,1,0, "GestureArea", "QDeclarativeGestureArea",
- new QDeclarativeGestureAreaParser);
+ qmlRegisterCustomType<QDeclarativeGestureArea>(uri,1,0, "GestureArea", new QDeclarativeGestureAreaParser);
}
};
diff --git a/src/imports/gestures/qdeclarativegesturearea_p.h b/src/imports/gestures/qdeclarativegesturearea_p.h
index 8e2c066..0195511 100644
--- a/src/imports/gestures/qdeclarativegesturearea_p.h
+++ b/src/imports/gestures/qdeclarativegesturearea_p.h
@@ -59,7 +59,7 @@ QT_MODULE(Declarative)
class QDeclarativeBoundSignal;
class QDeclarativeContext;
class QDeclarativeGestureAreaPrivate;
-class Q_DECLARATIVE_EXPORT QDeclarativeGestureArea : public QDeclarativeItem
+class QDeclarativeGestureArea : public QDeclarativeItem
{
Q_OBJECT
diff --git a/src/imports/imports.pro b/src/imports/imports.pro
index 3886f5c..ecde0cc 100644
--- a/src/imports/imports.pro
+++ b/src/imports/imports.pro
@@ -3,5 +3,5 @@ TEMPLATE = subdirs
SUBDIRS += widgets particles
contains(QT_CONFIG, webkit): SUBDIRS += webkit
-contains(QT_CONFIG, multimedia): SUBDIRS += multimedia
+contains(QT_CONFIG, mediaservices): SUBDIRS += multimedia
diff --git a/src/imports/multimedia/multimedia.cpp b/src/imports/multimedia/multimedia.cpp
index a2e74f4..e2a2821 100644
--- a/src/imports/multimedia/multimedia.cpp
+++ b/src/imports/multimedia/multimedia.cpp
@@ -41,7 +41,7 @@
#include <QtDeclarative/qdeclarativeextensionplugin.h>
#include <QtDeclarative/qdeclarative.h>
-#include <QtMultimedia/private/qsoundeffect_p.h>
+#include <QtMediaServices/private/qsoundeffect_p.h>
#include "qdeclarativevideo_p.h"
#include "qdeclarativeaudio_p.h"
diff --git a/src/imports/multimedia/multimedia.pro b/src/imports/multimedia/multimedia.pro
index 92f7ec4..212f7b9 100644
--- a/src/imports/multimedia/multimedia.pro
+++ b/src/imports/multimedia/multimedia.pro
@@ -2,7 +2,7 @@ TARGET = multimedia
TARGETPATH = Qt/multimedia
include(../qimportbase.pri)
-QT += multimedia declarative
+QT += mediaservices declarative
HEADERS += \
qdeclarativeaudio_p.h \
@@ -27,8 +27,7 @@ symbian:{
load(data_caging_paths)
include($$QT_SOURCE_TREE/demos/symbianpkgrules.pri)
- importFiles.sources = $$[QT_INSTALL_IMPORTS]/$$TARGETPATH/multimedia.dll \
- qmldir
+ importFiles.sources = multimedia.dll qmldir
importFiles.path = $$QT_IMPORTS_BASE_DIR/$$TARGETPATH
DEPLOYMENT = importFiles
diff --git a/src/imports/multimedia/qdeclarativeaudio.cpp b/src/imports/multimedia/qdeclarativeaudio.cpp
index 82d5d89..896f9b7 100644
--- a/src/imports/multimedia/qdeclarativeaudio.cpp
+++ b/src/imports/multimedia/qdeclarativeaudio.cpp
@@ -41,7 +41,7 @@
#include "qdeclarativeaudio_p.h"
-#include <QtMultimedia/qmediaplayercontrol.h>
+#include <QtMediaServices/qmediaplayercontrol.h>
QT_BEGIN_NAMESPACE
@@ -195,7 +195,7 @@ void QDeclarativeAudio::stop()
*/
/*!
- \qmlproperty enum Audio::status
+ \qmlproperty enumeration Audio::status
This property holds the status of media loading. It can be one of:
@@ -263,7 +263,7 @@ QDeclarativeAudio::Status QDeclarativeAudio::status() const
*/
/*!
- \qmlproperty qreal Audio::volume
+ \qmlproperty real Audio::volume
This property holds the volume of the audio output, from 0.0 (silent) to 1.0 (maximum volume).
*/
@@ -275,7 +275,7 @@ QDeclarativeAudio::Status QDeclarativeAudio::status() const
*/
/*!
- \qmlproperty qreal Audio::bufferProgress
+ \qmlproperty real Audio::bufferProgress
This property holds how much of the data buffer is currently filled, from 0.0 (empty) to 1.0
(full).
@@ -290,13 +290,13 @@ QDeclarativeAudio::Status QDeclarativeAudio::status() const
*/
/*!
- \qmlproperty qreal Audio::playbackRate
+ \qmlproperty real Audio::playbackRate
This property holds the rate at which audio is played at as a multiple of the normal rate.
*/
/*!
- \qmlproperty enum Audio::error
+ \qmlproperty enumeration Audio::error
This property holds the error state of the audio. It can be one of:
diff --git a/src/imports/multimedia/qdeclarativemediabase.cpp b/src/imports/multimedia/qdeclarativemediabase.cpp
index bbd5901..ee0737b 100644
--- a/src/imports/multimedia/qdeclarativemediabase.cpp
+++ b/src/imports/multimedia/qdeclarativemediabase.cpp
@@ -44,10 +44,10 @@
#include <QtCore/qcoreevent.h>
#include <QtCore/qurl.h>
-#include <QtMultimedia/qmediaplayercontrol.h>
-#include <QtMultimedia/qmediaservice.h>
-#include <QtMultimedia/qmediaserviceprovider.h>
-#include <QtMultimedia/qmetadatacontrol.h>
+#include <QtMediaServices/qmediaplayercontrol.h>
+#include <QtMediaServices/qmediaservice.h>
+#include <QtMediaServices/qmediaserviceprovider.h>
+#include <QtMediaServices/qmetadatacontrol.h>
#include "qmetadatacontrolmetaobject_p.h"
diff --git a/src/imports/multimedia/qdeclarativemediabase_p.h b/src/imports/multimedia/qdeclarativemediabase_p.h
index 7d262e0..34875f9 100644
--- a/src/imports/multimedia/qdeclarativemediabase_p.h
+++ b/src/imports/multimedia/qdeclarativemediabase_p.h
@@ -54,7 +54,7 @@
//
#include <QtCore/qbasictimer.h>
-#include <QtMultimedia/qmediaplayer.h>
+#include <QtMediaServices/qmediaplayer.h>
QT_BEGIN_HEADER
diff --git a/src/imports/multimedia/qdeclarativevideo.cpp b/src/imports/multimedia/qdeclarativevideo.cpp
index c6ae272..9b02795 100644
--- a/src/imports/multimedia/qdeclarativevideo.cpp
+++ b/src/imports/multimedia/qdeclarativevideo.cpp
@@ -41,11 +41,11 @@
#include "qdeclarativevideo_p.h"
-#include <QtMultimedia/qmediaplayercontrol.h>
-#include <QtMultimedia/qmediaservice.h>
-#include <QtMultimedia/private/qpaintervideosurface_p.h>
-#include <QtMultimedia/qvideooutputcontrol.h>
-#include <QtMultimedia/qvideorenderercontrol.h>
+#include <QtMediaServices/qmediaplayercontrol.h>
+#include <QtMediaServices/qmediaservice.h>
+#include <QtMediaServices/private/qpaintervideosurface_p.h>
+#include <QtMediaServices/qvideooutputcontrol.h>
+#include <QtMediaServices/qvideorenderercontrol.h>
QT_BEGIN_NAMESPACE
@@ -82,11 +82,11 @@ void QDeclarativeVideo::_q_error(int errorCode, const QString &errorString)
Video { source: "video/movie.mpg" }
\endqml
- The video item supports untransformed, stretched, and uniformly scaled video presentation.
+ The Video item supports untransformed, stretched, and uniformly scaled video presentation.
For a description of stretched uniformly scaled presentation, see the \l fillMode property
description.
- The video item is only visible when the \l hasVideo property is true and the video is playing.
+ The Video item is only visible when the \l hasVideo property is true and the video is playing.
\sa Audio
*/
@@ -169,7 +169,7 @@ QDeclarativeVideo::~QDeclarativeVideo()
*/
/*!
- \qmlproperty enum Video::status
+ \qmlproperty enumeration Video::status
This property holds the status of media loading. It can be one of:
@@ -236,7 +236,7 @@ QDeclarativeVideo::Status QDeclarativeVideo::status() const
*/
/*!
- \qmlproperty qreal Video::volume
+ \qmlproperty real Video::volume
This property holds the volume of the audio output, from 0.0 (silent) to 1.0 (maximum volume).
*/
@@ -270,7 +270,7 @@ bool QDeclarativeVideo::hasVideo() const
}
/*!
- \qmlproperty qreal Video::bufferProgress
+ \qmlproperty real Video::bufferProgress
This property holds how much of the data buffer is currently filled, from 0.0 (empty) to 1.0
(full).
@@ -283,13 +283,13 @@ bool QDeclarativeVideo::hasVideo() const
*/
/*!
- \qmlproperty qreal Video::playbackRate
+ \qmlproperty real Video::playbackRate
This property holds the rate at which video is played at as a multiple of the normal rate.
*/
/*!
- \qmlproperty enum Video::error
+ \qmlproperty enumeration Video::error
This property holds the error state of the video. It can be one of:
@@ -325,7 +325,7 @@ QDeclarativeVideo::Error QDeclarativeVideo::error() const
*/
/*!
- \qmlproperty enum Video::fillMode
+ \qmlproperty enumeration Video::fillMode
Set this property to define how the video is scaled to fit the target area.
@@ -435,7 +435,7 @@ QT_END_NAMESPACE
This property holds the tile of the media.
- \sa {QtMultimedia::Title}
+ \sa {QtMediaServices::Title}
*/
/*!
@@ -443,7 +443,7 @@ QT_END_NAMESPACE
This property holds the sub-title of the media.
- \sa {QtMultimedia::SubTitle}
+ \sa {QtMediaServices::SubTitle}
*/
/*!
@@ -451,7 +451,7 @@ QT_END_NAMESPACE
This property holds the author of the media.
- \sa {QtMultimedia::Author}
+ \sa {QtMediaServices::Author}
*/
/*!
@@ -459,7 +459,7 @@ QT_END_NAMESPACE
This property holds a user comment about the media.
- \sa {QtMultimedia::Comment}
+ \sa {QtMediaServices::Comment}
*/
/*!
@@ -467,7 +467,7 @@ QT_END_NAMESPACE
This property holds a description of the media.
- \sa {QtMultimedia::Description}
+ \sa {QtMediaServices::Description}
*/
/*!
@@ -475,7 +475,7 @@ QT_END_NAMESPACE
This property holds the category of the media
- \sa {QtMultimedia::Category}
+ \sa {QtMediaServices::Category}
*/
/*!
@@ -483,7 +483,7 @@ QT_END_NAMESPACE
This property holds the genre of the media.
- \sa {QtMultimedia::Genre}
+ \sa {QtMediaServices::Genre}
*/
/*!
@@ -491,7 +491,7 @@ QT_END_NAMESPACE
This property holds the year of release of the media.
- \sa {QtMultimedia::Year}
+ \sa {QtMediaServices::Year}
*/
/*!
@@ -499,7 +499,7 @@ QT_END_NAMESPACE
This property holds the date of the media.
- \sa {QtMultimedia::Date}
+ \sa {QtMediaServices::Date}
*/
/*!
@@ -507,7 +507,7 @@ QT_END_NAMESPACE
This property holds a user rating of the media in the range of 0 to 100.
- \sa {QtMultimedia::UserRating}
+ \sa {QtMediaServices::UserRating}
*/
/*!
@@ -515,7 +515,7 @@ QT_END_NAMESPACE
This property holds a list of keywords describing the media.
- \sa {QtMultimedia::Keywords}
+ \sa {QtMediaServices::Keywords}
*/
/*!
@@ -523,7 +523,7 @@ QT_END_NAMESPACE
This property holds the language of the media, as an ISO 639-2 code.
- \sa {QtMultimedia::Language}
+ \sa {QtMediaServices::Language}
*/
/*!
@@ -531,7 +531,7 @@ QT_END_NAMESPACE
This property holds the publisher of the media.
- \sa {QtMultimedia::Publisher}
+ \sa {QtMediaServices::Publisher}
*/
/*!
@@ -539,7 +539,7 @@ QT_END_NAMESPACE
This property holds the media's copyright notice.
- \sa {QtMultimedia::Copyright}
+ \sa {QtMediaServices::Copyright}
*/
/*!
@@ -547,7 +547,7 @@ QT_END_NAMESPACE
This property holds the parental rating of the media.
- \sa {QtMultimedia::ParentalRating}
+ \sa {QtMediaServices::ParentalRating}
*/
/*!
@@ -556,7 +556,7 @@ QT_END_NAMESPACE
This property holds the name of the rating organisation responsible for the
parental rating of the media.
- \sa {QtMultimedia::RatingOrganisation}
+ \sa {QtMediaServices::RatingOrganisation}
*/
/*!
@@ -564,7 +564,7 @@ QT_END_NAMESPACE
This property property holds the size of the media in bytes.
- \sa {QtMultimedia::Size}
+ \sa {QtMediaServices::Size}
*/
/*!
@@ -572,7 +572,7 @@ QT_END_NAMESPACE
This property holds the type of the media.
- \sa {QtMultimedia::MediaType}
+ \sa {QtMediaServices::MediaType}
*/
/*!
@@ -581,7 +581,7 @@ QT_END_NAMESPACE
This property holds the bit rate of the media's audio stream ni bits per
second.
- \sa {QtMultimedia::AudioBitRate}
+ \sa {QtMediaServices::AudioBitRate}
*/
/*!
@@ -589,7 +589,7 @@ QT_END_NAMESPACE
This property holds the encoding of the media audio stream.
- \sa {QtMultimedia::AudioCodec}
+ \sa {QtMediaServices::AudioCodec}
*/
/*!
@@ -597,7 +597,7 @@ QT_END_NAMESPACE
This property holds the average volume level of the media.
- \sa {QtMultimedia::AverageLevel}
+ \sa {QtMediaServices::AverageLevel}
*/
/*!
@@ -605,7 +605,7 @@ QT_END_NAMESPACE
This property holds the number of channels in the media's audio stream.
- \sa {QtMultimedia::ChannelCount}
+ \sa {QtMediaServices::ChannelCount}
*/
/*!
@@ -613,7 +613,7 @@ QT_END_NAMESPACE
This property holds the peak volume of media's audio stream.
- \sa {QtMultimedia::PeakValue}
+ \sa {QtMediaServices::PeakValue}
*/
/*!
@@ -621,7 +621,7 @@ QT_END_NAMESPACE
This property holds the sample rate of the media's audio stream in hertz.
- \sa {QtMultimedia::SampleRate}
+ \sa {QtMediaServices::SampleRate}
*/
/*!
@@ -629,7 +629,7 @@ QT_END_NAMESPACE
This property holds the title of the album the media belongs to.
- \sa {QtMultimedia::AlbumTitle}
+ \sa {QtMediaServices::AlbumTitle}
*/
/*!
@@ -638,7 +638,7 @@ QT_END_NAMESPACE
This property holds the name of the principal artist of the album the media
belongs to.
- \sa {QtMultimedia::AlbumArtist}
+ \sa {QtMediaServices::AlbumArtist}
*/
/*!
@@ -646,7 +646,7 @@ QT_END_NAMESPACE
This property holds the names of artists contributing to the media.
- \sa {QtMultimedia::ContributingArtist}
+ \sa {QtMediaServices::ContributingArtist}
*/
/*!
@@ -654,7 +654,7 @@ QT_END_NAMESPACE
This property holds the composer of the media.
- \sa {QtMultimedia::Composer}
+ \sa {QtMediaServices::Composer}
*/
/*!
@@ -662,7 +662,7 @@ QT_END_NAMESPACE
This property holds the conductor of the media.
- \sa {QtMultimedia::Conductor}
+ \sa {QtMediaServices::Conductor}
*/
/*!
@@ -670,7 +670,7 @@ QT_END_NAMESPACE
This property holds the lyrics to the media.
- \sa {QtMultimedia::Lyrics}
+ \sa {QtMediaServices::Lyrics}
*/
/*!
@@ -678,7 +678,7 @@ QT_END_NAMESPACE
This property holds the mood of the media.
- \sa {QtMultimedia::Mood}
+ \sa {QtMediaServices::Mood}
*/
/*!
@@ -686,7 +686,7 @@ QT_END_NAMESPACE
This property holds the track number of the media.
- \sa {QtMultimedia::TrackNumber}
+ \sa {QtMediaServices::TrackNumber}
*/
/*!
@@ -694,7 +694,7 @@ QT_END_NAMESPACE
This property holds the number of track on the album containing the media.
- \sa {QtMultimedia::TrackNumber}
+ \sa {QtMediaServices::TrackNumber}
*/
/*!
@@ -702,7 +702,7 @@ QT_END_NAMESPACE
This property holds the URL of a small cover art image.
- \sa {QtMultimedia::CoverArtUrlSmall}
+ \sa {QtMediaServices::CoverArtUrlSmall}
*/
/*!
@@ -710,7 +710,7 @@ QT_END_NAMESPACE
This property holds the URL of a large cover art image.
- \sa {QtMultimedia::CoverArtUrlLarge}
+ \sa {QtMediaServices::CoverArtUrlLarge}
*/
/*!
@@ -718,7 +718,7 @@ QT_END_NAMESPACE
This property holds the dimension of an image or video.
- \sa {QtMultimedia::Resolution}
+ \sa {QtMediaServices::Resolution}
*/
/*!
@@ -726,7 +726,7 @@ QT_END_NAMESPACE
This property holds the pixel aspect ratio of an image or video.
- \sa {QtMultimedia::PixelAspectRatio}
+ \sa {QtMediaServices::PixelAspectRatio}
*/
/*!
@@ -734,7 +734,7 @@ QT_END_NAMESPACE
This property holds the frame rate of the media's video stream.
- \sa {QtMultimedia::VideoFrameRate}
+ \sa {QtMediaServices::VideoFrameRate}
*/
/*!
@@ -743,7 +743,7 @@ QT_END_NAMESPACE
This property holds the bit rate of the media's video stream in bits per
second.
- \sa {QtMultimedia::VideoBitRate}
+ \sa {QtMediaServices::VideoBitRate}
*/
/*!
@@ -751,7 +751,7 @@ QT_END_NAMESPACE
This property holds the encoding of the media's video stream.
- \sa {QtMultimedia::VideoCodec}
+ \sa {QtMediaServices::VideoCodec}
*/
/*!
@@ -759,7 +759,7 @@ QT_END_NAMESPACE
This property holds the URL of a poster image.
- \sa {QtMultimedia::PosterUrl}
+ \sa {QtMediaServices::PosterUrl}
*/
/*!
@@ -767,7 +767,7 @@ QT_END_NAMESPACE
This property holds the chapter number of the media.
- \sa {QtMultimedia::ChapterNumber}
+ \sa {QtMediaServices::ChapterNumber}
*/
/*!
@@ -775,7 +775,7 @@ QT_END_NAMESPACE
This property holds the director of the media.
- \sa {QtMultimedia::Director}
+ \sa {QtMediaServices::Director}
*/
/*!
@@ -783,7 +783,7 @@ QT_END_NAMESPACE
This property holds the lead performer in the media.
- \sa {QtMultimedia::LeadPerformer}
+ \sa {QtMediaServices::LeadPerformer}
*/
/*!
@@ -791,7 +791,7 @@ QT_END_NAMESPACE
This property holds the writer of the media.
- \sa {QtMultimedia::Writer}
+ \sa {QtMediaServices::Writer}
*/
// The remaining properties are related to photos, and are technically
@@ -801,157 +801,157 @@ QT_END_NAMESPACE
/*!
\qmlproperty variant Video::cameraManufacturer
- \sa {QtMultimedia::CameraManufacturer}
+ \sa {QtMediaServices::CameraManufacturer}
*/
/*!
\qmlproperty variant Video::cameraModel
- \sa {QtMultimedia::CameraModel}
+ \sa {QtMediaServices::CameraModel}
*/
/*!
\qmlproperty variant Video::event
- \sa {QtMultimedia::Event}
+ \sa {QtMediaServices::Event}
*/
/*!
\qmlproperty variant Video::subject
- \sa {QtMultimedia::Subject}
+ \sa {QtMediaServices::Subject}
*/
/*!
\qmlproperty variant Video::orientation
- \sa {QtMultimedia::Orientation}
+ \sa {QtMediaServices::Orientation}
*/
/*!
\qmlproperty variant Video::exposureTime
- \sa {QtMultimedia::ExposureTime}
+ \sa {QtMediaServices::ExposureTime}
*/
/*!
\qmlproperty variant Video::fNumber
- \sa {QtMultimedia::FNumber}
+ \sa {QtMediaServices::FNumber}
*/
/*!
\qmlproperty variant Video::exposureProgram
- \sa {QtMultimedia::ExposureProgram}
+ \sa {QtMediaServices::ExposureProgram}
*/
/*!
\qmlproperty variant Video::isoSpeedRatings
- \sa {QtMultimedia::ISOSpeedRatings}
+ \sa {QtMediaServices::ISOSpeedRatings}
*/
/*!
\qmlproperty variant Video::exposureBiasValue
- \sa {QtMultimedia::ExposureBiasValue}
+ \sa {QtMediaServices::ExposureBiasValue}
*/
/*!
\qmlproperty variant Video::dateTimeDigitized
- \sa {QtMultimedia::DateTimeDigitized}
+ \sa {QtMediaServices::DateTimeDigitized}
*/
/*!
\qmlproperty variant Video::subjectDistance
- \sa {QtMultimedia::SubjectDistance}
+ \sa {QtMediaServices::SubjectDistance}
*/
/*!
\qmlproperty variant Video::meteringMode
- \sa {QtMultimedia::MeteringMode}
+ \sa {QtMediaServices::MeteringMode}
*/
/*!
\qmlproperty variant Video::lightSource
- \sa {QtMultimedia::LightSource}
+ \sa {QtMediaServices::LightSource}
*/
/*!
\qmlproperty variant Video::flash
- \sa {QtMultimedia::Flash}
+ \sa {QtMediaServices::Flash}
*/
/*!
\qmlproperty variant Video::focalLength
- \sa {QtMultimedia::FocalLength}
+ \sa {QtMediaServices::FocalLength}
*/
/*!
\qmlproperty variant Video::exposureMode
- \sa {QtMultimedia::ExposureMode}
+ \sa {QtMediaServices::ExposureMode}
*/
/*!
\qmlproperty variant Video::whiteBalance
- \sa {QtMultimedia::WhiteBalance}
+ \sa {QtMediaServices::WhiteBalance}
*/
/*!
\qmlproperty variant Video::DigitalZoomRatio
- \sa {QtMultimedia::DigitalZoomRatio}
+ \sa {QtMediaServices::DigitalZoomRatio}
*/
/*!
\qmlproperty variant Video::focalLengthIn35mmFilm
- \sa {QtMultimedia::FocalLengthIn35mmFile}
+ \sa {QtMediaServices::FocalLengthIn35mmFile}
*/
/*!
\qmlproperty variant Video::sceneCaptureType
- \sa {QtMultimedia::SceneCaptureType}
+ \sa {QtMediaServices::SceneCaptureType}
*/
/*!
\qmlproperty variant Video::gainControl
- \sa {QtMultimedia::GainControl}
+ \sa {QtMediaServices::GainControl}
*/
/*!
\qmlproperty variant Video::contrast
- \sa {QtMultimedia::contrast}
+ \sa {QtMediaServices::contrast}
*/
/*!
\qmlproperty variant Video::saturation
- \sa {QtMultimedia::Saturation}
+ \sa {QtMediaServices::Saturation}
*/
/*!
\qmlproperty variant Video::sharpness
- \sa {QtMultimedia::Sharpness}
+ \sa {QtMediaServices::Sharpness}
*/
/*!
\qmlproperty variant Video::deviceSettingDescription
- \sa {QtMultimedia::DeviceSettingDescription}
+ \sa {QtMediaServices::DeviceSettingDescription}
*/
#endif
diff --git a/src/imports/multimedia/qdeclarativevideo_p.h b/src/imports/multimedia/qdeclarativevideo_p.h
index 29e1090..c048b7d 100644
--- a/src/imports/multimedia/qdeclarativevideo_p.h
+++ b/src/imports/multimedia/qdeclarativevideo_p.h
@@ -55,7 +55,7 @@
#include "qdeclarativemediabase_p.h"
-#include <QtMultimedia/qgraphicsvideoitem.h>
+#include <QtMediaServices/qgraphicsvideoitem.h>
#include <QtCore/qbasictimer.h>
#include <QtDeclarative/qdeclarativeitem.h>
diff --git a/src/imports/multimedia/qmetadatacontrolmetaobject.cpp b/src/imports/multimedia/qmetadatacontrolmetaobject.cpp
index e90cbd6..5235a87 100644
--- a/src/imports/multimedia/qmetadatacontrolmetaobject.cpp
+++ b/src/imports/multimedia/qmetadatacontrolmetaobject.cpp
@@ -40,7 +40,7 @@
****************************************************************************/
#include "qmetadatacontrolmetaobject_p.h"
-#include <QtMultimedia/qmetadatacontrol.h>
+#include <QtMediaServices/qmetadatacontrol.h>
QT_BEGIN_NAMESPACE
@@ -106,101 +106,101 @@ namespace
{
struct MetaDataKey
{
- QtMultimedia::MetaData key;
+ QtMediaServices::MetaData key;
const char *name;
};
const MetaDataKey qt_metaDataKeys[] =
{
- { QtMultimedia::Title, "title" },
- { QtMultimedia::SubTitle, "subTitle" },
- { QtMultimedia::Author, "author" },
- { QtMultimedia::Comment, "comment" },
- { QtMultimedia::Description, "description" },
- { QtMultimedia::Category, "category" },
- { QtMultimedia::Genre, "genre" },
- { QtMultimedia::Year, "year" },
- { QtMultimedia::Date, "date" },
- { QtMultimedia::UserRating, "userRating" },
- { QtMultimedia::Keywords, "keywords" },
- { QtMultimedia::Language, "language" },
- { QtMultimedia::Publisher, "publisher" },
- { QtMultimedia::Copyright, "copyright" },
- { QtMultimedia::ParentalRating, "parentalRating" },
- { QtMultimedia::RatingOrganisation, "ratingOrganisation" },
+ { QtMediaServices::Title, "title" },
+ { QtMediaServices::SubTitle, "subTitle" },
+ { QtMediaServices::Author, "author" },
+ { QtMediaServices::Comment, "comment" },
+ { QtMediaServices::Description, "description" },
+ { QtMediaServices::Category, "category" },
+ { QtMediaServices::Genre, "genre" },
+ { QtMediaServices::Year, "year" },
+ { QtMediaServices::Date, "date" },
+ { QtMediaServices::UserRating, "userRating" },
+ { QtMediaServices::Keywords, "keywords" },
+ { QtMediaServices::Language, "language" },
+ { QtMediaServices::Publisher, "publisher" },
+ { QtMediaServices::Copyright, "copyright" },
+ { QtMediaServices::ParentalRating, "parentalRating" },
+ { QtMediaServices::RatingOrganisation, "ratingOrganisation" },
// Media
- { QtMultimedia::Size, "size" },
- { QtMultimedia::MediaType, "mediaType" },
-// { QtMultimedia::Duration, "duration" },
+ { QtMediaServices::Size, "size" },
+ { QtMediaServices::MediaType, "mediaType" },
+// { QtMediaServices::Duration, "duration" },
// Audio
- { QtMultimedia::AudioBitRate, "audioBitRate" },
- { QtMultimedia::AudioCodec, "audioCodec" },
- { QtMultimedia::AverageLevel, "averageLevel" },
- { QtMultimedia::ChannelCount, "channelCount" },
- { QtMultimedia::PeakValue, "peakValue" },
- { QtMultimedia::SampleRate, "sampleRate" },
+ { QtMediaServices::AudioBitRate, "audioBitRate" },
+ { QtMediaServices::AudioCodec, "audioCodec" },
+ { QtMediaServices::AverageLevel, "averageLevel" },
+ { QtMediaServices::ChannelCount, "channelCount" },
+ { QtMediaServices::PeakValue, "peakValue" },
+ { QtMediaServices::SampleRate, "sampleRate" },
// Music
- { QtMultimedia::AlbumTitle, "albumTitle" },
- { QtMultimedia::AlbumArtist, "albumArtist" },
- { QtMultimedia::ContributingArtist, "contributingArtist" },
- { QtMultimedia::Composer, "composer" },
- { QtMultimedia::Conductor, "conductor" },
- { QtMultimedia::Lyrics, "lyrics" },
- { QtMultimedia::Mood, "mood" },
- { QtMultimedia::TrackNumber, "trackNumber" },
- { QtMultimedia::TrackCount, "trackCount" },
-
- { QtMultimedia::CoverArtUrlSmall, "coverArtUrlSmall" },
- { QtMultimedia::CoverArtUrlLarge, "coverArtUrlLarge" },
+ { QtMediaServices::AlbumTitle, "albumTitle" },
+ { QtMediaServices::AlbumArtist, "albumArtist" },
+ { QtMediaServices::ContributingArtist, "contributingArtist" },
+ { QtMediaServices::Composer, "composer" },
+ { QtMediaServices::Conductor, "conductor" },
+ { QtMediaServices::Lyrics, "lyrics" },
+ { QtMediaServices::Mood, "mood" },
+ { QtMediaServices::TrackNumber, "trackNumber" },
+ { QtMediaServices::TrackCount, "trackCount" },
+
+ { QtMediaServices::CoverArtUrlSmall, "coverArtUrlSmall" },
+ { QtMediaServices::CoverArtUrlLarge, "coverArtUrlLarge" },
// Image/Video
- { QtMultimedia::Resolution, "resolution" },
- { QtMultimedia::PixelAspectRatio, "pixelAspectRatio" },
+ { QtMediaServices::Resolution, "resolution" },
+ { QtMediaServices::PixelAspectRatio, "pixelAspectRatio" },
// Video
- { QtMultimedia::VideoFrameRate, "videoFrameRate" },
- { QtMultimedia::VideoBitRate, "videoBitRate" },
- { QtMultimedia::VideoCodec, "videoCodec" },
+ { QtMediaServices::VideoFrameRate, "videoFrameRate" },
+ { QtMediaServices::VideoBitRate, "videoBitRate" },
+ { QtMediaServices::VideoCodec, "videoCodec" },
- { QtMultimedia::PosterUrl, "posterUrl" },
+ { QtMediaServices::PosterUrl, "posterUrl" },
// Movie
- { QtMultimedia::ChapterNumber, "chapterNumber" },
- { QtMultimedia::Director, "director" },
- { QtMultimedia::LeadPerformer, "leadPerformer" },
- { QtMultimedia::Writer, "writer" },
+ { QtMediaServices::ChapterNumber, "chapterNumber" },
+ { QtMediaServices::Director, "director" },
+ { QtMediaServices::LeadPerformer, "leadPerformer" },
+ { QtMediaServices::Writer, "writer" },
// Photos
- { QtMultimedia::CameraManufacturer, "cameraManufacturer" },
- { QtMultimedia::CameraModel, "cameraModel" },
- { QtMultimedia::Event, "event" },
- { QtMultimedia::Subject, "subject" },
- { QtMultimedia::Orientation, "orientation" },
- { QtMultimedia::ExposureTime, "exposureTime" },
- { QtMultimedia::FNumber, "fNumber" },
- { QtMultimedia::ExposureProgram, "exposureProgram" },
- { QtMultimedia::ISOSpeedRatings, "isoSpeedRatings" },
- { QtMultimedia::ExposureBiasValue, "exposureBiasValue" },
- { QtMultimedia::DateTimeOriginal, "dateTimeOriginal" },
- { QtMultimedia::DateTimeDigitized, "dateTimeDigitized" },
- { QtMultimedia::SubjectDistance, "subjectDistance" },
- { QtMultimedia::MeteringMode, "meteringMode" },
- { QtMultimedia::LightSource, "lightSource" },
- { QtMultimedia::Flash, "flash" },
- { QtMultimedia::FocalLength, "focalLength" },
- { QtMultimedia::ExposureMode, "exposureMode" },
- { QtMultimedia::WhiteBalance, "whiteBalance" },
- { QtMultimedia::DigitalZoomRatio, "digitalZoomRatio" },
- { QtMultimedia::FocalLengthIn35mmFilm, "focalLengthIn35mmFilm" },
- { QtMultimedia::SceneCaptureType, "sceneCaptureType" },
- { QtMultimedia::GainControl, "gainControl" },
- { QtMultimedia::Contrast, "contrast" },
- { QtMultimedia::Saturation, "saturation" },
- { QtMultimedia::Sharpness, "sharpness" },
- { QtMultimedia::DeviceSettingDescription, "deviceSettingDescription" }
+ { QtMediaServices::CameraManufacturer, "cameraManufacturer" },
+ { QtMediaServices::CameraModel, "cameraModel" },
+ { QtMediaServices::Event, "event" },
+ { QtMediaServices::Subject, "subject" },
+ { QtMediaServices::Orientation, "orientation" },
+ { QtMediaServices::ExposureTime, "exposureTime" },
+ { QtMediaServices::FNumber, "fNumber" },
+ { QtMediaServices::ExposureProgram, "exposureProgram" },
+ { QtMediaServices::ISOSpeedRatings, "isoSpeedRatings" },
+ { QtMediaServices::ExposureBiasValue, "exposureBiasValue" },
+ { QtMediaServices::DateTimeOriginal, "dateTimeOriginal" },
+ { QtMediaServices::DateTimeDigitized, "dateTimeDigitized" },
+ { QtMediaServices::SubjectDistance, "subjectDistance" },
+ { QtMediaServices::MeteringMode, "meteringMode" },
+ { QtMediaServices::LightSource, "lightSource" },
+ { QtMediaServices::Flash, "flash" },
+ { QtMediaServices::FocalLength, "focalLength" },
+ { QtMediaServices::ExposureMode, "exposureMode" },
+ { QtMediaServices::WhiteBalance, "whiteBalance" },
+ { QtMediaServices::DigitalZoomRatio, "digitalZoomRatio" },
+ { QtMediaServices::FocalLengthIn35mmFilm, "focalLengthIn35mmFilm" },
+ { QtMediaServices::SceneCaptureType, "sceneCaptureType" },
+ { QtMediaServices::GainControl, "gainControl" },
+ { QtMediaServices::Contrast, "contrast" },
+ { QtMediaServices::Saturation, "saturation" },
+ { QtMediaServices::Sharpness, "sharpness" },
+ { QtMediaServices::DeviceSettingDescription, "deviceSettingDescription" }
};
class QMetaDataControlObject : public QObject
diff --git a/src/imports/multimedia/qmetadatacontrolmetaobject_p.h b/src/imports/multimedia/qmetadatacontrolmetaobject_p.h
index c381f2d..bbbc6fe 100644
--- a/src/imports/multimedia/qmetadatacontrolmetaobject_p.h
+++ b/src/imports/multimedia/qmetadatacontrolmetaobject_p.h
@@ -54,7 +54,7 @@
//
#include <QtCore/qmetaobject.h>
-#include <QtMultimedia/qtmedianamespace.h>
+#include <QtMediaServices/qtmedianamespace.h>
#include <QtCore/private/qobject_p.h>
diff --git a/src/imports/particles/particles.pro b/src/imports/particles/particles.pro
index 58bfe05..79ac543 100644
--- a/src/imports/particles/particles.pro
+++ b/src/imports/particles/particles.pro
@@ -21,8 +21,7 @@ symbian:{
load(data_caging_paths)
include($$QT_SOURCE_TREE/demos/symbianpkgrules.pri)
- importFiles.sources = $$[QT_INSTALL_IMPORTS]/$$TARGETPATH/particles.dll \
- qmldir
+ importFiles.sources = particles.dll qmldir
importFiles.path = $$QT_IMPORTS_BASE_DIR/$$TARGETPATH
DEPLOYMENT = importFiles
diff --git a/src/imports/particles/qdeclarativeparticles.cpp b/src/imports/particles/qdeclarativeparticles.cpp
index 264cba2..ecc6604 100644
--- a/src/imports/particles/qdeclarativeparticles.cpp
+++ b/src/imports/particles/qdeclarativeparticles.cpp
@@ -189,13 +189,13 @@ void QDeclarativeParticleMotionLinear::advance(QDeclarativeParticle &p, int inte
*/
/*!
- \qmlproperty qreal ParticleMotionGravity::xattractor
- \qmlproperty qreal ParticleMotionGravity::yattractor
+ \qmlproperty real ParticleMotionGravity::xattractor
+ \qmlproperty real ParticleMotionGravity::yattractor
These properties hold the x and y coordinates of the point attracting the particles.
*/
/*!
- \qmlproperty qreal ParticleMotionGravity::acceleration
+ \qmlproperty real ParticleMotionGravity::acceleration
This property holds the acceleration to apply to the particles.
*/
@@ -303,14 +303,14 @@ Rectangle {
*/
/*!
- \qmlproperty qreal QDeclarativeParticleMotionWander::xvariance
- \qmlproperty qreal QDeclarativeParticleMotionWander::yvariance
+ \qmlproperty real QDeclarativeParticleMotionWander::xvariance
+ \qmlproperty real QDeclarativeParticleMotionWander::yvariance
These properties set the amount to wander in the x and y directions.
*/
/*!
- \qmlproperty qreal QDeclarativeParticleMotionWander::pace
+ \qmlproperty real QDeclarativeParticleMotionWander::pace
This property holds how quickly the paricles will move from side to side.
*/
@@ -859,7 +859,7 @@ void QDeclarativeParticles::setEmissionRate(int er)
}
/*!
- \qmlproperty qreal Particles::emissionVariance
+ \qmlproperty real Particles::emissionVariance
This property holds how inconsistent the rate of particle emissions are.
It is a number between 0 (no variance) and 1 (some variance).
diff --git a/src/imports/webkit/webkit.pro b/src/imports/webkit/webkit.pro
index 62db9ac..77cbc4d 100644
--- a/src/imports/webkit/webkit.pro
+++ b/src/imports/webkit/webkit.pro
@@ -18,8 +18,7 @@ symbian:{
load(data_caging_paths)
include($$QT_SOURCE_TREE/demos/symbianpkgrules.pri)
- importFiles.sources = $$[QT_INSTALL_IMPORTS]/$$TARGETPATH/webkitqmlplugin.dll \
- qmldir
+ importFiles.sources = webkitqmlplugin.dll qmldir
importFiles.path = $$QT_IMPORTS_BASE_DIR/$$TARGETPATH
DEPLOYMENT = importFiles
diff --git a/src/imports/widgets/graphicslayouts.cpp b/src/imports/widgets/graphicslayouts.cpp
index fc15ad2..25cf994 100644
--- a/src/imports/widgets/graphicslayouts.cpp
+++ b/src/imports/widgets/graphicslayouts.cpp
@@ -47,7 +47,7 @@
QT_BEGIN_NAMESPACE
LinearLayoutAttached::LinearLayoutAttached(QObject *parent)
-: QObject(parent), _stretch(1), _alignment(Qt::AlignCenter)
+: QObject(parent), _stretch(1), _alignment(Qt::AlignCenter), _spacing(0)
{
}
@@ -60,6 +60,15 @@ void LinearLayoutAttached::setStretchFactor(int f)
emit stretchChanged(reinterpret_cast<QGraphicsLayoutItem*>(parent()), _stretch);
}
+void LinearLayoutAttached::setSpacing(int s)
+{
+ if (_spacing == s)
+ return;
+
+ _spacing = s;
+ emit spacingChanged(reinterpret_cast<QGraphicsLayoutItem*>(parent()), _spacing);
+}
+
void LinearLayoutAttached::setAlignment(Qt::Alignment a)
{
if (_alignment == a)
@@ -99,10 +108,13 @@ insertItem(index, item);
if (LinearLayoutAttached *obj = attachedProperties.value(item)) {
setStretchFactor(item, obj->stretchFactor());
setAlignment(item, obj->alignment());
+ updateSpacing(item, obj->spacing());
QObject::connect(obj, SIGNAL(stretchChanged(QGraphicsLayoutItem*,int)),
this, SLOT(updateStretch(QGraphicsLayoutItem*,int)));
QObject::connect(obj, SIGNAL(alignmentChanged(QGraphicsLayoutItem*,Qt::Alignment)),
this, SLOT(updateAlignment(QGraphicsLayoutItem*,Qt::Alignment)));
+ QObject::connect(obj, SIGNAL(spacingChanged(QGraphicsLayoutItem*,int)),
+ this, SLOT(updateSpacing(QGraphicsLayoutItem*,int)));
//### need to disconnect when widget is removed?
}
}
@@ -114,11 +126,35 @@ for (int i = 0; i < count(); ++i)
removeAt(i);
}
+qreal QGraphicsLinearLayoutObject::contentsMargin() const
+{
+ qreal a,b,c,d;
+ getContentsMargins(&a, &b, &c, &d);
+ if(a==b && a==c && a==d)
+ return a;
+ return -1;
+}
+
+void QGraphicsLinearLayoutObject::setContentsMargin(qreal m)
+{
+ setContentsMargins(m,m,m,m);
+}
+
void QGraphicsLinearLayoutObject::updateStretch(QGraphicsLayoutItem *item, int stretch)
{
QGraphicsLinearLayout::setStretchFactor(item, stretch);
}
+void QGraphicsLinearLayoutObject::updateSpacing(QGraphicsLayoutItem* item, int spacing)
+{
+ for(int i=0; i < count(); i++){
+ if(itemAt(i) == item){ //I do not see the reverse function, which is why we must loop over all items
+ QGraphicsLinearLayout::setItemSpacing(i, spacing);
+ return;
+ }
+ }
+}
+
void QGraphicsLinearLayoutObject::updateAlignment(QGraphicsLayoutItem *item, Qt::Alignment alignment)
{
QGraphicsLinearLayout::setAlignment(item, alignment);
@@ -139,7 +175,9 @@ return rv;
// QGraphicsGridLayout-related classes
//////////////////////////////////////////////////////////////////////////////////////////////////////
GridLayoutAttached::GridLayoutAttached(QObject *parent)
-: QObject(parent), _row(-1), _column(-1), _rowspan(1), _colspan(1), _alignment(-1)
+: QObject(parent), _row(-1), _column(-1), _rowspan(1), _colspan(1), _alignment(-1), _rowstretch(-1),
+ _colstretch(-1), _rowspacing(-1), _colspacing(-1), _rowprefheight(-1), _rowmaxheight(-1), _rowminheight(-1),
+ _rowfixheight(-1), _colprefwidth(-1), _colmaxwidth(-1), _colminwidth(-1), _colfixwidth(-1)
{
}
@@ -185,9 +223,30 @@ void GridLayoutAttached::setAlignment(Qt::Alignment a)
return;
_alignment = a;
- //emit alignmentChanged(reinterpret_cast<QGraphicsLayoutItem*>(parent()), _alignment);
+ emit alignmentChanged(reinterpret_cast<QGraphicsLayoutItem*>(parent()), _alignment);
+}
+
+void GridLayoutAttached::setRowStretchFactor(int f)
+{
+ _rowstretch = f;
+}
+
+void GridLayoutAttached::setColumnStretchFactor(int f)
+{
+ _colstretch = f;
+}
+
+void GridLayoutAttached::setRowSpacing(int s)
+{
+ _rowspacing = s;
}
+void GridLayoutAttached::setColumnSpacing(int s)
+{
+ _colspacing = s;
+}
+
+
QGraphicsGridLayoutObject::QGraphicsGridLayoutObject(QObject *parent)
: QObject(parent)
{
@@ -226,9 +285,36 @@ if (GridLayoutAttached *obj = attachedProperties.value(item)) {
qWarning() << "Must set row and column for an item in a grid layout";
return;
}
+ if(obj->rowSpacing() != -1)
+ setRowSpacing(row, obj->rowSpacing());
+ if(obj->columnSpacing() != -1)
+ setColumnSpacing(column, obj->columnSpacing());
+ if(obj->rowStretchFactor() != -1)
+ setRowStretchFactor(row, obj->rowStretchFactor());
+ if(obj->columnStretchFactor() != -1)
+ setColumnStretchFactor(column, obj->columnStretchFactor());
+ if(obj->rowPreferredHeight() != -1)
+ setRowPreferredHeight(row, obj->rowPreferredHeight());
+ if(obj->rowMaximumHeight() != -1)
+ setRowMaximumHeight(row, obj->rowMaximumHeight());
+ if(obj->rowMinimumHeight() != -1)
+ setRowMinimumHeight(row, obj->rowMinimumHeight());
+ if(obj->rowFixedHeight() != -1)
+ setRowFixedHeight(row, obj->rowFixedHeight());
+ if(obj->columnPreferredWidth() != -1)
+ setColumnPreferredWidth(row, obj->columnPreferredWidth());
+ if(obj->columnMaximumWidth() != -1)
+ setColumnMaximumWidth(row, obj->columnMaximumWidth());
+ if(obj->columnMinimumWidth() != -1)
+ setColumnMinimumWidth(row, obj->columnMinimumWidth());
+ if(obj->columnFixedWidth() != -1)
+ setColumnFixedWidth(row, obj->columnFixedWidth());
addItem(item, row, column, rowSpan, columnSpan);
if (alignment != -1)
setAlignment(item,alignment);
+ QObject::connect(obj, SIGNAL(alignmentChanged(QGraphicsLayoutItem*,Qt::Alignment)),
+ this, SLOT(updateAlignment(QGraphicsLayoutItem*,Qt::Alignment)));
+ //### need to disconnect when widget is removed?
}
}
@@ -246,6 +332,26 @@ if (verticalSpacing() == horizontalSpacing())
return -1; //###
}
+qreal QGraphicsGridLayoutObject::contentsMargin() const
+{
+ qreal a,b,c,d;
+ getContentsMargins(&a, &b, &c, &d);
+ if(a==b && a==c && a==d)
+ return a;
+ return -1;
+}
+
+void QGraphicsGridLayoutObject::setContentsMargin(qreal m)
+{
+ setContentsMargins(m,m,m,m);
+}
+
+
+void QGraphicsGridLayoutObject::updateAlignment(QGraphicsLayoutItem *item, Qt::Alignment alignment)
+{
+QGraphicsGridLayout::setAlignment(item, alignment);
+}
+
QHash<QGraphicsLayoutItem*, GridLayoutAttached*> QGraphicsGridLayoutObject::attachedProperties;
GridLayoutAttached *QGraphicsGridLayoutObject::qmlAttachedProperties(QObject *obj)
{
diff --git a/src/imports/widgets/graphicslayouts_p.h b/src/imports/widgets/graphicslayouts_p.h
index 1c3dfe5..ea9c614 100644
--- a/src/imports/widgets/graphicslayouts_p.h
+++ b/src/imports/widgets/graphicslayouts_p.h
@@ -71,6 +71,7 @@ class QGraphicsLinearLayoutObject : public QObject, public QGraphicsLinearLayout
Q_PROPERTY(QDeclarativeListProperty<QGraphicsLayoutItem> children READ children)
Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation)
Q_PROPERTY(qreal spacing READ spacing WRITE setSpacing)
+ Q_PROPERTY(qreal contentsMargin READ contentsMargin WRITE setContentsMargin)
Q_CLASSINFO("DefaultProperty", "children")
public:
QGraphicsLinearLayoutObject(QObject * = 0);
@@ -80,8 +81,12 @@ public:
static LinearLayoutAttached *qmlAttachedProperties(QObject *);
+ qreal contentsMargin() const;
+ void setContentsMargin(qreal);
+
private Q_SLOTS:
void updateStretch(QGraphicsLayoutItem*,int);
+ void updateSpacing(QGraphicsLayoutItem*,int);
void updateAlignment(QGraphicsLayoutItem*,Qt::Alignment);
private:
@@ -115,6 +120,7 @@ class QGraphicsGridLayoutObject : public QObject, public QGraphicsGridLayout
Q_PROPERTY(QDeclarativeListProperty<QGraphicsLayoutItem> children READ children)
Q_PROPERTY(qreal spacing READ spacing WRITE setSpacing)
+ Q_PROPERTY(qreal contentsMargin READ contentsMargin WRITE setContentsMargin)
Q_PROPERTY(qreal verticalSpacing READ verticalSpacing WRITE setVerticalSpacing)
Q_PROPERTY(qreal horizontalSpacing READ horizontalSpacing WRITE setHorizontalSpacing)
Q_CLASSINFO("DefaultProperty", "children")
@@ -125,9 +131,14 @@ public:
QDeclarativeListProperty<QGraphicsLayoutItem> children() { return QDeclarativeListProperty<QGraphicsLayoutItem>(this, 0, children_append, children_count, children_at, children_clear); }
qreal spacing() const;
+ qreal contentsMargin() const;
+ void setContentsMargin(qreal);
static GridLayoutAttached *qmlAttachedProperties(QObject *);
+private Q_SLOTS:
+ void updateAlignment(QGraphicsLayoutItem*,Qt::Alignment);
+
private:
friend class GraphicsLayoutAttached;
void addWidget(QGraphicsWidget *);
@@ -158,6 +169,7 @@ class LinearLayoutAttached : public QObject
Q_PROPERTY(int stretchFactor READ stretchFactor WRITE setStretchFactor NOTIFY stretchChanged)
Q_PROPERTY(Qt::Alignment alignment READ alignment WRITE setAlignment NOTIFY alignmentChanged)
+ Q_PROPERTY(int spacing READ spacing WRITE setSpacing NOTIFY spacingChanged)
public:
LinearLayoutAttached(QObject *parent);
@@ -165,14 +177,18 @@ public:
void setStretchFactor(int f);
Qt::Alignment alignment() const { return _alignment; }
void setAlignment(Qt::Alignment a);
+ int spacing() const { return _spacing; }
+ void setSpacing(int s);
Q_SIGNALS:
void stretchChanged(QGraphicsLayoutItem*,int);
void alignmentChanged(QGraphicsLayoutItem*,Qt::Alignment);
+ void spacingChanged(QGraphicsLayoutItem*,int);
private:
int _stretch;
Qt::Alignment _alignment;
+ int _spacing;
};
class GridLayoutAttached : public QObject
@@ -184,6 +200,19 @@ class GridLayoutAttached : public QObject
Q_PROPERTY(int rowSpan READ rowSpan WRITE setRowSpan)
Q_PROPERTY(int columnSpan READ columnSpan WRITE setColumnSpan)
Q_PROPERTY(Qt::Alignment alignment READ alignment WRITE setAlignment)
+ Q_PROPERTY(int rowStretchFactor READ rowStretchFactor WRITE setRowStretchFactor)
+ Q_PROPERTY(int columnStretchFactor READ columnStretchFactor WRITE setColumnStretchFactor)
+ Q_PROPERTY(int rowSpacing READ rowSpacing WRITE setRowSpacing)
+ Q_PROPERTY(int columnSpacing READ columnSpacing WRITE setColumnSpacing)
+ Q_PROPERTY(int rowPreferredHeight READ rowPreferredHeight WRITE setRowPreferredHeight)
+ Q_PROPERTY(int rowMinimumHeight READ rowMinimumHeight WRITE setRowMinimumHeight)
+ Q_PROPERTY(int rowMaximumHeight READ rowMaximumHeight WRITE setRowMaximumHeight)
+ Q_PROPERTY(int rowFixedHeight READ rowFixedHeight WRITE setRowFixedHeight)
+ Q_PROPERTY(int columnPreferredWidth READ columnPreferredWidth WRITE setColumnPreferredWidth)
+ Q_PROPERTY(int columnMaximumWidth READ columnMaximumWidth WRITE setColumnMaximumWidth)
+ Q_PROPERTY(int columnMinimumWidth READ columnMinimumWidth WRITE setColumnMinimumWidth)
+ Q_PROPERTY(int columnFixedWidth READ columnFixedWidth WRITE setColumnFixedWidth)
+
public:
GridLayoutAttached(QObject *parent);
@@ -202,12 +231,61 @@ public:
Qt::Alignment alignment() const { return _alignment; }
void setAlignment(Qt::Alignment a);
+ int rowStretchFactor() const { return _rowstretch; }
+ void setRowStretchFactor(int f);
+ int columnStretchFactor() const { return _colstretch; }
+ void setColumnStretchFactor(int f);
+
+ int rowSpacing() const { return _rowspacing; }
+ void setRowSpacing(int s);
+ int columnSpacing() const { return _colspacing; }
+ void setColumnSpacing(int s);
+
+ int rowPreferredHeight() const { return _rowprefheight; }
+ void setRowPreferredHeight(int s) { _rowprefheight = s; }
+
+ int rowMaximumHeight() const { return _rowmaxheight; }
+ void setRowMaximumHeight(int s) { _rowmaxheight = s; }
+
+ int rowMinimumHeight() const { return _rowminheight; }
+ void setRowMinimumHeight(int s) { _rowminheight = s; }
+
+ int rowFixedHeight() const { return _rowfixheight; }
+ void setRowFixedHeight(int s) { _rowfixheight = s; }
+
+ int columnPreferredWidth() const { return _colprefwidth; }
+ void setColumnPreferredWidth(int s) { _colprefwidth = s; }
+
+ int columnMaximumWidth() const { return _colmaxwidth; }
+ void setColumnMaximumWidth(int s) { _colmaxwidth = s; }
+
+ int columnMinimumWidth() const { return _colminwidth; }
+ void setColumnMinimumWidth(int s) { _colminwidth = s; }
+
+ int columnFixedWidth() const { return _colfixwidth; }
+ void setColumnFixedWidth(int s) { _colfixwidth = s; }
+
+Q_SIGNALS:
+ void alignmentChanged(QGraphicsLayoutItem*,Qt::Alignment);
+
private:
int _row;
int _column;
int _rowspan;
int _colspan;
Qt::Alignment _alignment;
+ int _rowstretch;
+ int _colstretch;
+ int _rowspacing;
+ int _colspacing;
+ int _rowprefheight;
+ int _rowmaxheight;
+ int _rowminheight;
+ int _rowfixheight;
+ int _colprefwidth;
+ int _colmaxwidth;
+ int _colminwidth;
+ int _colfixwidth;
};
QT_END_NAMESPACE
diff --git a/src/imports/widgets/widgets.cpp b/src/imports/widgets/widgets.cpp
index 1a71a68..20de1fe 100644
--- a/src/imports/widgets/widgets.cpp
+++ b/src/imports/widgets/widgets.cpp
@@ -57,9 +57,9 @@ public:
qmlRegisterInterface<QGraphicsLayoutItem>("QGraphicsLayoutItem");
qmlRegisterInterface<QGraphicsLayout>("QGraphicsLayout");
- qmlRegisterType<QGraphicsLinearLayoutStretchItemObject>(uri,4,6,"QGraphicsLinearLayoutStretchItem");
- qmlRegisterType<QGraphicsLinearLayoutObject>(uri,4,6,"QGraphicsLinearLayout");
- qmlRegisterType<QGraphicsGridLayoutObject>(uri,4,6,"QGraphicsGridLayout");
+ qmlRegisterType<QGraphicsLinearLayoutStretchItemObject>(uri,4,7,"QGraphicsLinearLayoutStretchItem");
+ qmlRegisterType<QGraphicsLinearLayoutObject>(uri,4,7,"QGraphicsLinearLayout");
+ qmlRegisterType<QGraphicsGridLayoutObject>(uri,4,7,"QGraphicsGridLayout");
}
};
diff --git a/src/imports/widgets/widgets.pro b/src/imports/widgets/widgets.pro
index f26e4b9..234ff1e 100644
--- a/src/imports/widgets/widgets.pro
+++ b/src/imports/widgets/widgets.pro
@@ -21,8 +21,7 @@ symbian:{
load(data_caging_paths)
include($$QT_SOURCE_TREE/demos/symbianpkgrules.pri)
- importFiles.sources = $$[QT_INSTALL_IMPORTS]/$$TARGETPATH/widgets.dll \
- qmldir
+ importFiles.sources = widgets.dll qmldir
importFiles.path = $$QT_IMPORTS_BASE_DIR/$$TARGETPATH
DEPLOYMENT = importFiles