qt:qt.git
11 years agoMerge branch 'master' of scm.dev.nokia.troll.no:qt/qt-earth-staging into master-integ...
Qt Continuous Integration System [Thu, 17 Nov 2011 10:43:42 +0000 (20:43 +1000)]
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-earth-staging into master-integration

* 'master' of scm.dev.nokia.troll.no:qt/qt-earth-staging:
  QNAM: make systemProxyForQuery respect http_proxy

11 years agoQNAM: make systemProxyForQuery respect http_proxy
Arvid Ephraim Picciani [Mon, 24 Oct 2011 14:41:44 +0000 (16:41 +0200)]
QNAM: make systemProxyForQuery respect http_proxy

the generic systemProxyForQuery will use http_proxy from the
environment, if it is set.

Change-Id: Ie685c47eb6df1fdd2ab223defc7172bb25e6fe30
Reviewed-by: Thiago Macieira (Intel) <thiago.macieira@intel.com>
(cherry picked from commit b22d290a37903f2c5ecfe58e8183cd293ead99dc)

11 years agoMerge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into master-integration
Qt Continuous Integration System [Wed, 16 Nov 2011 18:12:24 +0000 (04:12 +1000)]
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into master-integration

* 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1:
  Rebuild configure.exe with support for MinGW 4.6
  Windows: Add gcc 4.6.

11 years agoMerge remote-tracking branch 'mainline/4.8'
Oswald Buddenhagen [Wed, 16 Nov 2011 15:23:36 +0000 (16:23 +0100)]
Merge remote-tracking branch 'mainline/4.8'

11 years agoRebuild configure.exe with support for MinGW 4.6
Friedemann Kleint [Wed, 16 Nov 2011 13:40:43 +0000 (14:40 +0100)]
Rebuild configure.exe with support for MinGW 4.6

See d4150975af620e2889cc58bd476bac6b4d101db3

11 years agoWindows: Add gcc 4.6.
Friedemann Kleint [Wed, 16 Nov 2011 08:53:38 +0000 (09:53 +0100)]
Windows: Add gcc 4.6.

- Add gcc 4.6 mkspec for > 4.4 (win32-g++-4.6)
- Add detection of g++ version and 64bit to configure.

Reviewed-by: mariusSO
11 years agoMerge branch 'master' of scm.dev.nokia.troll.no:qt/qt-earth-staging into master-integ...
Qt Continuous Integration System [Wed, 16 Nov 2011 00:43:20 +0000 (10:43 +1000)]
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-earth-staging into master-integration

* 'master' of scm.dev.nokia.troll.no:qt/qt-earth-staging:
  Add the ability to do unsafe SSL renegotiation as a fallback.

11 years agoMerge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into master-integration
Qt Continuous Integration System [Tue, 15 Nov 2011 20:46:52 +0000 (06:46 +1000)]
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into master-integration

* 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1: (24 commits)
  Amend qfiledialog INTEGRITY patch
  Update to latest INTEGRITY Framebuffer API.
  Remove support for tilde expansion as there is no home on INTEGRITY.
  Remove docs and translations generation for INTEGRITY.
  Add XPLATFORM_INTEGRITY to define defaults for INTEGRITY.
  Remove QT 3 API support by default for INTEGRITY.
  Disable some tests because INTEGRITY doesn't support shared libraries.
  Add specific INTEGRITY cases for autotests requiring a target path.
  Improve default mkspec for INTEGRITY.
  Use Q_FUNC_INFO without line number on GHS compiler.
  Add INTEGRITY gbuild.* files to qmake project.
  Use the project root from .gpj project files, instead of local path.
  Make sure QMAKE_CXX is defined to prevent crashing on some projects.
  Add support for .pro-type subdirectories.
  Add relative path to the work directory, to prevent filename clashes.
  Only call moc if the file needs it.
  Use outname to specify the output .gpj to generate.
  Use "dll" instead of "shared".
  Instead of translating / into _, check if subdir is a .pro.
  Do not generate -D defines for project types.
  ...

11 years agoAmend qfiledialog INTEGRITY patch
Harald Fernengel [Tue, 15 Nov 2011 16:36:16 +0000 (17:36 +0100)]
Amend qfiledialog INTEGRITY patch

11 years agoUpdate to latest INTEGRITY Framebuffer API.
Rolland Dudemaine [Tue, 15 Nov 2011 16:28:38 +0000 (17:28 +0100)]
Update to latest INTEGRITY Framebuffer API.

Merge-request: 1438
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
11 years agoRemove support for tilde expansion as there is no home on INTEGRITY.
Rolland Dudemaine [Tue, 15 Nov 2011 16:28:37 +0000 (17:28 +0100)]
Remove support for tilde expansion as there is no home on INTEGRITY.

Instead of removing each use of the function, make the function do
nearly nothing. If home support gets added (it is actually there when
user/group support is present with full-posix mode is used), then
this is trivial to remove.
Also, keeps changes minimal.

Merge-request: 1438
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
11 years agoRemove docs and translations generation for INTEGRITY.
Rolland Dudemaine [Tue, 15 Nov 2011 16:28:36 +0000 (17:28 +0100)]
Remove docs and translations generation for INTEGRITY.

The source should only be used to build target code, in the context of building for INTEGRITY.

