qt5base-lts/tests/auto/corelib/kernel
Ulf Hermann ee0fd87007 Selectively update library paths when creating QCoreApplication
We force a recreation of the library paths with added information on
construction of QCoreApplication. This way we can find plugins in
the application directory which only becomes known when
QCoreApplication is created. When the user changes the library path
we create a new list of the manually modified library paths and
recalculate it from the delta of original vs. modified paths when
QCoreApplication is created.

The upsides of this approach vs. keeping an explicit delta are:

* We don't need to introduce a separate data structure to hold
  the added/removed status for delta items or the information that
  the whole list got replaced.

* The lists never get larger than the the real library paths. An
  explicit delta would have to record all modifications.

* I don't think the delta replay algorithm we would have to do
  anyway could be made much more compact than the one this change
  introduces.

Of course, if the user actually changes anything, the list is
duplicated. Considering that this is a rarely used function and
that we would have to save some extra information anyway, I think
we can live with this.

Task-number: QTBUG-38598
Change-Id: I3bfbbd1be62dd5804dcc7ac808b053428a4e3149
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2015-07-20 15:57:07 +00:00
..
qcoreapplication Selectively update library paths when creating QCoreApplication 2015-07-20 15:57:07 +00:00
qeventdispatcher Blacklist and skip various tests that are flakey 2015-06-14 10:50:45 +00:00
qeventloop Merge remote-tracking branch 'origin/5.5' into dev 2015-07-01 11:05:26 +02:00
qmath
qmetaenum Fix QtPrivate::IsQEnumHelper<void> 2015-05-17 09:13:18 +00:00
qmetamethod
qmetaobject
qmetaobjectbuilder
qmetaproperty Allow types with a comma in Q_PROPERTY 2015-06-12 11:36:32 +00:00
qmetatype QMetaType: Fix compilation with non default constructible Q_GADGET 2015-05-27 10:51:10 +00:00
qmimedata Add support to set text/uri-list mimedata via setData() 2015-04-28 12:46:35 +00:00
qobject Merge remote-tracking branch 'origin/5.5' into dev 2015-07-01 11:05:26 +02:00
qpointer QPointer: add member-swap 2015-06-17 07:09:57 +00:00
qsharedmemory Skip instead of entirely excluding tests with disabled features 2015-03-16 09:34:15 +00:00
qsignalblocker
qsignalmapper
qsocketnotifier Blacklist and skip various tests that are flakey 2015-06-14 10:50:45 +00:00
qsystemsemaphore Skip instead of entirely excluding tests with disabled features 2015-03-16 09:34:15 +00:00
qtimer Merge remote-tracking branch 'origin/5.5' into HEAD 2015-07-17 16:35:42 +02:00
qtranslator
qvariant Merge remote-tracking branch 'origin/5.5' into dev 2015-03-16 10:31:07 +01:00
qwineventnotifier
kernel.pro iOS: Skip tests that don't make sense or don't work on the platform 2015-03-16 14:25:27 +00:00