diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-02-19 05:52:04 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-02-19 05:52:04 (GMT) |
commit | b442982fed0f1c40eb936babbba197ce09e28c37 (patch) | |
tree | 5ad1db3245b83c4e57ce8bb0aa77da193be49b25 | |
parent | b99363853e729df1705c636acf495b73ea9d7cfe (diff) | |
parent | 91e69bbc1f390e4da209281d44f734b3d63e8e0f (diff) | |
download | Qt-b442982fed0f1c40eb936babbba197ce09e28c37.zip Qt-b442982fed0f1c40eb936babbba197ce09e28c37.tar.gz Qt-b442982fed0f1c40eb936babbba197ce09e28c37.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-qml
-rw-r--r-- | src/declarative/graphicsitems/qmlgraphicsanimatedimage.cpp | 1 | ||||
-rw-r--r-- | src/declarative/util/qmltimeline_p_p.h | 8 | ||||
-rw-r--r-- | tools/qmlviewer/main.cpp | 4 |
3 files changed, 5 insertions, 8 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicsanimatedimage.cpp b/src/declarative/graphicsitems/qmlgraphicsanimatedimage.cpp index 3434635..697be15 100644 --- a/src/declarative/graphicsitems/qmlgraphicsanimatedimage.cpp +++ b/src/declarative/graphicsitems/qmlgraphicsanimatedimage.cpp @@ -295,6 +295,7 @@ void QmlGraphicsAnimatedImage::playingStatusChanged() void QmlGraphicsAnimatedImage::componentComplete() { Q_D(QmlGraphicsAnimatedImage); + QmlGraphicsImage::componentComplete(); if (!d->reply) { setCurrentFrame(d->preset_currentframe); d->preset_currentframe = 0; diff --git a/src/declarative/util/qmltimeline_p_p.h b/src/declarative/util/qmltimeline_p_p.h index f335e7d..f271a3f 100644 --- a/src/declarative/util/qmltimeline_p_p.h +++ b/src/declarative/util/qmltimeline_p_p.h @@ -154,14 +154,6 @@ public: QmlTimeLineEvent(const QmlTimeLineEvent &o); template<class T, void (T::*method)()> - QmlTimeLineEvent(QmlTimeLineObject *b, T *c) - { - d0 = &callFunc<T, method>; - d1 = (void *)c; - d2 = b; - } - - template<class T, void (T::*method)()> static QmlTimeLineEvent timeLineEvent(QmlTimeLineObject *b, T *c) { QmlTimeLineEvent rv; diff --git a/tools/qmlviewer/main.cpp b/tools/qmlviewer/main.cpp index 97bd8bf..57c445f 100644 --- a/tools/qmlviewer/main.cpp +++ b/tools/qmlviewer/main.cpp @@ -95,6 +95,7 @@ void usage() qWarning(" -record arg .............................. add a recording process argument"); qWarning(" -autorecord [from-]<tomilliseconds> ...... set recording to start and stop"); qWarning(" -devicekeys .............................. use numeric keys (see F1)"); + qWarning(" -dragthreshold <size> .................... set mouse drag threshold size"); qWarning(" -netcache <size> ......................... set disk cache to size bytes"); qWarning(" -translation <translationfile> ........... set the language to run in"); qWarning(" -L <directory> ........................... prepend to the library search path"); @@ -217,6 +218,9 @@ int main(int argc, char ** argv) autorecord_to = range.mid(dash+1).toInt(); } else if (arg == "-devicekeys") { devkeys = true; + } else if (arg == "-dragthreshold") { + if (lastArg) usage(); + app.setStartDragDistance(QString(argv[++i]).toInt()); } else if (arg == QLatin1String("-v") || arg == QLatin1String("-version")) { fprintf(stderr, "Qt Declarative UI Viewer version %s\n", QT_VERSION_STR); return 0; |