Merge-request: 1438
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
11 years agoAdd XPLATFORM_INTEGRITY to define defaults for INTEGRITY.
Rolland Dudemaine [Tue, 15 Nov 2011 16:28:34 +0000 (17:28 +0100)]
Add XPLATFORM_INTEGRITY to define defaults for INTEGRITY.

Defaults are set for QT_INSTALL paths, and for various CFG_ defines.
Also set the input and framebuffer drivers to be used.
Also set the BUILD_PARTS to the reduced set that produce target code.
If using script and declarative, then these are added still.
Make the configuration explicitly "Qt for INTEGRITY".
Since *_DIR variables are set in the first part of the configuration, do not set them again in the generic code.

Merge-request: 1438
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
11 years agoRemove QT 3 API support by default for INTEGRITY.
Rolland Dudemaine [Tue, 15 Nov 2011 16:28:33 +0000 (17:28 +0100)]
Remove QT 3 API support by default for INTEGRITY.

Merge-request: 1438
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
11 years agoDisable some tests because INTEGRITY doesn't support shared libraries.
Rolland Dudemaine [Tue, 15 Nov 2011 16:28:32 +0000 (17:28 +0100)]
Disable some tests because INTEGRITY doesn't support shared libraries.

Merge-request: 1438
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
11 years agoAdd specific INTEGRITY cases for autotests requiring a target path.
Rolland Dudemaine [Tue, 15 Nov 2011 16:28:31 +0000 (17:28 +0100)]
Add specific INTEGRITY cases for autotests requiring a target path.

SRCDIR is not parsed the same way due to the different qmake generation process.
furthermore, the full host path doesn't seem like a good idea to use for the path of the target filesystem.
Use "/" as default.

Merge-request: 1438
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
11 years agoImprove default mkspec for INTEGRITY.
Rolland Dudemaine [Tue, 15 Nov 2011 16:28:29 +0000 (17:28 +0100)]
Improve default mkspec for INTEGRITY.

More specifically :
- add DEFINES for removing unsupported features
- disable one more warning
- specify non-shared-library mode
- add hiddev library to linker list
- fill debug mode flags

Merge-request: 1438
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
11 years agoUse Q_FUNC_INFO without line number on GHS compiler.
Rolland Dudemaine [Tue, 15 Nov 2011 16:28:28 +0000 (17:28 +0100)]
Use Q_FUNC_INFO without line number on GHS compiler.

Merge-request: 1438
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
11 years agoAdd INTEGRITY gbuild.* files to qmake project.
Rolland Dudemaine [Tue, 15 Nov 2011 16:28:27 +0000 (17:28 +0100)]
Add INTEGRITY gbuild.* files to qmake project.

This allows building and debugging qmake from Qt Creator.

Merge-request: 1438
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
11 years agoUse the project root from .gpj project files, instead of local path.
Rolland Dudemaine [Tue, 15 Nov 2011 16:28:26 +0000 (17:28 +0100)]
Use the project root from .gpj project files, instead of local path.

Merge-request: 1438
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
11 years agoMake sure QMAKE_CXX is defined to prevent crashing on some projects.
Rolland Dudemaine [Tue, 15 Nov 2011 16:28:24 +0000 (17:28 +0100)]
Make sure QMAKE_CXX is defined to prevent crashing on some projects.

Merge-request: 1438
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
11 years agoAdd support for .pro-type subdirectories.
Rolland Dudemaine [Tue, 15 Nov 2011 16:28:23 +0000 (17:28 +0100)]
Add support for .pro-type subdirectories.

Merge-request: 1438
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
11 years agoAdd relative path to the work directory, to prevent filename clashes.
Rolland Dudemaine [Tue, 15 Nov 2011 16:28:22 +0000 (17:28 +0100)]
Add relative path to the work directory, to prevent filename clashes.

This was causing issues for some examples, which are all consistently
using main.cpp as the entry file.

Merge-request: 1438
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
11 years agoOnly call moc if the file needs it.
Rolland Dudemaine [Tue, 15 Nov 2011 16:28:21 +0000 (17:28 +0100)]
Only call moc if the file needs it.

This applies to both headers and cpp files (use mocable()).
Previously, moc was called on all cpp and h files, causing
additional compilation time, and trouble on QSvgGenerator.

Merge-request: 1438
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
11 years agoUse outname to specify the output .gpj to generate.
Rolland Dudemaine [Tue, 15 Nov 2011 16:28:19 +0000 (17:28 +0100)]
Use outname to specify the output .gpj to generate.

This resolves several path issues as well.
outname itself is now based on the first TARGET file,
instead of using the output filename.

Merge-request: 1438
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
11 years agoUse "dll" instead of "shared".
Rolland Dudemaine [Tue, 15 Nov 2011 16:28:18 +0000 (17:28 +0100)]
Use "dll" instead of "shared".

For DLLs (which are not supported, but may be soon), use
the CONFIG variable "dll" instead of the "shared" template,
because some testcases actually use shared even when
compiled statically.

Merge-request: 1438
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
11 years agoInstead of translating / into _, check if subdir is a .pro.
Rolland Dudemaine [Tue, 15 Nov 2011 16:28:17 +0000 (17:28 +0100)]
Instead of translating / into _, check if subdir is a .pro.

