profile/ivi/qtbase.git
12 years agoFlag tst_qgraphicsview as insignificant, test are unstable.
Toby Tomkins [Thu, 12 Jan 2012 03:09:28 +0000 (13:09 +1000)]
Flag tst_qgraphicsview as insignificant, test are unstable.

Some of these test have had unstable results for multiple runs.
QTBUG_4151_clipAndIgnore and QTBUG_16063_microFocusRect seem to be the
unstable tests.

Task-number: QTBUG-16063
Task-number: QTBUG-4151

Change-Id: Idd108197c327446080dbd69dfe5c5fba6b2944cd
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoTest that the CMAKE_AUTOMOC feature works with Qt5.
Stephen Kelly [Tue, 10 Jan 2012 05:08:09 +0000 (06:08 +0100)]
Test that the CMAKE_AUTOMOC feature works with Qt5.

Update the wrapper macro which had bitrotted a bit.

Change-Id: I65c7940f9ebc0e1c963fddd2bbfc06b89e66df04
Reviewed-by: Alexander Neundorf <neundorf@kde.org>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
12 years agoEnsure proper locking in QFileInfoGatherer
Bradley T. Hughes [Wed, 11 Jan 2012 11:47:07 +0000 (12:47 +0100)]
Ensure proper locking in QFileInfoGatherer

The mutex is used to protect the QFileSystemWatcher instance created by
QFileInfoGatherer, except when calling getFileInfos(). Add a locker
before using QFileSystemWatcher in this function.

Note: it appears that QFileInfoGatherer is misusing QFileSystemWatcher
by calling it from multiple threads. QFileSystemWatcher is an event
driven class, and as such, not thread-safe. So far, no problems have
been reported related to this, so I've left the code as-is.

Change-Id: Ib1429d9399e37120acf8e8d3b989b83c4ce24203
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
12 years agoRemove unnecessary QMutexes in QFileSystemWatcher implementations
Bradley T. Hughes [Wed, 11 Jan 2012 08:00:41 +0000 (09:00 +0100)]
Remove unnecessary QMutexes in QFileSystemWatcher implementations

The polling, inotify, and kqueue implementations are no longer threaded,
and as such, do not need mutexes to protect their internal data (since
QFileSystemWatcher itself is not documented as a thread-safe API).

The Windows implementation is unchanged as it uses multiple threads
explicitly.

Change-Id: Ia82510397e576bf704ce3aed3d776b58b39f7ff3
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
12 years agoAvoid races when destroying QFileSystemWatcher
Bradley T. Hughes [Wed, 11 Jan 2012 11:42:50 +0000 (12:42 +0100)]
Avoid races when destroying QFileSystemWatcher

On Mac OS X, socket notifiers need to be disabled/destroyed before
closing their associated file descriptor, otherwise we cause races
inside the CFSocket system. The documentation for CFSocketInvalidate()
says that we close the file descriptor after calling this function when
the kCFSocketCloseOnInvalidate flag is explicitly cleared
(QCocoaEventDispatcher clears this flag).

Do the same on the Linux inotify watcher as well, for symmetry.

Change-Id: I5592cc4bb5be4b752e48d895a685d3c92826acc7
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
12 years agoWindows: Adapt cross mkspec for MinGW / gcc 4.6.
Mark Brand [Tue, 10 Jan 2012 23:26:22 +0000 (00:26 +0100)]
Windows: Adapt cross mkspec for MinGW / gcc 4.6.

4.6 becomes the minimum required version in Qt 5.

This commit follows f6c61d13a3e166fc9280e8bfe8325cead335d0da.

Change-Id: I151cd5ae63f076c4aa766bc5c9b9fb4d8fcd4f79
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoFixed QOpenGLShader::log().
Kim Motoyoshi Kalland [Wed, 11 Jan 2012 09:38:48 +0000 (10:38 +0100)]
Fixed QOpenGLShader::log().

log() returned an empty string because the compile log was stored
in a local variable rather than the member variable.

Change-Id: I60142fd0bccfcbb495cea430b583f81fb0241329
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoDocs: Forward-ported typo and link fixes from Qt 4.8
Janne Anttila [Wed, 11 Jan 2012 13:55:08 +0000 (15:55 +0200)]
Docs: Forward-ported typo and link fixes from Qt 4.8

This commit brings already accepted doc fixes to Qt5.

Task-number: QTBUG-9224
Task-number: QTBUG-13442
Task-number: QTBUG-19858
Task-number: QTBUG-21447

Change-Id: I2ebc7c3e74427545367bdcec51e9e710a4925747
Merge-request: 1402
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoQStyleHelper: Base DPI-calculation on QScreen.
Friedemann Kleint [Wed, 11 Jan 2012 10:49:35 +0000 (11:49 +0100)]
QStyleHelper: Base DPI-calculation on QScreen.

- Use qt_defaultDpiX() to obtain the resolution, which
  obtains it from QScreen. This implies that for X11,
  which previously used a hardcoded default of 96 DPI,
  the real resolution will be used (typically 75).

- Since many tests (layouts, graphicsview) contain
  test data for 96 DPI, add an attribute to
  QCoreApplication making it possible to set the
  resolution to 96 DPI for testing.

Change-Id: I77c8233a96b0d75de07406f58d48886a89c3de06
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoRemove unused QT_NO_TEXTSTREAM.
David Faure [Wed, 11 Jan 2012 10:15:03 +0000 (11:15 +0100)]
Remove unused QT_NO_TEXTSTREAM.

