Fix QLibrary test.

- Use correct working directory.

Task-number:  QTQAINFRA-428
Change-Id: I31fdc941fe21e2efa29d742a5b8cd89f2214e81c
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Fix QApplication test for desktop.

- Set the working directory such that the binaries are found:
  Mac: disable app-bundle
  Windows: cd up if we are in a debug, release folder
- Suppress the debug/release folder for the wincmdline process,
  make it a simple console app.
- Print proper message if process launch fails.
- Restrict insignification to qws/embedded due to an
  exit crash. Expect-fail focus test on Mac.

Task-number: QTQAINFRA-428
Change-Id: I3aaa9c5faf97557717eaa84d343e5cb59f6a53e2
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Fix virtual keyboard setHeight() for Blackberry

Applies to Qt 4.8 only.

Task-number: QTBUG-26160

Change-Id: I4a110ade1f817cc5d9a866e57e1d710abd83d143
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Fix qatomic inline asm for x32 ABI.

Drop the 'q' suffix from x86_64 asm instructions. It's not needed,
because the assembler can automatically determine the proper size
based on the target, and it is in fact causing compilation failures
on x32.

Change-Id: Ie6ff3ddf352a63bc490acce97a3019ce2e48dc70
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Symbian: create stub sis during build

Create stub sis during the (tools2) configure step of the Symbian build.
This allows changing of the stub sis package version just by modifying
the qt_stub.pkg file.

Change-Id: I8260fc3db3d6e41926f2217542f84ec93868b65f
Reviewed-by: Jaakko Helanti <ext-jaakko.helanti@nokia.com>
Reviewed-by: Pasi Pentikäinen <ext-pasi.a.pentikainen@nokia.com>
Performance fix for OpenGL drawing

Excessive calling of glFlush() was causing a performance problem when
QML application was being run in the OpenGL graphics mode. There was an
unnecessary call to glFlush() in the function
QGLWindowSurfaceGLPaintDevice::endPaint(). This function gets called
each time a QPainter instance is destroyed, which may happen several
times per each painted screen frame (at least 4 times per frame can
easily happen). Calling glFlush() from endPaint() is not necessary at
all since it will be anyway called from QGLWindowSurface::flush()
(either directly if single-buffered context is used or indirectly by
swapping buffers if double-buffered context is used).

Task-number: ou1cimx1#957423
Change-Id: I89509d8935ad31cc47bfed41a1900b6bb76c2af8
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Reviewed-by: Pasi Pentikäinen <ext-pasi.a.pentikainen@nokia.com>
Avoid crash cancelling timer in wrong thread on terminate

When the Symbian timer active object detects that it is cancelled in the
wrong thread, it was issuing a qFatal. But that was an overreaction, as
the situation is not necessarily fatal if the thread in which the timer
lives is about to die. For example if QThread::terminate is used outside
of the thread targeted. Instead a debug message should be issued so that
if there is a crash, the programmer should get information as to why.

The debug message, in this case, is issued with RDebug::Print to avoid
the use of Qt's message output which itself was crashing in partially
finished thread situations.

Task-number: ou1cimx1#1006699
Change-Id: I7d192eb27ba85ba2ef4f80fec3d8479f0df8f90c
Reviewed-by: Juha Kukkonen <ext-juha.kukkonen@nokia.com>
Reviewed-by: Pasi Pentikäinen <ext-pasi.a.pentikainen@nokia.com>
Drag and drop icon does not update correctly on Windows.

Drag and drop icon does not update correctly because WA_acceptDrops
attribute is not checked on DragOver event.

Drag and Drop icon does not update itself appropriately
when the cursor enters an invalid drop area.
Icon is not updated because WA_acceptDrops attribute is
not checked in dragover. Also removed lines which force parent
widget WA_acceptDrops to true, if child widget sets it to true.
No autotest, because QTestlib does not support drag and drop.
All examples under Drag and drop have been manually tested though.

Task-number: QTBUG-22987

Change-Id: I0c2b9dc7292db7710c5585d99790514329c2db8e
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Merge branch '4.8' of git://gitorious.org/qt/qt into 4.8