qt5base-lts/src
Giuseppe D'Angelo 3578e05b29 Merge QStyleOption*V{2,3,4} classes together
In order to keep binary compatibility, Qt 4 introduced V{2,3,4}
classes for QStyleOption subclasses. They're simple, low level
containers for various members with public access (no accessors
required).

In Qt 5.0 we can break BC, so this patch moves the members
from the derived classes into the ``base'' ones.
The ``base'' ones get a version bump matching the highest
version available, and the V{2,3,4} classes become typedefs.

This change can cause problems in code that used QStyleOption
directly, especially QStyleOptionViewItem, because the old V4
fields get default initialization but the QStyle subclasses
detect that the option is a V4 option and expect all fields
to be properly initialized. The fix in such places is to
properly initialize all fields.

Task-number: QTBUG-23522
Change-Id: I2f782da09ca5cc8c4cbafc07448fb0d33153a251
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
2012-02-02 20:18:55 +01:00
..
3rdparty Remove Symbian specific code in 3rdparty. 2012-02-01 19:06:18 +01:00
corelib Build with QT_NO_CAST_FROM_BYTEARRAY 2012-02-02 17:18:46 +01:00
dbus Revert "Put the generated <module>version.h into build tree" 2012-02-01 10:48:09 +01:00
gui Improve QSurface / QWindow API a bit and use that to avoid errors 2012-02-02 17:20:24 +01:00
modules Remove dependency of QtDBus onto QtXml 2012-01-22 22:10:02 +01:00
network Fix unintended source compatiblity break in QSslSocket 2012-02-02 17:11:37 +01:00
opengl Revert "Put the generated <module>version.h into build tree" 2012-02-01 10:48:09 +01:00
platformsupport Move QString <-> NSString conversion to QtCore 2012-02-02 14:18:36 +01:00
plugins Windows QPA: Compile with QT_NO_CAST_FROM_ASCII, warnings. 2012-02-02 17:16:26 +01:00
printsupport Windows: Fix inclusion of <windows.h> 2012-02-01 11:06:19 +01:00
sql Various documentation fixes ported from Qt 4.8 2012-02-02 16:03:30 +01:00
testlib Revert "Put the generated <module>version.h into build tree" 2012-02-01 10:48:09 +01:00
tools QtDebug: Include file, line, function information 2012-02-01 02:16:32 +01:00
widgets Merge QStyleOption*V{2,3,4} classes together 2012-02-02 20:18:55 +01:00
winmain Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
xml Revert "Put the generated <module>version.h into build tree" 2012-02-01 10:48:09 +01:00
qbase.pri Moved common module profiles to be feature profiles. 2011-06-05 14:47:14 +02:00
qt_install.pri Moved common module profiles to be feature profiles. 2011-06-05 14:47:14 +02:00
qt_targets.pri Moved common module profiles to be feature profiles. 2011-06-05 14:47:14 +02:00
src.pro Remove dependency of QtDBus onto QtXml 2012-01-22 22:10:02 +01:00