It was checked in a few places, but it didn't actually remove QTextStream,
so it was pretty useless.

Change-Id: I8eaf28893cd6c7acbe1c0b69d58de90742aee755
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
12 years agoqlocalsocket_win.cpp: Fix compiler warning.
Friedemann Kleint [Wed, 11 Jan 2012 10:30:47 +0000 (11:30 +0100)]
qlocalsocket_win.cpp: Fix compiler warning.

Change-Id: Ibdb57f99b98b0c603be3c9be043737687034a958
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Jonas Gastal <jgastal@profusion.mobi>
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agoAdd QModelIndex as a built-in metatype.
Stephen Kelly [Tue, 10 Jan 2012 13:46:34 +0000 (14:46 +0100)]
Add QModelIndex as a built-in metatype.

Change-Id: Ib87cfff8b4baee78189f3df5e20d2e1a00d690e1
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
12 years agoDon't enable V8's snapshot feature when building inside scratchbox for ARM
Tor Arne Vestbø [Tue, 10 Jan 2012 13:24:59 +0000 (14:24 +0100)]
Don't enable V8's snapshot feature when building inside scratchbox for ARM

It will result in QEMU crashing.

Change-Id: Ie2f607b6335ae0d08b9a6d67acc22ea666bcd780
Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
12 years agoFix Q_ASSERT_X to handle QT_FORCE_ASSERTS
Harald Fernengel [Wed, 11 Jan 2012 12:27:12 +0000 (13:27 +0100)]
Fix Q_ASSERT_X to handle QT_FORCE_ASSERTS

This change aligns the behavior of Q_ASSERT and Q_ASSERT_X

Change-Id: Iac9f399da6462fcf70826d3ce1177522bed9f897
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
12 years agoInput direction/locale to come from platform input context
Pekka Vuorela [Thu, 5 Jan 2012 16:03:49 +0000 (18:03 +0200)]
Input direction/locale to come from platform input context

Change-Id: Ib049693211a08dcffc9dbe49add54e7feab38978
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
12 years agoMake QAccessibleInterface::indexOfChild() 0-based.
Frederik Gladhorn [Mon, 9 Jan 2012 12:13:33 +0000 (13:13 +0100)]
Make QAccessibleInterface::indexOfChild() 0-based.

Makes the code nicer and more consistent with the rest of the world.

Change-Id: I5ba0ee39f5b0afd1a079a3cea9990d123955ed3f
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
12 years agoAdd support for accessibility actions.
Morten Johan Sorvig [Tue, 10 Jan 2012 10:54:54 +0000 (11:54 +0100)]
Add support for accessibility actions.

Match Cocoa and Qt actions manually. Some have no
corresponding action on the other side.

Change-Id: I775cb8987ab843bd88d57d856ef7c0403290db00
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
12 years agoAdd methods for font stretch and absolute letter spacing
C. Boemann [Mon, 2 Jan 2012 13:42:57 +0000 (14:42 +0100)]
Add methods for font stretch and absolute letter spacing

We basicaly just rely on the methods in QFont

Change-Id: Iaf8cbf4d90d0c5b10b3a85983de7ca58763e0371
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
12 years agoRemove universal build support from configure.
Morten Sorvig [Tue, 27 Sep 2011 12:39:48 +0000 (14:39 +0200)]
Remove universal build support from configure.

Qt 5 will support single-arch builds only, for two
reasons:
1) PPC is very deprecated at this point, x86_64
   is becoming standard.
2) V8 only supports single arch builds.

As a workaround, build twice and use lipo to
create universal binaries.

This commit also removes the -cocoa and -carbon
options.

Change-Id: I428f096a02f59ec2b3e693150e0e08358198de83
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
12 years agoRemove redundant parameter from qVariantToHelper.
Jędrzej Nowacki [Mon, 5 Dec 2011 14:52:13 +0000 (15:52 +0100)]
Remove redundant parameter from qVariantToHelper.

Change-Id: I3664a74eb8602651547c0c80dc4f628f909d97b4
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
12 years agoChanged selftests unittest to not fail but warn when valgrind not installed.
Kurt Korbatits [Tue, 10 Jan 2012 03:46:12 +0000 (13:46 +1000)]
Changed selftests unittest to not fail but warn when valgrind not installed.

- Changed to detect valgrind at runtime and skip test instead of failing.
- subprograms inherit QT_QPA_PLATFORM value from parent if set.

Change-Id: I280acee389df1ee74ee6758a0dd1601226e103c7
Reviewed-by: Kurt Korbatits <kurt.korbatits@nokia.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
12 years agoChanged selftests unittest to work from installation directory.
Kurt Korbatits [Tue, 10 Jan 2012 00:38:51 +0000 (10:38 +1000)]
Changed selftests unittest to work from installation directory.

- All subprograms installed as part of test instead of separate installs
- Added installTestHelperApp() to testcase.prf

Change-Id: I02fbbb299f095054c9216ad0e5f91f574fb0fe3d
Reviewed-by: Kurt Korbatits <kurt.korbatits@nokia.com>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoMake modules find their own dependencies.
Stephen Kelly [Tue, 10 Jan 2012 04:30:31 +0000 (05:30 +0100)]
Make modules find their own dependencies.

Change-Id: I4a7b96d33417a15d79f3932ced91bee58915c83f
Reviewed-by: Alexander Neundorf <neundorf@kde.org>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
12 years agoMatch the name in the cpp file
Albert Astals Cid [Tue, 10 Jan 2012 14:32:51 +0000 (15:32 +0100)]
Match the name in the cpp file

