profile/ivi/qtbase.git
13 years agoFix for compiling and running cube example on Windows.
Kim Motoyoshi Kalland [Wed, 25 May 2011 15:03:59 +0000 (17:03 +0200)]
Fix for compiling and running cube example on Windows.

Change-Id: I0bf933fe81e332c03a81874cb371fa423634621b
Reviewed-on: http://codereview.qt.nokia.com/125
Reviewed-by: David Boddie
13 years agoFix QGLWidget::renderPixmap for raster engine on Mac
Jiang Jiang [Wed, 11 May 2011 14:56:24 +0000 (16:56 +0200)]
Fix QGLWidget::renderPixmap for raster engine on Mac

The QPixmap buffer is backed by QRasterPixmapData instead of
QMacPixmapData for the raster engine, thus we have to update
qt_mac_pixmap_get_base() and qt_mac_pixmap_get_bytes_per_line(),
so that QGLWidget can locate the offscreen buffer from a QPixmap.

Reviewed-by: Fabien Freling
(cherry picked from commit c5846314dfd80e7f7f32ba737f1884dcccbbd80d)

Change-Id: I2414222f8a59e02c778177d52ad9a6e0ff68668d
Reviewed-on: http://codereview.qt.nokia.com/123
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
13 years agoWorkaround a bug in Core Text to select Light fonts
Jiang Jiang [Mon, 16 May 2011 08:20:54 +0000 (10:20 +0200)]
Workaround a bug in Core Text to select Light fonts

Currently in Core Text there is not proper way to select fonts with
Light weight, for example:
QFont font("Helvetica"); font.setWeight(QFont::Light);
will give you Helvetica-Light, as with:
QFont font("Helvetica"); font.setWeight(QFont::Normal);
because of a bug in Core Text, applying 0 symbolic traits with
CTFontCreateCopyWithSymbolicTraits will always return the Light
variant of that font family. Thus, we should only do this unless
symbolicTraits is not 0 or font.weight is not Normal (Light is not
a symbolic trait, but CT doesn't support selecting Light weight
numerically).

Reviewed-by: Eskil
(cherry picked from commit 4d5b8f66d82e9087d9d58a4e76e6b46ce7bb53cc)

Change-Id: I37a970aba5019a13b9f3bc43b7fb594b74a1aa37
Reviewed-on: http://codereview.qt.nokia.com/124
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
13 years agoAdd authentication token support for wayland windows
Lasse Holmstedt [Wed, 25 May 2011 09:24:37 +0000 (11:24 +0200)]
Add authentication token support for wayland windows

For compositors that support it, the wayland clients can associate themselves
with an auth token, specified by WL_AUTHENTICATION_TOKEN env var, or by
directly specifying it in the wayland client plugin.

Change-Id: I74a50a27c7c61c2b2cf1e09868618f36edc94cb1
Reviewed-by: Samuel Rødal
Reviewed-on: http://codereview.qt.nokia.com/116
Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
13 years agoFix QFontEngineX11FT compilation
Jiang Jiang [Wed, 25 May 2011 09:21:53 +0000 (11:21 +0200)]
Fix QFontEngineX11FT compilation

xglyph_format is only available when XRender is present.

Reviewed-by: Fabien Freling
(cherry picked from commit a6642e4659b3d45ffa94f9a3c6413124d49f2b91)

Change-Id: Ibd767c5055c8fb4a7d28ace141f6713f4367d1ba
Reviewed-on: http://codereview.qt.nokia.com/113
Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
13 years agoDoc: Fixing typo
Sergio Ahumada [Wed, 25 May 2011 12:29:28 +0000 (14:29 +0200)]
Doc: Fixing typo

