qt5base-lts/src
Jan-Arve Saether 526da72e99 Fix a bug in qdocs handling of excludedirs
The bug was there because the way qdoc tries to exclude the directories
given in the "excludedirs" variable:
It did a simple string comparision on the candidate path (to include)
with every string in the "excludedirs" variable.

However, this did not work for all cases, since the paths are not
canonicalized.
For instance, the problem I faced was that the following qdocconf
fragment: (config file located in doc/qtwidgets.qdocconf)
sourcedirs  += ..
excludedirs += snippets

Since qdoc would recursively parse all subfolders of sourcedirs, it
would at one point visit the snippets folder, but it would have the
relative path "../doc/snippets", which did not match with "snippets",
causing snippets to not be excluded.

In addition, it seems that qdoc tries hard not to use absolute paths
(maybe because of more human-friendly error messages). I therefore
chose to canonicalize the relative paths.

As a side-effect this also give a better output from qdoc, as
../doc/foo.qdoc:42: Missing link
will become
foo.qdoc:42: Missing link

Change-Id: If9c25fa569abd03542bd12675acd44d8f4e0282c
Reviewed-by: Martin Smith <martin.smith@nokia.com>
2012-08-17 19:31:50 +02:00
..
3rdparty Remove trailing comma in enum 2012-08-15 23:40:57 +02:00
concurrent QFutureInterface<void>: const-correct reportFinished() 2012-08-17 16:27:43 +02:00
corelib QThreadPool: fix race on 'queue' in stealRunnable() 2012-08-17 16:28:01 +02:00
dbus QtDBus: use new qEnvironmentVariableIsEmpty() 2012-08-14 20:21:09 +02:00
gui Move docs for QSessionManager to the right file. 2012-08-15 15:29:51 +02:00
network Fix sockets for Windows CE 2012-08-14 03:56:55 +02:00
opengl rename qt_module_config.prf => qt_module.prf 2012-08-08 12:04:49 +02:00
platformsupport QtGui: use new qEnvironmentVariableIsEmpty() 2012-08-14 20:21:12 +02:00
plugins QNX: Allow app to run when spurious 2nd screen is reported 2012-08-17 12:23:43 +02:00
printsupport rename qt_module_config.prf => qt_module.prf 2012-08-08 12:04:49 +02:00
sql qsql_oci: use OCI_COMMIT_ON_SUCCESS for SELECT without transaction 2012-08-13 23:16:38 +02:00
testlib QtTestLib: use new qEnvironmentVariableIsEmpty() 2012-08-14 20:21:19 +02:00
tools Fix a bug in qdocs handling of excludedirs 2012-08-17 19:31:50 +02:00
widgets Clean up docs for graphicsview. 2012-08-17 19:30:38 +02:00
winmain fix misnomer: qt_module.prf => qt_build_config.prf 2012-06-19 16:46:08 +02:00
xml rename qt_module_config.prf => qt_module.prf 2012-08-08 12:04:49 +02:00
src.pro enable platformsupport for -no-widgets 2012-07-04 02:46:27 +02:00