Which is actually the name Lars wanted i just forgot to fix it everywhere

Change-Id: Iaa190da6c17d0a423c34202c986d69feec01af96
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoIntroduce a QVariant themeHint() to QPlatformTheme.
Friedemann Kleint [Mon, 9 Jan 2012 14:36:02 +0000 (15:36 +0100)]
Introduce a QVariant themeHint() to QPlatformTheme.

Start on removing platform-specific code from QtWidgets.

Change-Id: Ic2163a0ce6f2db2151cdf7ca93766b2d861eeb55
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoDocument enum value QAccessible::Expandable.
Frederik Gladhorn [Mon, 9 Jan 2012 20:05:09 +0000 (21:05 +0100)]
Document enum value QAccessible::Expandable.

Change-Id: I5280bf3eadf7ef876f89de318a4d6168078d929e
Reviewed-by: Geir Vattekar <geir.vattekar@nokia.com>
12 years agoAccessibility docs: interfaces: value/action/text.
Frederik Gladhorn [Mon, 9 Jan 2012 19:57:44 +0000 (20:57 +0100)]
Accessibility docs: interfaces: value/action/text.

Change-Id: Ic57305cf9c008c8e861c1bdc66886b43d78c2d76
Reviewed-by: Geir Vattekar <geir.vattekar@nokia.com>
12 years agoImprove Accessibility documentation 2.
Frederik Gladhorn [Mon, 9 Jan 2012 18:15:13 +0000 (19:15 +0100)]
Improve Accessibility documentation 2.

More cleanup, make sure links work.

Change-Id: If72f9cfc0d44aa1fb261be2aace8ddd457295993
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
12 years agouse "cp -R" instead of "cp -r" for *bsd compatibility
Mark Brand [Mon, 21 Nov 2011 07:56:19 +0000 (08:56 +0100)]
use "cp -R" instead of "cp -r" for *bsd compatibility

Change-Id: Ib013e2d36645a782249b543ec9301902484a7708
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoTests: Remove duplicate QTRY_VERIFY/QTRY_COMPARE macros in bearer.
Friedemann Kleint [Tue, 10 Jan 2012 09:13:55 +0000 (10:13 +0100)]
Tests: Remove duplicate QTRY_VERIFY/QTRY_COMPARE macros in bearer.

Introduce QTRY_VERIFY_WITH_TIMEOUT and QTRY_COMPARE_WITH_TIMEOUT
to be able to specify a timeout value.

Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Change-Id: Iaeaa4938eb14f2c431537055f626510cba183ce3
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agotst_qgraphicsivew: Run Motif scrollbar range tests only at 96DPI.
Friedemann Kleint [Tue, 10 Jan 2012 11:16:33 +0000 (12:16 +0100)]
tst_qgraphicsivew: Run Motif scrollbar range tests only at 96DPI.

Preparing the introduction of a change that uses the actual
QScreen resolution in the style helper.

Change-Id: I3fbb36b0d6a34904c875a2e3684d73124f534bed
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoFix QWidget::saveGeometry().
Friedemann Kleint [Tue, 10 Jan 2012 14:58:31 +0000 (15:58 +0100)]
Fix QWidget::saveGeometry().

Bring back code that was accidentally removed.

Change-Id: Ie1a4d22caa206bc8bb8e678879935e79009e9622
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoRemove thread from QFileSystemWatcherEngine implementations.
Robin Burchell [Thu, 29 Dec 2011 22:56:27 +0000 (23:56 +0100)]
Remove thread from QFileSystemWatcherEngine implementations.

These threads are actually counterproductive, as generally speaking, processing
watches is not that expensive an operation, so instead, they process at full
speed and can (in the case of slow processing in the thread processing the
events) stack up and consume resources for no good reason.

Threads also have an additional resource consumption per engine (some ~8mb of
thread stack on Linux), so doing away with them is nice.

A side effect of this change is that events are now effectively rate-limited by
the eventloop speed of the thread they run in, so if your thread runs too slow,
and you recieve a lot of events, on some platforms, events may be dropped now
where in the past, they would be read by the monitor thread and turned into Qt
signals (thus not visibly showing as a problem, apart from invisibly bloating
memory usage).

Task-number: QTBUG-20028
Change-Id: I345a56a8c709f6f778ca9a0b55b57c05229ba477
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
12 years agoQMap => QHash
Oswald Buddenhagen [Mon, 9 Jan 2012 18:25:44 +0000 (19:25 +0100)]
QMap => QHash

this should make the evaluator quite a lot faster. the total win for
qtbase/src is only 6%, though.

i made some effort to avoid that output files get randomized. however, i
didn't bother to keep debug output sorted.

Change-Id: Id9cef4674c0153c11ebbb65cb63bf8c229eb56e3
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoDon't use check as an identifier in the configure app.
Stephen Kelly [Mon, 9 Jan 2012 18:03:48 +0000 (19:03 +0100)]
Don't use check as an identifier in the configure app.

Avoids conflict with macro on Mac OS.

Change-Id: I3426c2dc514240d80996d823b7a552c13a09f99e
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoRename internal method check to doCheck
Stephen Kelly [Mon, 9 Jan 2012 12:01:23 +0000 (13:01 +0100)]
Rename internal method check to doCheck

Mac OSX has a check macro in /usr/include/AssertMacros.h which can
conflict with this API if used together.

http://boost.2283326.n4.nabble.com/Boost-with-Darwin-Mac-gcc-4-0-1-td2580330.html