Change-Id: Icd73646a9562af5fd6ae56e36ca268719d32471c
Reviewed-on: http://codereview.qt.nokia.com/112
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
13 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging
Qt Continuous Integration System [Wed, 25 May 2011 07:12:22 +0000 (17:12 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging

* 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging:
  Compile.

13 years agoCompile.
Morten Sorvig [Wed, 25 May 2011 07:08:09 +0000 (09:08 +0200)]
Compile.

Change 0748751c brought in an extra copy of this
function.

13 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging
Qt Continuous Integration System [Wed, 25 May 2011 06:03:24 +0000 (16:03 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging

* 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging:
  Do not continue if syncqt fails.

13 years agoDo not continue if syncqt fails.
Lincoln Ramsay [Wed, 25 May 2011 05:55:53 +0000 (15:55 +1000)]
Do not continue if syncqt fails.

If the user has set QTDIR to something other than the location of the
qtbase build directory, syncqt will fail.

This change prevents the build from continuing. Ideally, the system
should ignore the user-set QTDIR value or give an appropriate error.

Reviewed-by: Rohan McGovern
13 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging
Qt Continuous Integration System [Wed, 25 May 2011 02:44:57 +0000 (12:44 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging

* 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging:
  Fix -nomake tests.

13 years agoFix -nomake tests.
Lincoln Ramsay [Wed, 25 May 2011 02:40:25 +0000 (12:40 +1000)]
Fix -nomake tests.

It now means "don't run qmake", not just "don't build".
This is consistent with -nomake demos and -nomake examples

Reviewed-by: Rohan Mcgovern
13 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging
Qt Continuous Integration System [Tue, 24 May 2011 15:11:52 +0000 (01:11 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging

* 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging: (21 commits)
  Fixed line endings.
  Update licenseheader text in source files for qtbase Qt module
  New configure.exe binary
  Add -qpa option on Windows
  Use qglobal.h's VERSION number instead of hardcoded current version
  More examples adjusted to Symbian and Maemo5. (cherry picked from commit a97b9620a584c9b1a2e006873183526b3d7e001e)
  Doc: Added some details to the accessibility events API documentation.
  Doc: Fixed qdoc warnings.
  Doc: Fixed qdoc warnings.
  Doc: Made an additional change for clarity.
  Doc: Noted that the example will not work as expected with a mouse.
  Doc: Fixed qdoc warnings.
  Doc: Applying a pending change from previous merges.
  Doc: Fixed qdoc warning.
  Doc: Fixed qdoc warnings.
  Doc: Applied pending fixes to API documentation.
  Doc: Various fixes to documentation, some based on changes in master.
  Doc: Added missing project and desktop files.
  Doc: Documented the value returned when no field can be found.
  Squashed commit of changes from the 4.8-temp branch.
  ...

13 years agoFixed line endings.
David Boddie [Thu, 28 Apr 2011 17:04:16 +0000 (19:04 +0200)]
Fixed line endings.

Conflicts:

examples/widgets/applicationicon/applicationicon.svg
examples/widgets/applicationicon/main.cpp
examples/widgets/elidedlabel/elidedlabel.cpp
examples/widgets/elidedlabel/elidedlabel.h
examples/widgets/elidedlabel/main.cpp
examples/widgets/elidedlabel/testwidget.cpp
examples/widgets/elidedlabel/testwidget.h
(cherry picked from commit 1b555a91f05b68c697b6985d1b672dc0fba5fc5a)
(cherry picked from commit c0e0bfdd451f42b10051e8064153b811080ffa0e)

13 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-earth-staging
Qt Continuous Integration System [Tue, 24 May 2011 11:43:46 +0000 (21:43 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-earth-staging

* 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-earth-staging:
  QUrl auto test: include core-private headers
  QUrl TLD: fix documentation file for "Add QUrl::topLevelDomain() ..."
  Add QUrl::topLevelDomain() and move TLD table from QtNetwork to QtCore

13 years agoQUrl auto test: include core-private headers
Peter Hartmann [Tue, 24 May 2011 11:34:03 +0000 (13:34 +0200)]
QUrl auto test: include core-private headers

... for the newly introduced TLD test.

Task-number: QTBUG-13601

13 years agoQUrl TLD: fix documentation file for "Add QUrl::topLevelDomain() ..."
Peter Hartmann [Tue, 24 May 2011 10:05:10 +0000 (12:05 +0200)]
QUrl TLD: fix documentation file for "Add QUrl::topLevelDomain() ..."

see previous commit

Task-number: QTBUG-13601
(cherry picked from commit 9face4b88de2db6f552149d2f96257620e971a59)

13 years agoAdd QUrl::topLevelDomain() and move TLD table from QtNetwork to QtCore
Robert Hogan [Tue, 24 May 2011 09:04:27 +0000 (11:04 +0200)]
Add QUrl::topLevelDomain() and move TLD table from QtNetwork to QtCore

Move Qt's copy of the Mozilla public suffix list from QtNetwork
to QtCore and use it to expose a new API function QUrl::topLevelDomain().
This function returns the section of the url that is a registrar-controlled
top level domain.

QtCore now exports a couple of functions to the other Qt modules: qTopLevelDomain,
a helper function for QUrl::topLevelDomain(); and qIsEffectiveTLD(), a helper
function for QNetworkCookeieJar.

The motivation for this new API is to allow QtWebKit implement a Third-Party
Cookie blocking policy. For this QtWebKit needs to know the element of the url
that is the registry-controlled TLD. Without this knowledge it would end up
blocking third-party cookies per host rather than per registry-controlled domain.

See also https://bugs.webkit.org/show_bug.cgi?id=45455

Merge-request: 1205
Task-number: QTBUG-13601
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
(cherry picked from commit 154402f56dcf8303a6ce601a52215226af8d31ba)

13 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-earth-staging
Qt Continuous Integration System [Tue, 24 May 2011 10:01:46 +0000 (20:01 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-earth-staging

* 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-earth-staging:
  fix Symbian ordinals for merge request re. utf8 characters in SSL certs

13 years agoUpdate licenseheader text in source files for qtbase Qt module
Jyri Tahtela [Tue, 24 May 2011 09:34:08 +0000 (12:34 +0300)]
Update licenseheader text in source files for qtbase Qt module

Updated version of LGPL and FDL licenseheaders.
Apply release phase licenseheaders for all source files.

Reviewed-by: Trust Me
13 years agofix Symbian ordinals for merge request re. utf8 characters in SSL certs
Peter Hartmann [Tue, 24 May 2011 08:29:01 +0000 (10:29 +0200)]
fix Symbian ordinals for merge request re. utf8 characters in SSL certs

Task-number: QTBUG-7912
(cherry picked from commit 83c37059df7f23be482d4ecb2c54603a3665a33d)

13 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-earth-staging
Qt Continuous Integration System [Mon, 23 May 2011 15:59:03 +0000 (01:59 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-earth-staging

* 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-earth-staging:
  add auto test for SSL certificates containing utf8 characters
  fix coding style for merge request re. utf8 characters in SSL certs
  Use OpenSSL X509_NAME_ENTRY API to parse UTF8 subjectName/issuerName

13 years agoadd auto test for SSL certificates containing utf8 characters
Pierre Rossi [Mon, 21 Mar 2011 17:15:01 +0000 (18:15 +0100)]
add auto test for SSL certificates containing utf8 characters

Task-number: QTBUG-7912
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
(cherry picked from commit 19c77b5e5e5fefedafcfbd587c3fbb4114d7c641)

13 years agofix coding style for merge request re. utf8 characters in SSL certs
Pierre Rossi [Tue, 1 Feb 2011 10:29:13 +0000 (11:29 +0100)]
fix coding style for merge request re. utf8 characters in SSL certs

fixes minor coding issues for
"Use OpenSSL X509_NAME_ENTRY API to parse UTF8 subjectName/issuerName"

Task-number: QTBUG-7912
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
(cherry picked from commit 2e8d206fd9f656cd88b797c059ef83ed3df32881)

13 years agoUse OpenSSL X509_NAME_ENTRY API to parse UTF8 subjectName/issuerName
Raul Metsma [Wed, 4 May 2011 15:40:15 +0000 (17:40 +0200)]
Use OpenSSL X509_NAME_ENTRY API to parse UTF8 subjectName/issuerName

... to be able to display non-ASCII names from subject and issuerInfo.

Task-number: QTBUG-7912
Merge-request: 922
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
(cherry picked from commit e5d94256be2525c24a8b61edd771662b7f2b8be3)

13 years agoNew configure.exe binary
Marius Storm-Olsen [Mon, 23 May 2011 14:24:19 +0000 (09:24 -0500)]
New configure.exe binary

13 years agoAdd -qpa option on Windows
Marius Storm-Olsen [Mon, 23 May 2011 14:19:56 +0000 (09:19 -0500)]
Add -qpa option on Windows

Done-by: owolff
Done-by: Friedemann Kleint
13 years agoUse qglobal.h's VERSION number instead of hardcoded current version
Marius Storm-Olsen [Mon, 23 May 2011 14:11:59 +0000 (09:11 -0500)]
Use qglobal.h's VERSION number instead of hardcoded current version

Done-by: Friedemann Kleint
13 years agoMore examples adjusted to Symbian and Maemo5.
David Boddie [Mon, 23 May 2011 13:10:51 +0000 (15:10 +0200)]
More examples adjusted to Symbian and Maemo5.
(cherry picked from commit a97b9620a584c9b1a2e006873183526b3d7e001e)

13 years agoDoc: Added some details to the accessibility events API documentation.
David Boddie [Thu, 19 May 2011 12:26:36 +0000 (14:26 +0200)]
Doc: Added some details to the accessibility events API documentation.

Reviewed-by: Frederik Gladhorn
13 years agoDoc: Fixed qdoc warnings.
David Boddie [Thu, 12 May 2011 18:24:33 +0000 (20:24 +0200)]
Doc: Fixed qdoc warnings.

13 years agoDoc: Fixed qdoc warnings.
David Boddie [Wed, 11 May 2011 16:36:31 +0000 (18:36 +0200)]
Doc: Fixed qdoc warnings.

13 years agoDoc: Made an additional change for clarity.
David Boddie [Wed, 11 May 2011 13:03:52 +0000 (15:03 +0200)]
Doc: Made an additional change for clarity.

Task-number: QT-4891

13 years agoDoc: Noted that the example will not work as expected with a mouse.
David Boddie [Wed, 11 May 2011 12:41:24 +0000 (14:41 +0200)]
Doc: Noted that the example will not work as expected with a mouse.

Task-number: QT-4891

13 years agoDoc: Fixed qdoc warnings.
David Boddie [Wed, 11 May 2011 12:36:34 +0000 (14:36 +0200)]
Doc: Fixed qdoc warnings.

13 years agoDoc: Applying a pending change from previous merges.
David Boddie [Wed, 11 May 2011 12:35:09 +0000 (14:35 +0200)]
Doc: Applying a pending change from previous merges.

13 years agoDoc: Fixed qdoc warning.
David Boddie [Wed, 11 May 2011 12:25:36 +0000 (14:25 +0200)]
Doc: Fixed qdoc warning.

13 years agoDoc: Fixed qdoc warnings.
David Boddie [Wed, 11 May 2011 12:19:37 +0000 (14:19 +0200)]
Doc: Fixed qdoc warnings.

13 years agoDoc: Applied pending fixes to API documentation.
David Boddie [Tue, 10 May 2011 17:52:50 +0000 (19:52 +0200)]
Doc: Applied pending fixes to API documentation.

13 years agoDoc: Various fixes to documentation, some based on changes in master.
David Boddie [Tue, 10 May 2011 17:50:33 +0000 (19:50 +0200)]
Doc: Various fixes to documentation, some based on changes in 

13 years agoDoc: Added missing project and desktop files.
David Boddie [Tue, 10 May 2011 17:37:39 +0000 (19:37 +0200)]
Doc: Added missing project and desktop files.

13 years agoDoc: Documented the value returned when no field can be found.
David Boddie [Mon, 9 May 2011 19:08:59 +0000 (21:08 +0200)]
Doc: Documented the value returned when no field can be found.

Task-number: QTBUG-19115

13 years agoSquashed commit of changes from the 4.8-temp branch.
David Boddie [Wed, 11 May 2011 15:35:46 +0000 (17:35 +0200)]
Squashed commit of changes from the 4.8-temp branch.

13 years agoSquashed commit of the changes from the mobile-examples repository
David Boddie [Wed, 27 Apr 2011 17:16:41 +0000 (19:16 +0200)]
Squashed commit of the changes from the mobile-examples repository
(4.7-generated-declarative branch).

13 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging
Qt Continuous Integration System [Mon, 23 May 2011 11:47:55 +0000 (21:47 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging

* 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging:
  Enablers for TextInput

13 years agoEnablers for TextInput
Eskil Abrahamsen Blomfeldt [Mon, 9 May 2011 07:07:02 +0000 (09:07 +0200)]
Enablers for TextInput

In order to use the scene graph text node in TextInput, we
need enablers. Most of this is to enable selections,
which in turn means we need to be able to extract a certain
set of glyphs from a QTextLine.

13 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging
Qt Continuous Integration System [Mon, 23 May 2011 11:07:48 +0000 (21:07 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging

* 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging:
  Track Wayland changes

13 years agoTrack Wayland changes
Paul Olav Tvete [Mon, 23 May 2011 10:29:54 +0000 (12:29 +0200)]
Track Wayland changes

The wl_display_get_xxxx_visual() functions have been removed, and
are replaced by a compositor event.

Reviewed-by: Samuel
13 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging
Qt Continuous Integration System [Mon, 23 May 2011 07:26:39 +0000 (17:26 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging

* 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging:
  Add task numbers for disabled autotests

13 years agoAdd task numbers for disabled autotests
Jason McDonald [Mon, 23 May 2011 07:19:55 +0000 (17:19 +1000)]
Add task numbers for disabled autotests

Change-Id: I830cdbf60ad1edf554b19cd7e6fdbd459f3e160f
Reviewed-by: Trust Me
13 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging
Qt Continuous Integration System [Sat, 21 May 2011 13:57:00 +0000 (23:57 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging

* 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging:
  add qmltestcase.prf for QtQuickTest

13 years agoadd qmltestcase.prf for QtQuickTest
Charles Yin [Sat, 21 May 2011 13:50:14 +0000 (23:50 +1000)]
add qmltestcase.prf for QtQuickTest

so that 'CONFIG += qmltestcase' works

13 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging
Qt Continuous Integration System [Fri, 20 May 2011 12:04:01 +0000 (22:04 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging

* 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging:
  Fix inconsistency between Qt and ICU in Shift-JIS codec with regards to ASCII range

13 years agoFix inconsistency between Qt and ICU in Shift-JIS codec with regards to ASCII range
Simon Hausmann [Mon, 16 May 2011 12:04:31 +0000 (14:04 +0200)]
Fix inconsistency between Qt and ICU in Shift-JIS codec with regards to ASCII range

Qt's Shift-JIS codec maps the characters 0x5c and 0x7e to unicode yen (0x5a)
and unicode overline (0x203e). ICU and (as it turns out) Symbian's native
Shift-JIS codec preserve 0x5c and 0x7e when converting to Unicode.

Qt's behaviour creates a problem when loading japanese web sites that are
encoded in Shift-JIS. When they reference external JavaScript files, those tend
to inherit the current page encoding (unless the character set is explicitly
specified). Consequently JavaScript tends to contain regular expressions (as a
built-in feature of the language), which in turn uses backslashes for escape
sequences. Therefore it is crucial that the encodings used to decode the script
preserve the ASCII range, i.e. do not convert 0x5c (ascii backslash) to
something else.

This patch corrects the behaviour of Qt's Shift-JIS codec to leave all
characters < 0x80 unaltered in the process of conversion to and from
Unicode.

Task: QTBUG-19335

Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
(cherry picked from commit 8e321cd869da7ff1cf0168da41aa0246b44867cc)

13 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging
Qt Continuous Integration System [Fri, 20 May 2011 10:36:27 +0000 (20:36 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging

* 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging:
  add test case for ipv6 url parsing

13 years agoadd test case for ipv6 url parsing
shiroki [Fri, 20 May 2011 08:38:12 +0000 (10:38 +0200)]
add test case for ipv6 url parsing

Reviewed-by: Thiago
(cherry picked from commit fd043eb78212de5935bc101624818070e1b4fb1b)

13 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging
Qt Continuous Integration System [Fri, 20 May 2011 09:18:56 +0000 (19:18 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging

* 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging:
  tst_qhostinfo: Fix IPv6 lookup detection on Windows.
  Fix incorrect hardware address on systems without getifaddrs()
  Make QHostAddress.toString() follow RFC-5952 for IPv6 address format.

13 years agotst_qhostinfo: Fix IPv6 lookup detection on Windows.
Martin Petersson [Fri, 20 May 2011 08:04:18 +0000 (10:04 +0200)]
tst_qhostinfo: Fix IPv6 lookup detection on Windows.

Moved the QTcpServer test to init winsock before we use getaddrinfo.

Reviewed-by: Shane Kearns
(cherry picked from commit 0ccf01368adcabbb25958a55976083f72116a2d5)

13 years agoFix incorrect hardware address on systems without getifaddrs()
Craig Scott [Wed, 11 May 2011 06:51:28 +0000 (16:51 +1000)]
Fix incorrect hardware address on systems without getifaddrs()

On unix systems for which QT_NO_GETIFADDRS is defined, the way that the
hardware address field is extracted from the result of a call to
qt_safe_ioctl() is incorrect. The address of the ifreq.ifr_addr struct
is taken rather than the appropriate member within that struct, sa_data,
resulting in a memory offset and subsequently the hardware address has
garbage in the first two of six fields. This commit modifies the code
to pass the sa_data member instead of the address of the struct as a
whole.

Task-number: QTBUG-19165
Merge-request: 2614
Reviewed-by: Martin Petersson
(cherry picked from commit 004ad12669ef696eeba70fd57d1eb0c67c806d1d)

13 years agoMake QHostAddress.toString() follow RFC-5952 for IPv6 address format.
Martin Petersson [Fri, 6 May 2011 11:00:53 +0000 (13:00 +0200)]
Make QHostAddress.toString() follow RFC-5952 for IPv6 address format.

Task-number: QTBUG-18426
Reviewed-by: Peter Hartmann
(cherry picked from commit ebc134db484eee31491836b619aad1ee86e3070e)

13 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging
Qt Continuous Integration System [Fri, 20 May 2011 08:21:33 +0000 (18:21 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging

* 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging:
  Designer: Extend container extension.

13 years agoDesigner: Extend container extension.
Friedemann Kleint [Fri, 20 May 2011 08:10:32 +0000 (10:10 +0200)]
Designer: Extend container extension.

Make it possible to disable adding/removing pages by
adding respective bool virtual functions.

Useful for implementing containers with fixed, single
children like QScrollArea, QDockWidget, which require
a container extension to work properly in Qt Designer.
Previously, the problem was that the add/remove
page context menu actions were enabled for them,
leading to crashes und undesired behaviour.

Reviewed-by: Jarek Kobus <jaroslaw.kobus@nokia.com>
13 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging
Qt Continuous Integration System [Fri, 20 May 2011 02:18:56 +0000 (12:18 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging

* 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging:
  Allow arthur tests to use private headers.

13 years agoAllow arthur tests to use private headers.
Jason McDonald [Fri, 20 May 2011 01:11:11 +0000 (11:11 +1000)]
Allow arthur tests to use private headers.

The tests include qapplication_p.h, therefore the .pro files need to
specify
    QT += core-private gui-private

Change-Id: Icd6d7ba31f79b8c7b15e0327dd5ce44c7f486221
Reviewed-by: Rohan McGovern
13 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging
Qt Continuous Integration System [Fri, 20 May 2011 01:39:07 +0000 (11:39 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging

* 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging:
  Remove mention of qt3support in makeselftest
  Remove Qt3Support test data from lancelot test
  Remove Qt3Support code from algorithms autotest
  Don't link qt3support lib in QMessageBox autotest

13 years agoRemove mention of qt3support in makeselftest
Jason McDonald [Thu, 19 May 2011 07:53:26 +0000 (17:53 +1000)]
Remove mention of qt3support in makeselftest

Change-Id: Ie081d3a543ff30e3e58e154cbfea57a29bb24210
Task-number: QTBUG-19325
Reviewed-by: Rohan McGovern
13 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging
Qt Continuous Integration System [Fri, 20 May 2011 00:37:23 +0000 (10:37 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging

* 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging:
  Remove Qt3Support code from QVariant autotest.
  Remove obsolete test data
  Remove Qt3Support code from QMenuBar test, part 2.

13 years agoRemove Qt3Support test data from lancelot test
Jason McDonald [Thu, 19 May 2011 06:33:48 +0000 (16:33 +1000)]
Remove Qt3Support test data from lancelot test

The data was already commented out and thus unused.

Change-Id: I234cea542bbacf429b6cb1fc0c9feec4f80e47e5
Task-number: QTBUG-19325
Reviewed-by: Rohan McGovern
13 years agoRemove Qt3Support code from algorithms autotest
Jason McDonald [Thu, 19 May 2011 06:23:00 +0000 (16:23 +1000)]
Remove Qt3Support code from algorithms autotest

qHeapSort and qBubbleSort were Qt3 functions that were replaced by
qSort.  During modularization, the Qt3Support header containing these
routines (q3tl.h) was moved into the algorithms autotest, presumably
because that was the only thing that still included the header.
However, as these routines are not part of Qt5, they don't need to be
tested anymore.  This commit deletes the q3tl.h header and the test
functions that tested it.

Change-Id: I52eed7b4b4db3bd671dc6dbd752642bc9e783c30
Task-number: QTBUG-19325
Reviewed-by: Rohan McGovern
13 years agoDon't link qt3support lib in QMessageBox autotest
Jason McDonald [Thu, 19 May 2011 05:38:30 +0000 (15:38 +1000)]
Don't link qt3support lib in QMessageBox autotest

Change-Id: I0126dc790e88639ad524cdf719ced2a444df9b71
Task-number: QTBUG-19325
Reviewed-by: Rohan McGovern
13 years agoRemove Qt3Support code from QVariant autotest.
Jason McDonald [Thu, 19 May 2011 05:33:36 +0000 (15:33 +1000)]
Remove Qt3Support code from QVariant autotest.

This commit removes the four columns of test data that were only used
for testing Qt3Support features.

Change-Id: I93116b64ac49b0d6812595dfd58962ba8afbdad1
Task-number: QTBUG-19325
Reviewed-by: Rohan McGovern
13 years agoRemove obsolete test data
Jason McDonald [Thu, 19 May 2011 05:12:27 +0000 (15:12 +1000)]
Remove obsolete test data

Remove test data for Qt3Support functions from the QTextStream autotest.
The code that used this data was removed in an earlier commit.

Change-Id: I26e34cdefd47287c6992cf1d31276a40994c607c
Task-number: QTBUG-19325
Reviewed-by: Rohan McGovern
13 years agoRemove Qt3Support code from QMenuBar test, part 2.
Jason McDonald [Thu, 19 May 2011 04:22:14 +0000 (14:22 +1000)]
Remove Qt3Support code from QMenuBar test, part 2.

Follow-up to previous commit: remove the "_noQt3" suffixes on test
function names and the "_Qt4" suffixes on variable names.

Change-Id: I000e87357b025930b0065efc1d0de05c2cd07bba
Task-number: QTBUG-19325
Reviewed-by: Rohan McGovern
13 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging
Qt Continuous Integration System [Thu, 19 May 2011 19:03:02 +0000 (05:03 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging

* 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging:
  New configure.exe binary

13 years agoNew configure.exe binary
Marius Storm-Olsen [Thu, 19 May 2011 18:41:57 +0000 (13:41 -0500)]
New configure.exe binary

13 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging
Qt Continuous Integration System [Thu, 19 May 2011 17:08:34 +0000 (03:08 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging

* 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging:
  Full translucent background support in xcb and xlib backend.
  Lighthouse xcb and xlib: Add support for transparency of GLX windows.
  Lighthouse minimal: Add support for transparency
  Compile fixes for Xlib plugin.

13 years agoFull translucent background support in xcb and xlib backend.
Samuel Rødal [Thu, 19 May 2011 14:18:21 +0000 (16:18 +0200)]
Full translucent background support in xcb and xlib backend.

Make sure to pick an alpha visual also for non-GL surface types, and to
ask for alpha in the window format if the WA_TranslucentBackground
attribute is set.

Reviewed-by: Janusz Lewandowski
(cherry picked from commit 6241e39cff9311c943430ff2f31236b13618f2ac)

13 years agoLighthouse xcb and xlib: Add support for transparency of GLX windows.
Janusz Lewandowski [Thu, 19 May 2011 14:21:40 +0000 (16:21 +0200)]
Lighthouse xcb and xlib: Add support for transparency of GLX windows.

Merge-request: 1231
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
(cherry picked from commit a3b627e1c5ce03a2500ab35c64729b1995639dcc)

13 years agoLighthouse minimal: Add support for transparency
Janusz Lewandowski [Thu, 19 May 2011 14:21:39 +0000 (16:21 +0200)]
Lighthouse minimal: Add support for transparency

Merge-request: 1231
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
(cherry picked from commit c15b41056e60abdbb4d835e27a360f01be618a4f)

13 years agoCompile fixes for Xlib plugin.
Samuel Rødal [Thu, 19 May 2011 12:58:18 +0000 (14:58 +0200)]
Compile fixes for Xlib plugin.

(cherry picked from commit 4af11f2c6666c55657569f946c33816f33711225)

13 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging
Qt Continuous Integration System [Thu, 19 May 2011 14:58:20 +0000 (00:58 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging

* 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging:
  Don't crash if windowmanager is not initialized
  Compile fix for 64bit Linux.

13 years agoDon't crash if windowmanager is not initialized
Lasse Holmstedt [Thu, 19 May 2011 14:30:44 +0000 (16:30 +0200)]
Don't crash if windowmanager is not initialized

This can happen if there is e.g. no wayland server.

Reviewed-by: sroedal
(cherry picked from commit aea5e35f57d061b133d2fa613d10f5e0118f5706)

13 years agoCompile fix for 64bit Linux.
Friedemann Kleint [Thu, 19 May 2011 14:27:29 +0000 (16:27 +0200)]
Compile fix for 64bit Linux.

Reviewed-by: Thiago <thiago.macieira@nokia.com>
13 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging
Qt Continuous Integration System [Thu, 19 May 2011 14:23:38 +0000 (00:23 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging

* 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging:
  Tests: Fix some compile warnings.

13 years agoTests: Fix some compile warnings.
Friedemann Kleint [Thu, 19 May 2011 14:19:01 +0000 (16:19 +0200)]
Tests: Fix some compile warnings.

As they are now compiled by default.

13 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging
Qt Continuous Integration System [Thu, 19 May 2011 12:53:06 +0000 (22:53 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging

* 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging:
  Wayland: send surface id + process id pairs to compositor

13 years agoWayland: send surface id + process id pairs to compositor
Lasse Holmstedt [Thu, 19 May 2011 11:55:12 +0000 (13:55 +0200)]
Wayland: send surface id + process id pairs to compositor

This enables doing window/process management since we can now
actually map the process we've launched to a window.

Reviewed-by: Samuel Rødal
(cherry picked from commit 457c33d9fd308542c9290fd60bf86960f9251255)

13 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging
Qt Continuous Integration System [Thu, 19 May 2011 11:55:04 +0000 (21:55 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging

* 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging:
  Remove warning from QColor::setNamedColor().

13 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging
Qt Continuous Integration System [Thu, 19 May 2011 11:21:09 +0000 (21:21 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging

* 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging:
  Fixed compile of qdrawhelper_neon.cpp.

13 years agoRemove warning from QColor::setNamedColor().
Samuel Rødal [Fri, 6 May 2011 13:23:43 +0000 (15:23 +0200)]
Remove warning from QColor::setNamedColor().

This warning is pointless as the user can anyway check if the color is
valid after making the call by calling isValid(). Using isValidColor()
could be used but it has a big performance overhead as validation then
needs to be done twice.

Task-number: QTBUG-19098
Reviewed-by: Erik Verbruggen
(cherry picked from commit a423ff5474b89028eeca95b254f5184311c8223b)

13 years agoFixed compile of qdrawhelper_neon.cpp.
Samuel Rødal [Thu, 19 May 2011 08:45:50 +0000 (10:45 +0200)]
Fixed compile of qdrawhelper_neon.cpp.

We need to use the quad-word intrinsic and reinterpret the cast to
a signed int vector.

Reviewed-by: Kim Motoyoshi Kalland <kim.kalland@nokia.com>
(cherry picked from commit d2d7aef223a3bad368c6b7c7f7f4617f4acf323c)

13 years agoMerge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging
Qt Continuous Integration System [Thu, 19 May 2011 10:04:29 +0000 (20:04 +1000)]
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging

* 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging:
  Compile IPC tests.
  Always call XInitThreads.
  Remove redundant #ifdef's from benchmarks
  Improve coding style of qdatastream test
  Don't use Qt3Support in arthur test suite.
  Remove Qt3Support code from QMenuBar autotest
  Remove Qt3Support code from QSplitter autotest
  Remove Qt3Support code from QSharedPointer autotest
  Remove Qt3Support code from QComboBox autotest
  Remove Qt3Support test code from accessibility autotest
  tests: allow unstable tests to be marked with CONFIG+=insignificant_test

13 years agoCompile IPC tests.
Friedemann Kleint [Thu, 19 May 2011 07:42:17 +0000 (09:42 +0200)]
Compile IPC tests.

13 years agoAlways call XInitThreads.
Gunnar Sletta [Thu, 19 May 2011 06:34:52 +0000 (08:34 +0200)]
Always call XInitThreads.

Any Qt application that embeds a QSGView needs to call this
because of the threaded renderer. Today applications that
use threaded GL silently fail. In a few weeks time, the
refactor branch will be merged, which will obsolete this
change, so it is a temporary measure to get tests and
examples running.

13 years agoRemove redundant #ifdef's from benchmarks
Jason McDonald [Wed, 18 May 2011 07:55:57 +0000 (17:55 +1000)]
Remove redundant #ifdef's from benchmarks

Preprocessor directives that refer to QT_VERSION's less than Qt 5 are
redundant in the qt5 modules.

Change-Id: Id3a9c5f0ba07b72d1c99e51c12a240570bf0d58e
Reviewed-by: Rohan McGovern
13 years agoImprove coding style of qdatastream test
Jason McDonald [Thu, 19 May 2011 03:54:19 +0000 (13:54 +1000)]
Improve coding style of qdatastream test

Expand literal tabs and format switch statements in accordance with the
Qt Coding Style.

Change-Id: I64e638b730f4be2bc707136b1b7e5585d6808731
Reviewed-by: Rohan McGovern
13 years agoDon't use Qt3Support in arthur test suite.
Jason McDonald [Tue, 17 May 2011 02:04:02 +0000 (12:04 +1000)]
Don't use Qt3Support in arthur test suite.

Change-Id: I5acc05aeb7db5aedbbe35594f46d614319a299b2
Task-number: QTBUG-19325
Reviewed-by: Rohan McGovern
13 years agoRemove Qt3Support code from QMenuBar autotest
Jason McDonald [Wed, 18 May 2011 06:57:36 +0000 (16:57 +1000)]
Remove Qt3Support code from QMenuBar autotest

Change-Id: I63677bfe56ec92c1c96e2df5619ee434bdc91fdb
Task-number: QTBUG-19325
Reviewed-by: Rohan McGovern
13 years agoRemove Qt3Support code from QSplitter autotest
Jason McDonald [Tue, 17 May 2011 03:59:13 +0000 (13:59 +1000)]
Remove Qt3Support code from QSplitter autotest

Note that the functions suffixed with a 3 were actually the Qt4
versions, which is why this patch looks strange.

Change-Id: Iec874153248f57b8696a289cb13eb60fecc5699c
Task-number: QTBUG-19325
Reviewed-by: Rohan McGovern
13 years agoRemove Qt3Support code from QSharedPointer autotest
Jason McDonald [Tue, 17 May 2011 03:56:55 +0000 (13:56 +1000)]
Remove Qt3Support code from QSharedPointer autotest

Change-Id: I1bb3752e3a5101e4a2990d0cac01406e6023ee2e
Task-number: QTBUG-19325
Reviewed-by: Rohan McGovern