qt5base-lts/tests/auto/widgets/widgets
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
..
qabstractbutton Eliminate duplicate data row names in widgets autotests. 2012-02-15 02:36:47 +01:00
qabstractscrollarea Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qabstractslider QAbstractSlider - adding setRange as a slot 2012-03-02 23:16:25 +01:00
qabstractspinbox Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qbuttongroup Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qcalendarwidget Stabilize tst_QCalendarWidget::buttonClickCheck 2012-03-06 01:34:55 +01:00
qcheckbox Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qcombobox Expose QPA API under qpa/* 2012-05-07 20:25:24 +02:00
qcommandlinkbutton Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qdatetimeedit Don't use obsolete qVariantValue, qVariantCanConvert, etc. 2012-05-02 08:30:59 +02:00
qdial Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qdialogbuttonbox Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qdockwidget Cocoa: don't show window when calling raise() 2012-03-26 11:41:07 +02:00
qdoublespinbox Remove insignification from QDoubleSpinBox test on Ubuntu 11.10. 2012-04-19 16:25:55 +02:00
qdoublevalidator Eliminate duplicate data row names in widgets autotests. 2012-02-15 02:36:47 +01:00
qfocusframe Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qfontcombobox Eliminate duplicate data row names in widgets autotests. 2012-02-15 02:36:47 +01:00
qgroupbox Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qintvalidator Eliminate duplicate data row names in widgets autotests. 2012-02-15 02:36:47 +01:00
qlabel Cleanup Q3* items 2012-03-23 13:21:57 +01:00
qlcdnumber Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qlineedit Expose QPA API under qpa/* 2012-05-07 20:25:24 +02:00
qmainwindow Fix dockwidgets behavior when window resized or central widgets is set. 2012-03-07 19:52:27 +01:00
qmdiarea Remove insignification of QMdiArea test on Windows. 2012-04-24 12:49:56 +02:00
qmdisubwindow Remove insignification from QMdiSubWindow test on Mac OS X. 2012-04-19 19:46:07 +02:00
qmenu QCursor: Associate cursor with screen. 2012-03-07 22:43:43 +01:00
qmenubar Change remaining uses of {to,from}Ascii to {to,from}Latin1 [QtWidgets] 2012-05-03 06:10:20 +02:00
qplaintextedit Change remaining uses of {to,from}Ascii to {to,from}Latin1 [QtWidgets] 2012-05-03 06:10:20 +02:00
qprogressbar Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qpushbutton Change remaining uses of {to,from}Ascii to {to,from}Latin1 [QtWidgets] 2012-05-03 06:10:20 +02:00
qradiobutton Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qregexpvalidator Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qscrollarea Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qscrollbar test: Don't mark tst_qscrollbar as insignificant on Mac OS X 2012-04-13 10:46:34 +02:00
qsizegrip Remove insignification of QSizeGrip test on Mac OS X. 2012-04-24 10:40:03 +02:00
qslider Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qspinbox Eliminate duplicate data row names in widgets autotests. 2012-02-15 02:36:47 +01:00
qsplitter Eliminate duplicate data row names in widgets autotests. 2012-02-15 02:36:47 +01:00
qstackedwidget Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qstatusbar Implement QCocoaWindow::setWindowState. 2012-04-20 10:29:14 +02:00
qtabbar Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qtabwidget Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qtextbrowser Load resources in in QTextDocument correctly 2012-05-04 15:31:02 +02:00
qtextedit Change remaining uses of {to,from}Ascii to {to,from}Latin1 [QtWidgets] 2012-05-03 06:10:20 +02:00
qtoolbar Mac: Fix compilation with -qtnamespace set 2012-01-31 16:17:55 +01:00
qtoolbox Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qtoolbutton Set tst_qtoolbutton triggered function skipped. 2012-02-20 08:06:14 +01:00
widgets.pro Remove QWorkspace. 2012-03-23 13:22:10 +01:00