Go to file
Girish Ramakrishnan f56f542294 QPA: pass cmdline arguments to QPlatformIntegrationPlugin constructor
Two observations of the current code:
1. The cmdline arguments are passed as dynamic properties of the native
   interface. This is not optimal. First, the args should be made available
   in the plugin constructor (and thus in the QPlatformIntegration constructor).
   This allows the integration to make decisions when initializing itself.
   Second, the preferred way for apps to query properties from the platform plugin
   should be through the various methods in QPlatformNativeInterface.

   With that in mind, the dynamic property approach should be obsoleted. I have left
   the code as-is for backward compat.

2. The -platform argument is parsed twice. Once in init_platform and then
   again in QPlatformIntegrationFactory. QPlatformIntegrationFactory now takes
   the name and arg list separately.

Change-Id: I6b568ed9e28feeaf036bf340417fa00bdf1b7da3
Reviewed-by: Romain Pokrzywka <romain.pokrzywka@kdab.com>
Reviewed-by: Oliver Wolff <oliver.wolff@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
2012-07-12 14:22:58 +02:00
bin Make QWindowSystemInterface part of QPA API 2012-07-03 01:55:37 +02:00
config.tests linuxfb: Add config.test and configure support 2012-07-11 14:55:27 +02:00
dist Add support for SQLSTATE error codes 2012-07-03 13:21:23 +02:00
doc Remove the MacMainWindow example. 2012-05-30 01:54:45 +02:00
examples qtbase: Add missing example installs and files. 2012-07-10 22:24:40 +02:00
lib Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
mkspecs don't unnecessarily normalize $$[QT_INSTALL_*] any more 2012-07-12 13:51:00 +02:00
qmake make the prl lookup search in standard locations 2012-07-12 10:40:50 +02:00
src QPA: pass cmdline arguments to QPlatformIntegrationPlugin constructor 2012-07-12 14:22:58 +02:00
tests Implement qWaitForWindowShown using qWaitForWindowExposed. 2012-07-12 14:22:48 +02:00
tools configure{.exe}: enable 'tools' as a default build part 2012-07-10 08:33:49 +02:00
util QUnicodeTables: some internal API renamings 2012-06-22 09:47:59 +02:00
.gitattributes Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
.gitignore Update .gitignore to ignore mkspecs/default-host 2012-07-09 15:14:26 +02:00
.tag Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
configure linuxfb: Add config.test and configure support 2012-07-11 14:55:27 +02:00
configure.bat Remove Q_BYTE_ORDER and -*-endian arguments from configures 2012-03-02 14:48:00 +01:00
header.BSD Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
header.FDL Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
header.LGPL Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
header.LGPL-ONLY Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
INSTALL Remove Symbian specific code from qtbase. 2012-01-31 07:08:31 +01:00
LGPL_EXCEPTION.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.GPL Add the LICENSE.GPL file to the module referenced from license headers 2012-05-20 22:41:08 +02:00
LICENSE.LGPL Update contact information in license headers. 2012-01-23 04:04:33 +01:00
LICENSE.PREVIEW.COMMERCIAL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
qtbase.pro Fix installation of syncqt. 2012-07-09 20:11:46 +02:00
sync.profile Extend the sync profile with generating forward header for qnumeric.h 2012-07-10 03:25:04 +02:00