Previously, .pro files were treated as directories, and a previous
workaround for the issue was to replace / with _ in directory paths.
This was both actually non-sensical and not effective.
This resolves the issue by checking if the subdir has a .pro extension.

Merge-request: 1438
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
11 years agoDo not generate -D defines for project types.
Rolland Dudemaine [Tue, 15 Nov 2011 16:28:16 +0000 (17:28 +0100)]
Do not generate -D defines for project types.

Options are implicitly inherited from project to subprojects
and applications, so there is no need to respecify them.
Worse, if an app/lib disables an option, the project might
still have the define enabled, forcing it also onto the app/lib.
This prevents double-define or this kind of conflict.

Merge-request: 1438
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
11 years agoClean up generated linker file for the shared library case.
Rolland Dudemaine [Tue, 15 Nov 2011 16:28:14 +0000 (17:28 +0100)]
Clean up generated linker file for the shared library case.

Generated linker file was not looking good, now much better.

Merge-request: 1438
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
11 years agoMake applications start by default (StartIt True).
Rolland Dudemaine [Tue, 15 Nov 2011 16:28:13 +0000 (17:28 +0100)]
Make applications start by default (StartIt True).

Merge-request: 1438
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
11 years agoChange the overload from write() to writeMakefile() in INTEGRITY generator
Rolland Dudemaine [Tue, 15 Nov 2011 16:28:12 +0000 (17:28 +0100)]
Change the overload from write() to writeMakefile() in INTEGRITY generator

This way, INTEGRITY-specific generation is only called in
Makefile mode.

Merge-request: 1438
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
11 years agoResolve atomic operations issues on INTEGRITY.
Rolland Dudemaine [Tue, 15 Nov 2011 16:28:11 +0000 (17:28 +0100)]
Resolve atomic operations issues on INTEGRITY.

Now passes atomicpointer autotest successfully.

Merge-request: 1438
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
11 years agoMerge branch 'qt-4.8-from-4.7' of scm.dev.nokia.troll.no:qt/qt-integration into maste...
Qt Continuous Integration System [Tue, 15 Nov 2011 16:06:20 +0000 (02:06 +1000)]
Merge branch 'qt-4.8-from-4.7' of scm.dev.nokia.troll.no:qt/qt-integration into master-integration

* 'qt-4.8-from-4.7' of scm.dev.nokia.troll.no:qt/qt-integration:
  tests: allow unstable tests to be marked with CONFIG+=insignificant_test
  Fix focusScopeItemChange setting crash
  Fix crash in QHttpNetworkReplyPrivate::gunzipBodyPartiallyEnd
  symbian - handle path being passed as part of filename in QTranslator
  Symbian - fix compile error when default configured
  Compile when -no-rtti is specified as a configure option
  Ensure that the RC_FILE is correctly handled in a single configuration

11 years agoMerge branch 4.7 into qt-4.8-from-4.7
Sergio Ahumada [Tue, 15 Nov 2011 15:32:31 +0000 (16:32 +0100)]
Merge branch 4.7 into qt-4.8-from-4.7

11 years agoAdd the ability to do unsafe SSL renegotiation as a fallback.
Richard Moore [Mon, 14 Nov 2011 21:56:40 +0000 (21:56 +0000)]
Add the ability to do unsafe SSL renegotiation as a fallback.

This commit adds the ability to perform legacy SSL renegotiation as
a fallback via QSsl::SslOptions. This is something that used to work,
but has been disabled by default in newer versions of openssl. The
need for this has been reported by users (eg. in QTBUG-14983).

Change-Id: I5b80f3ffd07e0c5faddc469f6a8f857bac5740f7
Reviewed-by: Corentin Chary <corentin.chary@gmail.com>
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
(cherry picked from commit 75b2a4960b753766ea2eec4dbd34c67733ca8089)

11 years agoMerge branch 'master' of scm.dev.nokia.troll.no:qt/qt-earth-staging into master-integ...
Qt Continuous Integration System [Tue, 15 Nov 2011 11:33:51 +0000 (21:33 +1000)]
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-earth-staging into master-integration

* 'master' of scm.dev.nokia.troll.no:qt/qt-earth-staging:
  Properly protect access to pixmap reader thread with mutex

11 years agoMerge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qa-staging into 4.7-integration
Qt Continuous Integration System [Tue, 15 Nov 2011 09:23:02 +0000 (19:23 +1000)]
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qa-staging into 4.7-integration

* '4.7' of scm.dev.nokia.troll.no:qt/qt-qa-staging:
  tests: allow unstable tests to be marked with CONFIG+=insignificant_test

11 years agotests: allow unstable tests to be marked with CONFIG+=insignificant_test
Rohan McGovern [Thu, 19 May 2011 01:42:31 +0000 (11:42 +1000)]
tests: allow unstable tests to be marked with CONFIG+=insignificant_test

