qt5base-lts/tests/auto/other
Girish Ramakrishnan 36547f4eff Expose QPA API under qpa/*
The main reasons for doing this are:
1. _qpa.h end up in the master QtGui include file. QtGui is meant for
userland applications. qpa code is neither binary nor source compatible.
Inadvertant use of QPA api makes the user code binary-incompatible.
2. syncqt creates forwarding headers for non-private header files. This
gives people the impression that this is public API.

As discussed on the mailing list, even though QPA api is internal and subject
to change, it needs to  treated differently from private headers since they
will be used by  in-qtbase and out-of-qtbase plugins.

This commit does the following:
1. The _qpa in QPA header files is dropped.
2. syncqt now treats any file with qplatform prefix as a special file and
moves it to qpa/ directory. The recommended way of using QPA API in plugins
is: #include <qpa/qplatformfoo.h>. This allows the user include QPA API
from multiple modules (for example, qplatformfoo might be in QtPrintSupport)
3. The user needs to explicitly add QT += <module>-private to get access to
the qpa api.
4. Creates compat headers for the olden style qplatformfoo_qpa.h and QPlatformFoo
includes.

This commit does not change the cpp filenames. This requires a more careful
merging of existing non qpa cpp files and existing cpp files on a case by
case basis. This can be done at anytime.

The following files are not renamed as part of this changed but will be fixed
as part of a future change:
src/gui/kernel/qgenericpluginfactory_qpa.h
src/gui/kernel/qgenericplugin_qpa.h
src/gui/kernel/qwindowsysteminterface_qpa.h

files were renamed using

    for x in `find . -name "qplatform*_qpa.h"`; do git mv $x "${x/_qpa.h/.h}"; done
    for x in `find . -name "qplatform*_qpa_p.h"`; do git mv $x "${x/_qpa_p.h/_p.h}"; done

includes were renamed using script

for file in `find . -name "*.h" -or -name "*.cpp" -or -name "*.mm"`; do
    sed -i -e 's,.*#.*include.*<\(Qt.*/\)\?\(QPlatform.*\)>,#include <qpa/\L\2.h>,g' \
        -e 's,.*#.*include.*"\(Qt.*/\)\?\(QPlatform.*\)",#include <qpa/\L\2.h>,g' \
        -e 's,.*#.*include.* "\(qplatform.*\)_qpa.h",#include <qpa/\L\1.h>,g' \
        -e 's,.*#.*include.*"\(qplatform.*\)_qpa_p.h",#include <qpa/\L\1_p.h>,g' \
        -e 's,.*#.*include.*<\(Qt.*/\|Qt.*/private/\|private/\)\?\(qplatform.*\)_qpa\(.*\)>,#include <qpa/\2\3>,g' \
        -e 's,.*#.*include.*"\(Qt.*/\|Qt.*/private/\|private/\)\?\(qplatform.*\)_qpa\(.*\)",#include <qpa/\2\3>,g' \
        $file
done

Change-Id: I04a350314a45746e3911f54b3b21ad03315afb67
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
2012-05-07 20:25:24 +02:00
..
atwrapper clean up qmake-generated projects 2012-02-24 05:18:30 +01:00
baselineexample Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
collections Change remaining uses of {to,from}Ascii to {to,from}Latin1 [QtCore] 2012-05-04 12:45:47 +02:00
compiler Remove ARMFPA support and Q_DOUBLE_FORMAT detection 2012-03-01 16:26:55 +01:00
exceptionsafety Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
exceptionsafety_objects Remove QWorkspace. 2012-03-23 13:22:10 +01:00
gestures QEvent (and subclasses): make ctors explicit 2012-03-01 08:44:34 +01:00
headersclean Temporarily disable -Woverloaded-virtual in headersclean test 2012-05-01 01:18:03 +02:00
lancelot Remove insignification of lancelot test on Mac OS X. 2012-04-30 03:29:52 +02:00
languagechange Expose QPA API under qpa/* 2012-05-07 20:25:24 +02:00
macgui clean up qmake-generated projects 2012-02-24 05:18:30 +01:00
macnativeevents clean up qmake-generated projects 2012-02-24 05:18:30 +01:00
macplist clean up qmake-generated projects 2012-02-24 05:18:30 +01:00
modeltest Don't use obsolete qVariantValue, qVariantCanConvert, etc. 2012-05-02 08:30:59 +02:00
networkselftest Merge remote-tracking branch 'origin/master' into api_changes 2012-04-10 15:31:45 +02:00
qaccessibility Change remaining uses of {to,from}Ascii to {to,from}Latin1 [QtGui] 2012-05-04 12:45:52 +02:00
qcomplextext Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qfocusevent Remove insignification from QFocusEvent test on Mac OS X. 2012-04-19 08:07:39 +02:00
qnetworkaccessmanager_and_qprogressdialog Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qobjectperformance Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qobjectrace Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qsharedpointer_and_qwidget Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qtokenautomaton Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
windowsmobile Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
other.pro Start running some disabled tests again on Mac OS. 2012-04-23 09:46:22 +02:00