summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2013-06-04 19:46:58 +0200
committerFrederik Gladhorn <frederik.gladhorn@digia.com>2013-06-04 19:46:58 +0200
commit3651d51982b2421c21ae80767057586cb823e2c2 (patch)
tree845ef00ad40d8f5472ded51bbbc2d409aeb57513
parente77e64aff2134dd2f8884068fcf13a965b7c7b3f (diff)
parent2e0e26d00d55ad2b16a5fa7441314acc2c407124 (diff)
Merge remote-tracking branch 'origin/stable' into dev
Conflicts: .qmake.conf sync.profile Change-Id: I8f788167e37c9b9ca3f4a59a9785a435eeaa6317
-rw-r--r--dist/changes-5.0.222
-rw-r--r--dist/changes-5.1.022
-rw-r--r--qtimageformats.pro2
-rw-r--r--src/3rdparty/libtiff.pri3
-rw-r--r--src/imageformats/doc/qtimageformats.qdocconf16
-rw-r--r--src/plugins/imageformats/mng/mng.pro13
-rw-r--r--src/plugins/imageformats/mng/qmnghandler.pri9
-rw-r--r--src/plugins/imageformats/tga/qtgahandler.cpp2
-rw-r--r--src/plugins/imageformats/tiff/qfunctions_wince.cpp68
-rw-r--r--src/plugins/imageformats/tiff/tiff.pro1
-rw-r--r--sync.profile3
-rw-r--r--tests/auto/tiff/tiff.pro2
12 files changed, 135 insertions, 28 deletions
diff --git a/dist/changes-5.0.2 b/dist/changes-5.0.2
new file mode 100644
index 0000000..708a382
--- /dev/null
+++ b/dist/changes-5.0.2
@@ -0,0 +1,22 @@
+Qt 5.0.2 is a bug-fix release. It maintains both forward and backward
+compatibility (source and binary) with Qt 5.0.0 and 5.0.1.
+
+For more details, refer to the online documentation included in this
+distribution. The documentation is also available online:
+
+ http://qt-project.org/doc/qt-5.0/
+
+Some of the changes listed in this file include issue tracking numbers
+corresponding to tasks in the Qt Bug Tracker:
+
+ http://bugreports.qt-project.org/
+
+Each of these identifiers can be entered in the bug tracker to obtain more
+information about a particular change.
+
+
+****************************************************************************
+* General *
+****************************************************************************
+
+ - This release contains only minor code improvements.
diff --git a/dist/changes-5.1.0 b/dist/changes-5.1.0
new file mode 100644
index 0000000..505b0cc
--- /dev/null
+++ b/dist/changes-5.1.0
@@ -0,0 +1,22 @@
+Qt 5.1 introduces many new features and improvements as well as bugfixes
+over the 5.0.x series. For more details, refer to the online documentation
+included in this distribution. The documentation is also available online:
+
+ http://qt-project.org/doc/qt-5.1
+
+The Qt version 5.1 series is binary compatible with the 5.0.x series.
+Applications compiled for 5.0 will continue to run with 5.1.
+
+Some of the changes listed in this file include issue tracking numbers
+corresponding to tasks in the Qt Bug Tracker:
+
+ http://bugreports.qt-project.org/
+
+Each of these identifiers can be entered in the bug tracker to obtain more
+information about a particular change.
+
+****************************************************************************
+* General *
+****************************************************************************
+
+ - This release contains only minor code improvements.
diff --git a/qtimageformats.pro b/qtimageformats.pro
index ef2395c..26f5354 100644
--- a/qtimageformats.pro
+++ b/qtimageformats.pro
@@ -1,3 +1,5 @@
+requires(qtHaveModule(gui))
+
load(configure)
qtCompileTest(libmng)
qtCompileTest(libtiff)
diff --git a/src/3rdparty/libtiff.pri b/src/3rdparty/libtiff.pri
index 9e743f0..3479d85 100644
--- a/src/3rdparty/libtiff.pri
+++ b/src/3rdparty/libtiff.pri
@@ -34,8 +34,7 @@ SOURCES += \
$$PWD/libtiff/libtiff/tif_write.c \
$$PWD/libtiff/libtiff/tif_zip.c
-wince*: SOURCES += $$PWD/../corelib/kernel/qfunctions_wince.cpp \
- $$PWD/libtiff/libtiff/tif_wince.c
+wince*: SOURCES += $$PWD/libtiff/libtiff/tif_wince.c
win32: SOURCES += $$PWD/libtiff/libtiff/tif_win32.c
else: SOURCES += $$PWD/libtiff/libtiff/tif_unix.c
android: SOURCES += $$PWD/libtiff/port/lfind.c
diff --git a/src/imageformats/doc/qtimageformats.qdocconf b/src/imageformats/doc/qtimageformats.qdocconf
index d2b4556..39845aa 100644
--- a/src/imageformats/doc/qtimageformats.qdocconf
+++ b/src/imageformats/doc/qtimageformats.qdocconf
@@ -1,7 +1,7 @@
include($QT_INSTALL_DOCS/global/qt-module-defaults.qdocconf)
# Name of the project.
-project = qtimageformats
+project = QtImageFormats
description = Qt Image Formats Documentation
url = http://qt-project.org/doc/qt-$QT_VER/qtimageformats
version = $QT_VERSION
@@ -22,26 +22,26 @@ depends += qtcore qtgui
# Defines the name of the project. You cannot use operators (+, =, -) in
# the name. Properties for this project are set using a qhp.<projectname>.property
# format.
-qhp.projects = qtimageformats
+qhp.projects = QtImageFormats
# Sets the name of the output qhp file.
-qhp.qtimageformats.file = qtimageformats.qhp
+qhp.QtImageFormats.file = qtimageformats.qhp
# Namespace for the output file. This namespace is used to distinguish between
# different documentation files in Creator/Assistant. The namespace ends with
# a version being a number containing a major, minor and revision element.
# E.g. version 1.0 becomes 100.
-qhp.qtimageformats.namespace = org.qt-project.qtimageformats.$QT_VERSION_TAG
+qhp.QtImageFormats.namespace = org.qt-project.qtimageformats.$QT_VERSION_TAG
# Title for the package, will be the main title for the package in
# Assistant/Creator.
-qhp.qtimageformats.indexTitle = Qt Image Formats
+qhp.QtImageFormats.indexTitle = Qt Image Formats
# Extra files to add to the output which are not linked to from anywhere
# using a qdoc \l command.
-qhp.qtimageformats.extraFiles = style/style.css \
+qhp.QtImageFormats.extraFiles = style/style.css \
index.html
-# Only updtae the name of the project for the next variables.
-qhp.qtimageformats.virtualFolder = qtimageformats
+# Only update the name of the project for the next variables.
+qhp.QtImageFormats.virtualFolder = qtimageformats
diff --git a/src/plugins/imageformats/mng/mng.pro b/src/plugins/imageformats/mng/mng.pro
index 9890c11..f4e79af 100644
--- a/src/plugins/imageformats/mng/mng.pro
+++ b/src/plugins/imageformats/mng/mng.pro
@@ -4,15 +4,6 @@ PLUGIN_TYPE = imageformats
PLUGIN_CLASS_NAME = QMngPlugin
load(qt_plugin)
-HEADERS += qmnghandler_p.h
-SOURCES += qmnghandler.cpp
-OTHER_FILES += mng.json
-config_libmng {
- unix|win32-g++*: LIBS += -lmng
- else:win32: LIBS += libmng.lib
-} else {
- include($$PWD/../../../3rdparty/libmng.pri)
- *-g++*: QMAKE_CFLAGS_WARN_ON += -Wno-unused-parameter
-}
-
+include(qmnghandler.pri)
SOURCES += main.cpp
+OTHER_FILES += mng.json
diff --git a/src/plugins/imageformats/mng/qmnghandler.pri b/src/plugins/imageformats/mng/qmnghandler.pri
index ffb98de..cdf17c5 100644
--- a/src/plugins/imageformats/mng/qmnghandler.pri
+++ b/src/plugins/imageformats/mng/qmnghandler.pri
@@ -2,9 +2,10 @@
INCLUDEPATH *= $$PWD
HEADERS += $$PWD/qmnghandler_p.h
SOURCES += $$PWD/qmnghandler.cpp
-contains(QT_CONFIG, system-mng) {
- if(unix|win32-g++*):LIBS += -lmng
- else:win32: LIBS += libmng.lib
+config_libmng {
+ unix|win32-g++*: LIBS += -lmng
+ else:win32: LIBS += libmng.lib
} else {
- include($$PWD/../../3rdparty/libmng.pri)
+ include($$PWD/../../../3rdparty/libmng.pri)
+ *-g++*: QMAKE_CFLAGS_WARN_ON += -Wno-unused-parameter
}
diff --git a/src/plugins/imageformats/tga/qtgahandler.cpp b/src/plugins/imageformats/tga/qtgahandler.cpp
index fe1b09b..f446db1 100644
--- a/src/plugins/imageformats/tga/qtgahandler.cpp
+++ b/src/plugins/imageformats/tga/qtgahandler.cpp
@@ -80,6 +80,8 @@ bool QTgaHandler::canRead(QIODevice *device)
// TGA reader implementation needs a seekable QIODevice, so
// sequential devices are not supported
+ if (device->isSequential())
+ return false;
qint64 pos = device->pos();
bool isValid;
{
diff --git a/src/plugins/imageformats/tiff/qfunctions_wince.cpp b/src/plugins/imageformats/tiff/qfunctions_wince.cpp
new file mode 100644
index 0000000..d4ea364
--- /dev/null
+++ b/src/plugins/imageformats/tiff/qfunctions_wince.cpp
@@ -0,0 +1,68 @@
+/****************************************************************************
+**
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the plugins of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** 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, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+#ifdef _WIN32_WCE //Q_OS_WINCE
+
+#include "qplatformdefs.h"
+
+QT_USE_NAMESPACE
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void *lfind(const void* key, const void* base, size_t* elements, size_t size,
+ int (__cdecl *compare)(const void*, const void*))
+{
+ const char* current = (char*) base;
+ const char* const end = (char*) (current + (*elements) * size);
+ while (current != end) {
+ if (compare(current, key) == 0)
+ return (void*)current;
+ current += size;
+ }
+ return 0;
+}
+
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+#endif // Q_OS_WINCE
diff --git a/src/plugins/imageformats/tiff/tiff.pro b/src/plugins/imageformats/tiff/tiff.pro
index 66eea8c..353e3f3 100644
--- a/src/plugins/imageformats/tiff/tiff.pro
+++ b/src/plugins/imageformats/tiff/tiff.pro
@@ -6,6 +6,7 @@ load(qt_plugin)
HEADERS += qtiffhandler_p.h
SOURCES += main.cpp qtiffhandler.cpp
+wince*: SOURCES += qfunctions_wince.cpp
OTHER_FILES += tiff.json
config_libtiff {
diff --git a/sync.profile b/sync.profile
index 26a853d..3fad8a6 100644
--- a/sync.profile
+++ b/sync.profile
@@ -3,7 +3,8 @@
# Each of the module version specifiers can take one of the following values:
# - A specific Git revision.
# - any git symbolic ref resolvable from the module's repository (e.g. "refs/heads/master" to track master branch)
+# - an empty string to use the same branch under test (dependencies will become "refs/heads/master" if we are in the master branch)
#
%dependencies = (
- "qtbase" => "refs/heads/dev",
+ "qtbase" => "",
);
diff --git a/tests/auto/tiff/tiff.pro b/tests/auto/tiff/tiff.pro
index 2046cbf..29ed9eb 100644
--- a/tests/auto/tiff/tiff.pro
+++ b/tests/auto/tiff/tiff.pro
@@ -6,5 +6,3 @@ CONFIG += testcase
SOURCES += tst_qtiff.cpp
RESOURCES += $$PWD/../../shared/images/tiff.qrc
-
-CONFIG+=insignificant_test # QTBUG-28320