Change-Id: I93ddd08fa2b51b198bbc02ce501d79ed97a32c34
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoAdd defines for explicit virtual overrides.
Stephen Kelly [Sun, 8 Jan 2012 18:58:43 +0000 (19:58 +0100)]
Add defines for explicit virtual overrides.

Change-Id: Ia9a610e81eeaaa0a08ca6ef4945b002bdb13fe8a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoMake the supportedDragActions a virtual accessor.
Stephen Kelly [Fri, 6 Jan 2012 07:02:19 +0000 (08:02 +0100)]
Make the supportedDragActions a virtual accessor.

Change-Id: I4001fcabc67e5b46465b3c9111c33247c52e5788
Reviewed-by: David Faure <faure@kde.org>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: David Faure <david.faure@kdab.com>
12 years agoFix a crash in QDialog.
Friedemann Kleint [Tue, 10 Jan 2012 13:57:16 +0000 (14:57 +0100)]
Fix a crash in QDialog.

Call d->helperDone before deleting 'this'.

Change-Id: I06224f4d3a868dccd505b1f1d3ed56af6f339ba3
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
12 years agoDocument timer accuracy behavior on UNIX.
Bradley T. Hughes [Tue, 10 Jan 2012 12:43:51 +0000 (13:43 +0100)]
Document timer accuracy behavior on UNIX.

Change-Id: I5e8b383cc4d8ce0d249be164c5ef596328bdc50c
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoRemove win*Message() exported functions
Bradley T. Hughes [Tue, 10 Jan 2012 07:49:42 +0000 (08:49 +0100)]
Remove win*Message() exported functions

They are nothing more than wrappers around the Win32 API, and marked
for removable in Qt 5.

Change-Id: Iaf34d463488feb7840185c7b46f65a031232e34a
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
12 years agoUse Qt::TimerType on Windows when starting timers
Bradley T. Hughes [Tue, 10 Jan 2012 09:34:30 +0000 (10:34 +0100)]
Use Qt::TimerType on Windows when starting timers

Make all Qt::PreciseTimers and timers with intervals < 20ms use
Multimedia timers for maximum accuracy. Qt::CoarseTimers and
Qt::VeryCoarseTimers use normal Windows timers, with
Qt::VeryCoarseTimers having their interval rounded to the nearest
full second.

Note that the Windows timer implementation does not attempt to align
timers and reduce CPU wakeups like the UNIX implementation does. This
might be done in the future, though. However, this change does the
best we can do now, keeping most timers working as-is, while allowing
explicit use of Multimedia timers via Qt::PreciseTimer.

Change-Id: I1898272b101c572a2a9b9454fef27a651eb178f5
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoMake the roleNames a virtual accessor.
Stephen Kelly [Tue, 27 Dec 2011 16:02:33 +0000 (17:02 +0100)]
Make the roleNames a virtual accessor.

