find qt.conf more reliably
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Fri, 9 Sep 2011 16:41:52 +0000 (18:41 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 12 Sep 2011 16:25:54 +0000 (18:25 +0200)
commit0192bf919fe03ac8e85190fa1c09720339eb9dd2
treefe90c1849255ace99d5deacdb51909132025a4a8
parent6f87278e0acd554f890f87118c48d5df8ae4174c
find qt.conf more reliably

a qmake invoked with a relative path would not find qt.conf, because it
already changed CWD, which would confuse our copy of
QCoreApplication::applicationFilePath() (see also QTBUG-21381).
we already have the absolute path to the qmake executable in
Option::qmake_abslocation, so just use it.

(cherry picked from commit c378e16e57e8ce2255116e7fdb5436524cccb8c7)

Change-Id: Icfe4254722e0855f6755b639f4c86f15bc7323ba
Reviewed-on: http://codereview.qt-project.org/4565
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
qmake/option.cpp