Marking a test with CONFIG+=insignificant_test will cause the exit code
of the test to be discarded during `make check'.  This is intended to be
used for tests which are valuable to run, but are known to be unstable
and are not feasible to immediately fix.

Reviewed-by: Jason McDonald
Change-Id: I50a712c33c2ebb0af39f1ea0bf2adef7f0936425
(cherry picked from commit b0a5a988900b777cb08012408eb108512a3e873b)

11 years agoProperly protect access to pixmap reader thread with mutex
Chris Adams [Mon, 14 Nov 2011 01:57:21 +0000 (11:57 +1000)]
Properly protect access to pixmap reader thread with mutex

Previously, access to the data from the reader thread wasn't guarded
properly, causing a crash when the reader thread was deleted prior to
QDeclarativePixmapData (which then attempted to dereference the
thread pointer to cancel the request), or in the case where a
QDeclarativePixmapData was deleted after its QDeclarativePixmapReply
was removed from the jobs queue but prior to processing.

Reviewed-by: Martin Jones
Task-number: QTBUG-22125

11 years agoMerge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into master-integration
Qt Continuous Integration System [Tue, 15 Nov 2011 07:16:28 +0000 (17:16 +1000)]
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into master-integration

* 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1:
  Revert "Improved performance of mapFromGlobal/mapToGlobal on X11"
  Fix QDockWidget titlebar button positioning on Mac OS X
  Fixed memory leak in Windows Vista style widgets

11 years agoMerge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integration
Qt Continuous Integration System [Tue, 15 Nov 2011 05:34:48 +0000 (15:34 +1000)]
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integration

* '4.7' of scm.dev.nokia.troll.no:qt/qt-qml:
  Fix focusScopeItemChange setting crash

11 years agoFix focusScopeItemChange setting crash
Damian Jansen [Tue, 15 Nov 2011 04:01:13 +0000 (14:01 +1000)]
Fix focusScopeItemChange setting crash

Delay focusScopeItemChange to after reparenting, to prevent
an invalid focusScopeItem pointer crash.

Task-number: QTBUG-21640
Reviewed-by: Martin Jones
11 years agoMerge branch 'master' of scm.dev.nokia.troll.no:qt/qt-doc-staging into master-integration
Qt Continuous Integration System [Tue, 15 Nov 2011 02:25:58 +0000 (12:25 +1000)]
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-doc-staging into master-integration

* 'master' of scm.dev.nokia.troll.no:qt/qt-doc-staging:
  Update the supported platforms page.
  Increase qdoc3 stack size when using MSVC to 4M.

11 years agoMerge branch 'master' of scm.dev.nokia.troll.no:qt/qt-earth-staging into master-integ...
Qt Continuous Integration System [Mon, 14 Nov 2011 21:39:23 +0000 (07:39 +1000)]
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-earth-staging into master-integration

* 'master' of scm.dev.nokia.troll.no:qt/qt-earth-staging:
  network auto tests: add QNetworkReply test for pipelining
  HTTP: blacklist server for pipelining

11 years agoMerge branch 'master' of scm.dev.nokia.troll.no:qt/qt-fire-staging into master-integr...
Qt Continuous Integration System [Mon, 14 Nov 2011 17:42:13 +0000 (03:42 +1000)]
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-fire-staging into master-integration

* 'master' of scm.dev.nokia.troll.no:qt/qt-fire-staging:
  Remove font that may not exists in some OS X systems
  Fix regression in styleName searching
  Fix styleName listing with the same QtFontStyle::Key value
  Fix localized font family access in OS X

11 years agonetwork auto tests: add QNetworkReply test for pipelining
Peter Hartmann [Mon, 14 Nov 2011 16:11:00 +0000 (17:11 +0100)]
network auto tests: add QNetworkReply test for pipelining

Reviewed-by: Markus Goetz
Task-number: QTBUG-21369

11 years agoHTTP: blacklist server for pipelining
Peter Hartmann [Mon, 14 Nov 2011 15:21:38 +0000 (16:21 +0100)]
HTTP: blacklist server for pipelining

that server was found out not to support HTTP pipelining.

tested manually; for more information see the task.

Reviewed-by: Markus Goetz
Task-number: QTBUG-21369

11 years agoRevert "Improved performance of mapFromGlobal/mapToGlobal on X11"
Friedemann Kleint [Mon, 14 Nov 2011 15:26:15 +0000 (16:26 +0100)]
Revert "Improved performance of mapFromGlobal/mapToGlobal on X11"

The change introduces problems with Unity's global menu bar.

Task-number: QTBUG-22420

Reviewed-by: denis <denis.dzyubenko@nokia.com>
This reverts commit cdd776a91e65bf5c30cea1bab9823134a3f797d0.

11 years agoFix QDockWidget titlebar button positioning on Mac OS X
Pasi Matilainen [Mon, 14 Nov 2011 14:39:25 +0000 (15:39 +0100)]
Fix QDockWidget titlebar button positioning on Mac OS X

Move the QDockWidget close and float buttons from the right end of the
dock widget title bar to the left end to avoid Mac App Store rejection.

Task-number: QTBUG-19493

Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
11 years agoFixed memory leak in Windows Vista style widgets
Tero Ahola [Mon, 14 Nov 2011 14:27:01 +0000 (15:27 +0100)]
Fixed memory leak in Windows Vista style widgets

The animations are now deleted in destruction of the Vista style.
With the previous implementation the animations were not deleted for
instance if you move mouse cursor off from a widget with hover
animation (like QPushButton).

Task-number: QTBUG-21532

Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
11 years agoUpdate the supported platforms page.
Casper van Donderen [Mon, 14 Nov 2011 14:00:55 +0000 (15:00 +0100)]
Update the supported platforms page.

Windows XP, Win7 32-bit and Mac 106 Cocoa were missing from the
supported platforms table.

11 years agoIncrease qdoc3 stack size when using MSVC to 4M.
Casper van Donderen [Mon, 14 Nov 2011 12:18:07 +0000 (13:18 +0100)]
Increase qdoc3 stack size when using MSVC to 4M.

When running 'make docs' on Win7 with MSVC2010 64bit debug qdoc will
crash from a stack overflow. The stack overflow occurs when sorting the
list of nodes in the internal qdoc tree.

This patch circumvents the stack overflow crash by increasing the stack
size from the standard 1M to 4M.

Reviewed-by: Friedemann Kleint
11 years agoMerge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into master-integration
Qt Continuous Integration System [Mon, 14 Nov 2011 09:34:38 +0000 (19:34 +1000)]
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into master-integration

* 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1:
  Fix for QMessageBox's autotest.
  Fix for the button size calculation in qmessagebox.cpp

11 years agoFix for QMessageBox's autotest.
Mikko Knuutila [Mon, 14 Nov 2011 09:18:22 +0000 (10:18 +0100)]
Fix for QMessageBox's autotest.

Mnemonic shortcut caused string comparison to fail.

Task-number: QTBUG-22119

Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
11 years agoFix for the button size calculation in qmessagebox.cpp
Mikko Knuutila [Mon, 14 Nov 2011 09:18:21 +0000 (10:18 +0100)]
Fix for the button size calculation in qmessagebox.cpp

Actually use the calculated size for needed space instead of just
ignoring the return value.

Task-number: QTBUG-16315

Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
11 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt-fire-team
Qt Continuous Integration System [Sun, 13 Nov 2011 12:31:13 +0000 (22:31 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt-fire-team

* 'master' of git://scm.dev.nokia.troll.no/qt/qt-fire-team:
  Remove font that may not exists in some OS X systems

11 years agoRemove font that may not exists in some OS X systems
Jiang Jiang [Sun, 13 Nov 2011 12:29:38 +0000 (13:29 +0100)]
Remove font that may not exists in some OS X systems

11 years agoMerge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into master-integration
Qt Continuous Integration System [Sat, 12 Nov 2011 18:03:55 +0000 (04:03 +1000)]
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into master-integration

* 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1:
  Fixed wrong QGroupBox check state
  Added base 10 to be used with QIntValidator.
  Mac: Fix the color of check marks in menus with stylesheet
  Russian translation update
  Don't directly access QList contents
  Fix QPlainTextEdit when using Qt::TextSelectableByKeyboard flag

11 years agoMerge branch 'master' of scm.dev.nokia.troll.no:qt/qt-air-staging into master-integration
Qt Continuous Integration System [Sat, 12 Nov 2011 09:40:38 +0000 (19:40 +1000)]
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-air-staging into master-integration

* 'master' of scm.dev.nokia.troll.no:qt/qt-air-staging:
  Re-apply change e3208a8d44423bc3b5c32e2e90f68675e51a3b73 by Andreas Kling
  Re-apply change 37cde52cb17b57f8ec89c248f06331ed4977e51c by Ademar de Souza Reis Jr
  Re-apply change 945c44d0865cf44363e6c860995f971ce952dd5f by Ademar de Souza Reis Jr
  Updated WebKit to 52a11cec052aa40d3bbc06861be1177b649b4a99

11 years agoMerge branch 'master' of scm.dev.nokia.troll.no:qt/qt-earth-staging into master-integ...
Qt Continuous Integration System [Sat, 12 Nov 2011 01:43:06 +0000 (11:43 +1000)]
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-earth-staging into master-integration

* 'master' of scm.dev.nokia.troll.no:qt/qt-earth-staging:
  Fix crash in QHttpNetworkReplyPrivate::gunzipBodyPartiallyEnd
  Fix warning when using QXmlInputSource with non opened QIODevice
  HTTP proxy engine - accept standard Connection header

11 years agoMerge branch 'master' of scm.dev.nokia.troll.no:qt/qt-doc-staging into master-integration
Qt Continuous Integration System [Fri, 11 Nov 2011 17:53:07 +0000 (03:53 +1000)]
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-doc-staging into master-integration

* 'master' of scm.dev.nokia.troll.no:qt/qt-doc-staging:
  Update supported platforms and remove commercial page.
  qdoc3: Replace %REPLACEME% with the correct path

11 years agoMerge branch 'master' of scm.dev.nokia.troll.no:qt/qt-symbian-staging into master...
Qt Continuous Integration System [Fri, 11 Nov 2011 13:48:47 +0000 (23:48 +1000)]
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-symbian-staging into master-integration

* 'master' of scm.dev.nokia.troll.no:qt/qt-symbian-staging:
  Fix memory leak in QCursorData
  Create cleanup stack in idleDetectorThread

11 years agoFixed wrong QGroupBox check state
Markku Heikkila [Fri, 11 Nov 2011 13:35:23 +0000 (14:35 +0100)]
Fixed wrong QGroupBox check state

Handle mouserelease only if mouse is pressed in QGroupBox.

Task-number: QTBUG-19170

Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
11 years agoAdded base 10 to be used with QIntValidator.
Mikko Knuutila [Fri, 11 Nov 2011 13:15:29 +0000 (14:15 +0100)]
Added base 10 to be used with QIntValidator.

Fixes an error in QIntValidator, which occurred because
locale.toInt() was missing a parameter for base value and this
led it to presume wrongly that a base 8 is in use.

Task-number: QTBUG-21602

Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
11 years agoMerge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7-integration
Qt Continuous Integration System [Fri, 11 Nov 2011 12:39:08 +0000 (22:39 +1000)]
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7-integration

* '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1:
  Fix crash in QHttpNetworkReplyPrivate::gunzipBodyPartiallyEnd

11 years agoFix crash in QHttpNetworkReplyPrivate::gunzipBodyPartiallyEnd
Sami Rosendahl [Fri, 11 Nov 2011 12:29:38 +0000 (13:29 +0100)]
Fix crash in QHttpNetworkReplyPrivate::gunzipBodyPartiallyEnd

If a HTTP server responds with gzip-encoded empty content without defining
Content-Length in the response header QHttpNetworkReplyPrivate::gunzipBodyPartiallyEnd
will crash because it calls zlib inflateEnd for an uninitialized stream.

- Fixed the crash by adding a check if the stream is initialized to gunzipBodyPartiallyEnd.
- Added a regression test tst_QNetworkReply::nb279420gzipNoContentLengthEmptyContentDisconnect

PMO 279420
Task-number: QTBUG-22660

Signed-off-by: Sami Rosendahl <sami.rosendahl@reaktor.fi>
Merge-request: 1465
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
11 years agoFix crash in QHttpNetworkReplyPrivate::gunzipBodyPartiallyEnd
Sami Rosendahl [Fri, 11 Nov 2011 12:17:54 +0000 (13:17 +0100)]
Fix crash in QHttpNetworkReplyPrivate::gunzipBodyPartiallyEnd

If a HTTP server responds with gzip-encoded empty content without defining
Content-Length in the response header QHttpNetworkReplyPrivate::gunzipBodyPartiallyEnd
will crash because it calls zlib inflateEnd for an uninitialized stream.

- Fixed the crash by adding a check if the stream is initialized to gunzipBodyPartiallyEnd.
- Added a regression test tst_QNetworkReply::nb279420gzipNoContentLengthEmptyContentDisconnect

PMO 279420
Task-number: QTBUG-22660

Signed-off-by: Sami Rosendahl <sami.rosendahl@reaktor.fi>
Merge-request: 1465
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
11 years agoMac: Fix the color of check marks in menus with stylesheet
Tero Ahola [Fri, 11 Nov 2011 12:03:02 +0000 (13:03 +0100)]
Mac: Fix the color of check marks in menus with stylesheet

Task-number: QTBUG-16989

Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Morten Johan Sorvig <morten.sorvig@nokia.com>
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
11 years agoFix warning when using QXmlInputSource with non opened QIODevice
Shane Kearns [Thu, 10 Nov 2011 17:16:25 +0000 (17:16 +0000)]
Fix warning when using QXmlInputSource with non opened QIODevice

Calling setTextModeEnabled on a QIODevice that is not open generates
a warning as a result of QTBUG-20905. Previously, it caused incorrect
behaviour when called with true.
Now only call it if the QIODevice passed in is already opened.
If not open, then it is opened by the xml reader without text mode,
so there is no difference in behaviour.

xml autotests still pass, although this removes several QWARN messages
from the qdom autotest.

Task-number: QTBUG-22659
Change-Id: Ie3137e44fe776bff6371ebd008428110168717ec
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
(cherry picked from commit d457f148cf1efbea3db5fdc87c418cc9647e2baf)

11 years agoHTTP proxy engine - accept standard Connection header
Shane Kearns [Wed, 26 Oct 2011 13:45:50 +0000 (14:45 +0100)]
HTTP proxy engine - accept standard Connection header

The Proxy-Connection header is a non standard header, but is widely
used so forming a de-facto standard.
Some proxies use the official Connection header, so we should check
for that in responses. Otherwise https connections over http proxy
fail in case the proxy sends "Connection: close" with the 407 reply.

Task-number: QTBUG-22177
Change-Id: If6cfa4ebb7ac9d97d65b6ddcc8257aee20ac0448
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
(cherry picked from commit 0ad18e18d1223b173d4a0d374b70ec08c3b22b11)

11 years agoRussian translation update
Sergey Belyashov [Fri, 11 Nov 2011 11:27:43 +0000 (12:27 +0100)]
Russian translation update

Merge-request: 2715
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoDon't directly access QList contents
Alberto Mardegan [Fri, 11 Nov 2011 11:10:22 +0000 (12:10 +0100)]
Don't directly access QList contents

The existing code doesn't work on 64bit machines. We must first convert
the list into a QVector, which guarantees that elements are laid out
correctly as an array.

Merge-request: 1467
Reviewed-by: thiago
11 years agoFix QPlainTextEdit when using Qt::TextSelectableByKeyboard flag
jahonkon [Fri, 11 Nov 2011 09:59:47 +0000 (10:59 +0100)]
Fix QPlainTextEdit when using Qt::TextSelectableByKeyboard flag

It is not possible to select text with keyboard when specifying only
Qt::TextSelectableByKeyboard flag.

Task-number: QTBUG-18952

Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
11 years agoMerge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into master-integration
Qt Continuous Integration System [Fri, 11 Nov 2011 09:29:51 +0000 (19:29 +1000)]
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into master-integration

* 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1:
  Fix QDateEdit calendar pop-up having wrong date

11 years agoFix QDateEdit calendar pop-up having wrong date
jahonkon [Fri, 11 Nov 2011 09:07:42 +0000 (10:07 +0100)]
Fix QDateEdit calendar pop-up having wrong date

When the calendar pops up it moves the date to maximum instead of
keeping the current date. Problem was caused by QCalendarPopup
signalling date change to QDateTimeEdit during internal date
synchronization from QDateTimeEdit to QCalendarPopup.

Task-number: QTBUG-11422

Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@nokia.com>
11 years agoMerge branch 'master' of scm.dev.nokia.troll.no:qt/qt-tools-staging into master-integ...
Qt Continuous Integration System [Fri, 11 Nov 2011 01:47:00 +0000 (11:47 +1000)]
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-tools-staging into master-integration

* 'master' of scm.dev.nokia.troll.no:qt/qt-tools-staging:
  fix gdb_dwarf_index.prf for applications, take two
  fix gdb_dwarf_index.prf for executables

11 years agoMerge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into master-integration
Qt Continuous Integration System [Thu, 10 Nov 2011 21:58:21 +0000 (07:58 +1000)]
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into master-integration

* 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1:
  Repaint QProgressBar when minimum or maximum changed
  Fix QProgressBar causing timer event spam
  Compile fix for Mac OS X 10.7 with 10.6 sdk

11 years agoMerge branch 'master' of scm.dev.nokia.troll.no:qt/qt-earth-staging into master-integ...
Qt Continuous Integration System [Thu, 10 Nov 2011 17:55:27 +0000 (03:55 +1000)]
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-earth-staging into master-integration

* 'master' of scm.dev.nokia.troll.no:qt/qt-earth-staging:
  networking: regenerate effective TLD table for cookies
  QNAM: Fix authentication cache when the password is in the URL

11 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt-doc-team
Qt Continuous Integration System [Thu, 10 Nov 2011 17:06:28 +0000 (03:06 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt-doc-team

* 'master' of git://scm.dev.nokia.troll.no/qt/qt-doc-team:
  Update supported platforms and remove commercial page.

11 years agoRepaint QProgressBar when minimum or maximum changed
Tero Ahola [Thu, 10 Nov 2011 15:40:47 +0000 (16:40 +0100)]
Repaint QProgressBar when minimum or maximum changed

The implementation of QProgressBar::setMinimum and setMaximum did not
repaint the widget. This caused the widget to be shown incorrectly in
case you call setMinimum or setMaximum but not setValue.

Task-number: QTBUG-22121

Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
11 years agoFix QProgressBar causing timer event spam
Tero Ahola [Thu, 10 Nov 2011 15:24:14 +0000 (16:24 +0100)]
Fix QProgressBar causing timer event spam

On Windows you will get a lot of timer events if you use QProgressBar
widget. This is because QWindowsStyle uses a timer to animate a
progress bar with unknown state (min and max values both zero). The
issue was fixed by starting the timer only if needed.

Task-number: QTBUG-10501

Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
11 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt-symbian-team
Qt Continuous Integration System [Thu, 10 Nov 2011 14:48:56 +0000 (00:48 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt-symbian-team

* 'master' of git://scm.dev.nokia.troll.no/qt/qt-symbian-team:
  Fix memory leak in QCursorData

11 years agoMerge branch 'master' of scm.dev.nokia.troll.no:qt/qt-fire-staging into master-integr...
Qt Continuous Integration System [Thu, 10 Nov 2011 13:05:20 +0000 (23:05 +1000)]
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-fire-staging into master-integration

* 'master' of scm.dev.nokia.troll.no:qt/qt-fire-staging:
  Fix to QtOpenGL crash on Symbian

11 years agoFix memory leak in QCursorData
Miikka Heikkinen [Thu, 10 Nov 2011 11:50:11 +0000 (13:50 +0200)]
Fix memory leak in QCursorData

QCursorData::cleanup() was never called on Symbian.

Task-number: QTBUG-22643
Reviewed-by: Murray Read
11 years agofix gdb_dwarf_index.prf for applications, take two
Joerg Bornemann [Thu, 10 Nov 2011 11:43:51 +0000 (12:43 +0100)]
fix gdb_dwarf_index.prf for applications, take two

Handle the case of an empty DESTDIR.

Done-with: ossi

11 years agoCompile fix for Mac OS X 10.7 with 10.6 sdk
Andy Shaw [Thu, 10 Nov 2011 10:36:04 +0000 (11:36 +0100)]
Compile fix for Mac OS X 10.7 with 10.6 sdk

Since it is an example it is cleaner to just include the header file
as it will be available on other platforms anyway.  Also ensured that
the Qt includes were first before the system ones.

Task-number: QTBUG-22641

Merge-request: 1462
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt-fire-team
Qt Continuous Integration System [Thu, 10 Nov 2011 10:12:01 +0000 (20:12 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt-fire-team

* 'master' of git://scm.dev.nokia.troll.no/qt/qt-fire-team:
  Fix regression in styleName searching
  Fix styleName listing with the same QtFontStyle::Key value
  Fix localized font family access in OS X

11 years agoUpdate supported platforms and remove commercial page.
Casper van Donderen [Thu, 10 Nov 2011 09:59:15 +0000 (10:59 +0100)]
Update supported platforms and remove commercial page.

The supported platforms page conatined a lot of platforms that are
untested for Qt 4.8, so those are removed. The platform notes had not
been updated since 2009 and were therefore severely outdated.

Nokia does not provide a commercial edition of Qt anymore. A user can
find the link to purchasing Qt through the Qt Developer Network at
http://developer.qt.nokia.com

11 years agonetworking: regenerate effective TLD table for cookies
Peter Hartmann [Wed, 9 Nov 2011 16:26:27 +0000 (17:26 +0100)]
networking: regenerate effective TLD table for cookies

Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
11 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt-symbian-team
Qt Continuous Integration System [Thu, 10 Nov 2011 09:02:26 +0000 (19:02 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt-symbian-team

* 'master' of git://scm.dev.nokia.troll.no/qt/qt-symbian-team:
  Create cleanup stack in idleDetectorThread

11 years agoMerge remote-tracking branch 'flex/master'
Pasi Pentikainen [Thu, 10 Nov 2011 08:57:49 +0000 (10:57 +0200)]
Merge remote-tracking branch 'flex/master'

11 years agoMerge branch 'master' of scm.dev.nokia.troll.no:qt/qt-symbian-staging into master...
Qt Continuous Integration System [Thu, 10 Nov 2011 08:55:14 +0000 (18:55 +1000)]
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-symbian-staging into master-integration

* 'master' of scm.dev.nokia.troll.no:qt/qt-symbian-staging:
  WINSCW def file update so that qtgui can pick up virtual from qtcore
  Add mobile-reduced ts-files for Symbian.
  Preventing zero-timer lockups when Symbian's active scheduler used
  Fix memory leak in S60Style
  Improve whatlog generation for Symbian tools2 builds.

11 years agofix gdb_dwarf_index.prf for executables
Joerg Bornemann [Wed, 9 Nov 2011 17:59:46 +0000 (18:59 +0100)]
fix gdb_dwarf_index.prf for executables

Unlike for libraries, $(TARGET) already contains $(DESTDIR).
Changing to $(DESTDIR) does break the command in that case.

Reviewed-by: ossi
11 years agoRe-apply change e3208a8d44423bc3b5c32e2e90f68675e51a3b73 by Andreas Kling
Andreas Kling [Thu, 22 Sep 2011 12:48:44 +0000 (14:48 +0200)]
Re-apply change e3208a8d44423bc3b5c32e2e90f68675e51a3b73 by Andreas Kling

Sentences should end with a period! (Poor man's rebuild trigger.)

11 years agoRe-apply change 37cde52cb17b57f8ec89c248f06331ed4977e51c by Ademar de Souza Reis Jr
Ademar de Souza Reis Jr [Tue, 20 Sep 2011 14:12:04 +0000 (11:12 -0300)]
Re-apply change 37cde52cb17b57f8ec89c248f06331ed4977e51c by Ademar de Souza Reis Jr

Workaround MSVC2010 problems when linking QtWebKit
Include MSVC2010 in the list of compilers where incremental
build is disabled (INCREMENTAL:NO).

Change suggested by Simo Falt <simo.falt@nokia.com>

11 years agoRe-apply change 945c44d0865cf44363e6c860995f971ce952dd5f by Ademar de Souza Reis Jr
Ademar de Souza Reis Jr [Mon, 19 Sep 2011 13:43:14 +0000 (10:43 -0300)]
Re-apply change 945c44d0865cf44363e6c860995f971ce952dd5f by Ademar de Souza Reis Jr

dos2unix on a webkit source file (fix support for Visual Studio)
webkit/Source/WebCore/bindings/js/JSExceptionBase.h had CRLF
terminations, which Visual Studio didn't like for some reason.

Reported by Simo Falt. Patch is also being submited to upstream
(webkit.org)

11 years agoUpdated WebKit to 52a11cec052aa40d3bbc06861be1177b649b4a99
Zeno Albisser [Wed, 9 Nov 2011 16:01:09 +0000 (17:01 +0100)]
Updated WebKit to 52a11cec052aa40d3bbc06861be1177b649b4a99

11 years agoFix regression in styleName searching
Jiang Jiang [Wed, 9 Nov 2011 15:06:55 +0000 (16:06 +0100)]
Fix regression in styleName searching

1. Faked styles should have styleNames as well otherwise we couldn't
   find them.

2. With a QtFontFoundry mixed with style keys and style names, there
   is no way to sort them in a manner than binary search will work,
   we have to use linear search instead.

11 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt-symbian-team
Qt Continuous Integration System [Wed, 9 Nov 2011 11:47:50 +0000 (21:47 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt-symbian-team

* 'master' of git://scm.dev.nokia.troll.no/qt/qt-symbian-team:
  WINSCW def file update so that qtgui can pick up virtual from qtcore
  Add mobile-reduced ts-files for Symbian.
  Preventing zero-timer lockups when Symbian's active scheduler used

11 years agoWINSCW def file update so that qtgui can pick up virtual from qtcore
mread [Wed, 9 Nov 2011 11:22:09 +0000 (11:22 +0000)]
WINSCW def file update so that qtgui can pick up virtual from qtcore

QtGui needs the QEventDispatcherSymbian::reactivateDeferredActiveObjects
virtual to be exported from QtCore

Task-number: QTTH-1494
Reviewed-by: Shane Kearns