This is consistent with the rest of the API of QAbstractItemModel
(which is virtual) and removes the need for code like this
in the constructor (where it doesn't belong):

QHash<int, QByteArray> myRoleNames = roleNames();
myRoleNames.insert(Qt::UserRole + 1, "myCustomRole");
setRoleNames(myRoleNames);

in favor of

MyModel::roleNames() const {
  QHash<int, QByteArray> myRoleNames = QAbstractItemModel::roleNames();
  myRoleNames.insert(Qt::UserRole + 1, "myCustomRole");
  return myRoleNames;
}

which is consistent with all other QAIM API (eg, flags()).

This is a source compatible change.

Change-Id: I7e1ce17f8dab2292c4c7b6dbd3c09ec71b5c793b
Reviewed-by: David Faure <faure@kde.org>
Reviewed-by: Marius Bugge Monsen <marius@cutehacks.com>
12 years agoGenerate docs for accessible interfaces.
Frederik Gladhorn [Sat, 7 Jan 2012 01:24:03 +0000 (02:24 +0100)]
Generate docs for accessible interfaces.

Change-Id: Ic385dd416a6d6bce1b999e14a4b36cdd06127ff1
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
12 years agoWe should return texture id 0 for invalid images and pixmaps
Jørgen Lind [Mon, 9 Jan 2012 07:54:11 +0000 (08:54 +0100)]
We should return texture id 0 for invalid images and pixmaps

in the texture cache

Change-Id: Ib9bb136fa451c571fce2adbee29998b3f3593b31
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoReimplement QVariant to QDebug streaming.
Jędrzej Nowacki [Mon, 5 Dec 2011 11:43:10 +0000 (12:43 +0100)]
Reimplement QVariant to QDebug streaming.

New implementation fixes some commented code marked as FIXME.

Change-Id: If8f5bebedd65bcf8f839d804c2022ca79ef82ddf
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoPlatform style hints: Introduce keyboard repeat rate.
Friedemann Kleint [Mon, 9 Jan 2012 12:11:14 +0000 (13:11 +0100)]
Platform style hints: Introduce keyboard repeat rate.

Change-Id: I556c2ecec7d5368122875a659af3ae7db88aa481
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoFix key codes on mac.
Zeno Albisser [Sat, 7 Jan 2012 15:37:07 +0000 (16:37 +0100)]
Fix key codes on mac.

Qt key codes match the unicode character in upper case format.

Change-Id: I92b43463921e71f2607e569ba7ee23d6f844c50a
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
12 years agoAccessiblity State as bit field.
Frederik Gladhorn [Thu, 5 Jan 2012 12:57:33 +0000 (13:57 +0100)]
Accessiblity State as bit field.

We would like to add more flags that will be over the 32 bit boundary.
On Windows enums don't seem to digest values >32 bit.
This patch changes the state flags to be a bit field instead.

The windows part of the patch was written by Jan-Arve Sæther.

Change-Id: I2d1d87807f920ce4d4a5c7bfea8b1122ed44eb08
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
12 years agoUpdate year in Nokia copyright headers.
Jason McDonald [Tue, 10 Jan 2012 04:27:33 +0000 (14:27 +1000)]
Update year in Nokia copyright headers.

The previous change missed some headers from years prior to 2011, and a
few new files were merged after the previous change.

Change-Id: Ib7d1a2b7062228c2a5373da64242b2ee1f0981e1
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoRemove the unused QTRY_COMPARE macro from bearer auto tests.
Xizhi Zhu [Tue, 10 Jan 2012 02:58:58 +0000 (04:58 +0200)]
Remove the unused QTRY_COMPARE macro from bearer auto tests.

The custom QTRY_VERIFY macro is needed since the one provided by testlib does
not support custom timeout.

Change-Id: I12bbc5efcb16c4f53514ad738d6115d217a55b05
Reviewed-by: Alex <alex.blasche@nokia.com>
12 years agoRemove ICD plugin for bearer.
Xizhi Zhu [Tue, 10 Jan 2012 02:41:30 +0000 (04:41 +0200)]
Remove ICD plugin for bearer.

It's only used by Maemo and Harmattan, thus not needed in Qt5.

Change-Id: I8638f4fc63637be88d1aa584cde7e3a4116f2de6
Reviewed-by: Alex <alex.blasche@nokia.com>
12 years agoRename check to checkEvent.
Stephen Kelly [Mon, 9 Jan 2012 17:44:40 +0000 (18:44 +0100)]
Rename check to checkEvent.

Avoids conflict with macro on Mac OS.

Change-Id: I1b597205c32531e054832fcb396622b47b18040a
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoAdd V3(md5) and V5(sha1) version for DCE in QUuid
Liang Qi [Wed, 4 Jan 2012 10:15:20 +0000 (11:15 +0100)]
Add V3(md5) and V5(sha1) version for DCE in QUuid

Add the above versions based on RFC4122 standard.

Done-with: Hagen Rother
Task-number: QTBUG-23071
Change-Id: Ieb90925374d1e3c85011b899b8dd3bb1a608c561
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
Reviewed-by: Denis Dzyubenko <denis.dzyubenko@nokia.com>
12 years agoChanged selftests unittest to use specific headers instead of QtCore.
Kurt Korbatits [Tue, 10 Jan 2012 00:28:42 +0000 (10:28 +1000)]
Changed selftests unittest to use specific headers instead of QtCore.

Changed selftests unittest to use specific classes of QtCore instead of
pulling in all of QtCore headers by using include <QtCore>
- Decreasing build time.

Change-Id: Ic53a70423ecafeb342cc05ae6d7dee795533d205
Reviewed-by: Kurt Korbatits <kurt.korbatits@nokia.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
12 years agoImprove QDateTimeEdit autotest.
Jason McDonald [Mon, 9 Jan 2012 23:53:44 +0000 (09:53 +1000)]
Improve QDateTimeEdit autotest.

Reinstate a check that was presumably disabled because it wasn't
checking for the right expected date.  At present pressing Enter in a
QDateTimeEdit without changing the date still emits the dataChanged()
signal.  By reinstating the test, we ensure that the behaviour can't
change by accident.

Change-Id: I1b766af6ced001a4191606247338dbc91049cb8d
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoRemove symbian debug macro definition.
Stephen Kelly [Mon, 9 Jan 2012 15:37:14 +0000 (16:37 +0100)]
Remove symbian debug macro definition.

Change-Id: I3c4cc5cfd8e157587dbda1589501bb829a5a18db
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoIf decodestring can't translate the string return Qt::Key_unknown.
David Faure [Tue, 3 Jan 2012 12:34:49 +0000 (13:34 +0100)]
If decodestring can't translate the string return Qt::Key_unknown.

Change-Id: Ie082b326e944a28b4e29984a527e3841a05b32f6
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
12 years agoLock X display while calling XESetWireToEvent and its callback.
Samuel Rødal [Mon, 9 Jan 2012 08:50:08 +0000 (09:50 +0100)]
Lock X display while calling XESetWireToEvent and its callback.

Prevent potential race conditions as suggested by Uli Schlachter.

Change-Id: Ia93eb8be1cbbc3d8ae7913a934c195af6b5ec538
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Uli Schlachter <psychon@znc.in>
12 years agoFix memory leak in QDomDocument entity text expansion
Sami Rosendahl [Mon, 9 Jan 2012 13:29:53 +0000 (15:29 +0200)]
Fix memory leak in QDomDocument entity text expansion

The created entity node's reference count needs to be decremented to 0
before it is added as a child, because appendChild will increment the
reference count to correct value of 1. Re-enabled commented-out test data
tst_QDom::setContent to exercise the code path with the leak.

Change-Id: Ieb015d68ba9bbb3f20dd47e76835ad15abb1738e
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
12 years agoAvoid using 'check' as an identifier.
Stephen Kelly [Mon, 9 Jan 2012 18:14:27 +0000 (19:14 +0100)]
Avoid using 'check' as an identifier.

Avoids conflict with macro on Mac OS.

Change-Id: I79d78283b45bc97032d6a94139ee750ec01e9c0a
Reviewed-by: hjk <qthjk@ovi.com>
12 years agoAvoid using check as an identifier.
Stephen Kelly [Mon, 9 Jan 2012 18:08:08 +0000 (19:08 +0100)]
Avoid using check as an identifier.

Avoids conflict with Mac OS.

Change-Id: I72a1218d101fdf2fa40f80934a6157ed26e699a1
Reviewed-by: hjk <qthjk@ovi.com>
12 years agoAvoid using check as an identifier.
Stephen Kelly [Mon, 9 Jan 2012 18:06:39 +0000 (19:06 +0100)]
Avoid using check as an identifier.

Avoids conflict with Mac OS.

Change-Id: I64856a64808dcd481f6075eb4f3a7cc19950bad3
Reviewed-by: hjk <qthjk@ovi.com>
12 years agoC++11 delete some contructors which are not wanted.
Stephen Kelly [Sun, 8 Jan 2012 19:21:34 +0000 (20:21 +0100)]
C++11 delete some contructors which are not wanted.

Change-Id: I844a0872e81f1824928814edb8d21c0b6384283d
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
12 years agoRemove wrong assert from QMetaType.
Jędrzej Nowacki [Fri, 6 Jan 2012 11:17:30 +0000 (12:17 +0100)]
Remove wrong assert from QMetaType.

We can't assert that QMetaType helper arrays are initialized. In rare
situations it may happen that QMetaType compiled without support for an
external type (without compiled Gui or Widgets libraries) will be asked
for additional information for the type.

For example (assuming Qt is compiled with --no-gui):
// typeId it may be received over network (QMetaType::QImage)
void *ptr = QMetaType::create(typeId);

Change-Id: I018a59b23def35c7574e7c921019b5db4f06e800
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
12 years agoSmall QMetaType optimization.
Jędrzej Nowacki [Fri, 6 Jan 2012 11:13:49 +0000 (12:13 +0100)]
Small QMetaType optimization.

Prefer compile time check over a runtime.

Change-Id: Ib78563083c765d1fd72217c5aa529d0cbb951130
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
12 years agoAdd missing subdirectory to kernel.pro file.
Jędrzej Nowacki [Mon, 9 Jan 2012 12:20:49 +0000 (13:20 +0100)]
Add missing subdirectory to kernel.pro file.

QMetaPropery test was not build by CI.

Change-Id: I27407e8df674414c2d74f3aa1e4cbb809969c040
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoChanged qprocess unittest to use specific headers instead of QtCore.
Kurt Korbatits [Tue, 10 Jan 2012 00:13:28 +0000 (10:13 +1000)]
Changed qprocess unittest to use specific headers instead of QtCore.

Changed qprocess unittest to use specific classes of QtCore instead of
pulling in all of QtCore headers by using include <QtCore>
- Decreasing build time.

Change-Id: Ifc7911548e4a9323726093ac1d35e4ce38b5f8ad
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
12 years agoImplement QDebug stream operators for builtin classes
Jędrzej Nowacki [Wed, 4 Jan 2012 13:14:08 +0000 (14:14 +0100)]
Implement QDebug stream operators for builtin classes

QDebug stream operator was added for:
QPixmap, QImage, QUuid, QBitArray, QLocale, QRegExp, QCursor,
QPalette, QTextFormat, QTextLength, QIcon and QSizePolicy

Change-Id: Ibcf5c9b599ba322d53cb106d8e5e157427ebe757
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Denis Dzyubenko <denis.dzyubenko@nokia.com>
12 years agoQLocalSocket: make socket descriptor qintptr
Joerg Bornemann [Mon, 9 Jan 2012 11:33:17 +0000 (12:33 +0100)]
QLocalSocket: make socket descriptor qintptr

This is consistent with the other socket classes.

Also see commit bf7f17060773803f332e8c729a70f47b94243890.

Change-Id: Ic4bf01bd4abf778e21fe575c5304f86c9bee82fc
Reviewed-by: Jonas Gastal <jgastal@profusion.mobi>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agoRemove execute permission from files that don't need it.
Jason McDonald [Mon, 9 Jan 2012 06:51:40 +0000 (16:51 +1000)]
Remove execute permission from files that don't need it.

Change-Id: Ib92875289cdd9831f35301c566fb567acc725bb6
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoAdd "qget" manual test for QNetworkAccessManager
Shane Kearns [Fri, 6 Jan 2012 18:21:46 +0000 (18:21 +0000)]
Add "qget" manual test for QNetworkAccessManager

qget is a simplistic, limited clone of the wget application which
is implemented over QNetworkAccessManager.
The intended usage is for testing against other webserver configurations
than the one used on the qt test server, and reproduction of bug reports
without requiring a full webkit build (or complex user application).

Change-Id: Idcd91e2a2699dcfe19543ec9bf41aad8ccf514e0
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
Reviewed-by: Richard J. Moore <rich@kde.org>
12 years agoMake sure cursor navigation in qtexttable works like user expects
C. Boemann [Sat, 10 Dec 2011 04:15:38 +0000 (05:15 +0100)]
Make sure cursor navigation in qtexttable works like user expects

Before the selection of cells NW of anchor showed some defects where
cells would not be selected as the user expects

Change-Id: Ia2b63f11b8d534e918ffb97b76339d60f1ca0389
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
12 years agoSSL - dump failed certificate chains when debug logging is enabled
Shane Kearns [Fri, 6 Jan 2012 16:50:23 +0000 (16:50 +0000)]
SSL - dump failed certificate chains when debug logging is enabled

This is to help us debug problems with CA certificates.
Code is not compiled by default, only when QtNetwork is built with
QSSLSOCKET_DEBUG defined

Change-Id: I404c36bf4c6bf1190f480196038197be30b4b5f9
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
Reviewed-by: Richard J. Moore <rich@kde.org>
12 years agoUpdate the lastPosition with the full current position
Allan Sandfeld Jensen [Mon, 9 Jan 2012 11:31:45 +0000 (12:31 +0100)]
Update the lastPosition with the full current position

By only updating parts of the lastPosition the axislock got confused, since the
direction would be calculated from a mix of delta-movement and movements since
touch begin.

Task-Number: QTBUG-23530
Change-Id: I6b886d4819b963aba18bb86154df172070399206
Reviewed-by: Robert Griebl <robert.griebl@nokia.com>
12 years agoMake the meta type shortcut in this test more robust.
Stephen Kelly [Mon, 9 Jan 2012 14:57:00 +0000 (15:57 +0100)]
Make the meta type shortcut in this test more robust.

Change-Id: Ie9f5ea3a62c80b2a4255eda0995133d0471c7538
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
12 years agoRemove QtV8 library from QtBase
Simon Hausmann [Thu, 5 Jan 2012 09:38:10 +0000 (10:38 +0100)]
Remove QtV8 library from QtBase

The QtV8 library is going to live in the qtjsbackend module.

Change-Id: I72251316163829411dda998b9503ce6f75b3606a
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoUsing proper virtual functions instead of Q_INVOKABLE tricks.
Jonas M. Gastal [Thu, 22 Dec 2011 15:53:38 +0000 (13:53 -0200)]
Using proper virtual functions instead of Q_INVOKABLE tricks.

This mantains BC between version compiled with and without OPENSSL,
which was the reason for the use of "runtime virtuals". Using proper
virtuals should make code clearer.

Change-Id: I24f141ebaab68c000c2d602b54addbae1679a424
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoMake (dis)connectTo(From)Host virtual in QAbstractSocket.
Jonas M. Gastal [Thu, 29 Dec 2011 14:47:21 +0000 (12:47 -0200)]
Make (dis)connectTo(From)Host virtual in QAbstractSocket.

Change-Id: Ib1dfae4031f00fb331108152a259f6a2756381c9
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoAvoid using 'check' in QSharedPointer test.
Stephen Kelly [Mon, 9 Jan 2012 17:50:08 +0000 (18:50 +0100)]
Avoid using 'check' in QSharedPointer test.

Avoids conflict with macro on Mac OS.

Change-Id: Ia8301f52c879d941eece0fa6ae47a4c21d4e6490
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoAdd define for C++11 explict delete methods
Stephen Kelly [Sun, 8 Jan 2012 19:00:14 +0000 (20:00 +0100)]
Add define for C++11 explict delete methods

Change-Id: Ief4b8949acb528dcfc0be725b562ae71bd1640cd
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoRename handler/handlerManager.
Stephen Kelly [Sun, 8 Jan 2012 19:37:22 +0000 (20:37 +0100)]
Rename handler/handlerManager.

Change-Id: Idbac004120ea686d403421ea4f2fb4db87f55149
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
12 years agoFix constness of QInputPanel::keyboardRectangle()
Stephen Kelly [Sun, 8 Jan 2012 21:19:36 +0000 (22:19 +0100)]
Fix constness of QInputPanel::keyboardRectangle()

Change-Id: I13552ed0c357b19486f389a8fbf2c338652437c9
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
12 years agoFix constness of QGraphicsSceneBspTreeIndex::bspTreeDepth()
Stephen Kelly [Sun, 8 Jan 2012 21:20:18 +0000 (22:20 +0100)]
Fix constness of QGraphicsSceneBspTreeIndex::bspTreeDepth()

Change-Id: I8298afc9c493a1e9c6e49cc36a97184a50709558
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com>
12 years agoFix constness of QShortcut::context()
Stephen Kelly [Sun, 8 Jan 2012 21:20:43 +0000 (22:20 +0100)]
Fix constness of QShortcut::context()

Change-Id: Ic819c9b70fb2d6732f3fdc1d151a9adda571211b
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
12 years agoRemove unused function.
Frederik Gladhorn [Wed, 21 Dec 2011 15:10:10 +0000 (16:10 +0100)]
Remove unused function.

Instead this code has been ported to qAccessibleRoleString.

Change-Id: I41dd83d09cbcf2b0de3eb2fa027f24cf070f22a2
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
12 years agoRename private API to avoid conflict with mac OX macros.
Stephen Kelly [Mon, 9 Jan 2012 12:04:37 +0000 (13:04 +0100)]
Rename private API to avoid conflict with mac OX macros.

Mac OS defines the check macro in /usr/include/AssertMacros.h

http://boost.2283326.n4.nabble.com/Boost-with-Darwin-Mac-gcc-4-0-1-td2580330.html

Change-Id: I99789e4dba25e80afd184c44d0781c4ebde46d74
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoImprove Accessibility documentation.
Frederik Gladhorn [Sat, 7 Jan 2012 00:46:07 +0000 (01:46 +0100)]
Improve Accessibility documentation.

Change-Id: Ifb70d9c6d7b3096e0188e8454191786375296647
Reviewed-by: Geir Vattekar <geir.vattekar@nokia.com>
12 years agoRemove unused touch-related code in QApplicationPrivate header
Laszlo Agocs [Mon, 9 Jan 2012 09:45:54 +0000 (11:45 +0200)]
Remove unused touch-related code in QApplicationPrivate header

For X11 and Windows the touch handling code lives in the platform
plug-ins.  The RX71 code is replaced by the generic evdev touch
support provided by the touchscreen plug-in.

Change-Id: I12c9fd3be8b466565cac7abebbb70805f1e28b5f
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoRemove docs for removed functions.
Frederik Gladhorn [Sat, 7 Jan 2012 01:00:35 +0000 (02:00 +0100)]
Remove docs for removed functions.

Change-Id: I33346d0a2b324afe4b85b1792854b586aa7685ba
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
12 years agoChange QCocoaEventDispatcher timer handling to use QTimerInfoList
Bradley T. Hughes [Thu, 5 Jan 2012 13:29:15 +0000 (14:29 +0100)]
Change QCocoaEventDispatcher timer handling to use QTimerInfoList

This gives us support for the various Qt::TimerTypes.

We only use one CFRunLoopTimer to drive all of the Qt timers. We update
the time-to-fire for this timer as we add/remove/fire Qt timers. The
documentation for the CFRunLoopTimerSetNextFireDate() function says that
this is a valid use case, and is more performant than constantly adding
and removing CFRunLoopTimers. The documentation recommends using a large
interval for this use case (the docs say "several decades", but we use 1
year).

Change-Id: Ie7fd7a845f4254699a5b6a5720e7626f2c5e787f
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@nokia.com>
12 years agoExport QTimerInfoList
Bradley T. Hughes [Thu, 5 Jan 2012 13:12:18 +0000 (14:12 +0100)]
Export QTimerInfoList

... so that QCocoaEventDispatcher can use it to implement timer handling
and benefit from the Qt::TimerType support in QTimerInfoList.

Change-Id: I34b81502465963e2c9d528df463fa2eccd275ad6
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoClean-up the interface for QDate.
Xizhi Zhu [Fri, 6 Jan 2012 15:53:38 +0000 (17:53 +0200)]
Clean-up the interface for QDate.

Four overload functions removed while keeping source compatibility:
 - shortMonthName()
 - shortDayName()
 - longMonthName()
 - longDayName()

Two functions removed since they have confusing names:
 - gregorianToJulian()
 - julianToGregorian()

Change-Id: Iaaea066a3fb77b1ee3499d3049fcec5563054cdf
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: John Layt <jlayt@kde.org>
12 years agoRemove the Q_TYPENAME define.
Stephen Kelly [Fri, 6 Jan 2012 06:33:17 +0000 (07:33 +0100)]
Remove the Q_TYPENAME define.

It is mostly not used (most places in Qt use typename directly), so
is already not very useful.

For example typename is used in:

QDataStream& operator<<(QDataStream& s, const QVector<T>& v)

Change-Id: I85337ad7d8d4ebbb424bfa2ab9a356456ff3e90f
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
12 years agoxcb: Fix a memleak when atomName() fails
Uli Schlachter [Sat, 7 Jan 2012 16:28:10 +0000 (17:28 +0100)]
xcb: Fix a memleak when atomName() fails

The only reason for GetAtomName to fail is when an invalid atom is specified, so
the xcb_generic_error_t struct doesn't contain any useful information for us.
Still, we have to free it.

Change-Id: I3da98018b7bfe08a9d7dcd566ed010f5d7b0df73
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoQProcess/Win: direct forwarding of stdout and stderr
Joerg Bornemann [Thu, 5 Jan 2012 17:24:53 +0000 (18:24 +0100)]
QProcess/Win: direct forwarding of stdout and stderr

We are now directly passing the standard out/err handles to
CreateProcess instead of reading the output and writing it.

The downside is, that we cannot automatically forward the process
output of GUI applications anymore.
This behaviour is intended by the CreateProcess API.

Change-Id: Ic6e35c8c338dbea1a9f345567a37d938da1f34a2
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agoqmake: fix default value for C++ optimization in vcxproj files
Joerg Bornemann [Fri, 6 Jan 2012 15:40:27 +0000 (16:40 +0100)]
qmake: fix default value for C++ optimization in vcxproj files

For the debug configuration the optimization should be turned off.

Task-number: QTBUG-23421

Change-Id: Ib63e0c51f9ab31180ff8ee01a1f6c57ab77e390e
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoqmake: fix /MP option for VS 2010
Joerg Bornemann [Fri, 6 Jan 2012 14:30:43 +0000 (15:30 +0100)]
qmake: fix /MP option for VS 2010

Setting QMAKE_CFLAGS+=/MP in a project file did not work for VS 2010.

Task-number: QTBUG-23490

Change-Id: I39c349bf8dc2a4add2f32a430a245a20cc54147e
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoDetect autoreapeat in xcb plugin.
Samuel Rødal [Fri, 6 Jan 2012 14:03:24 +0000 (15:03 +0100)]
Detect autoreapeat in xcb plugin.

Until now QKeyEvent::isAutoRepeat() would always return false.

Change-Id: I7771bc7a7ec848ef280f99bada0a26eda188604e
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
12 years agoMove keyboard locale and input direction to QInputPanel
Pekka Vuorela [Thu, 5 Jan 2012 11:29:23 +0000 (13:29 +0200)]
Move keyboard locale and input direction to QInputPanel

Deprecated QGuiApplication::keyboardInputLocale() and
keyboardInputDirection(), introduced QInputPanel::locale()
and inputDirection().

Change-Id: Ic48c77f10821a949751c73c73f22bd78e2192b9c
Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>