From 6f49a93f59b930be858cd1cc9174de74f38ff393 Mon Sep 17 00:00:00 2001 From: Christian Tismer Date: Fri, 18 Oct 2013 08:03:21 +0200 Subject: use the headers info that can be found in "qmake -query". Since Qt has a headers variable, there is no reason for a work-around. --- qtinfo.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'qtinfo.py') diff --git a/qtinfo.py b/qtinfo.py index 0cf132863..631adb667 100644 --- a/qtinfo.py +++ b/qtinfo.py @@ -30,6 +30,9 @@ class QtInfo(object): def getTranslationsPath(self): return self.getProperty("QT_INSTALL_TRANSLATIONS") + def getHeadersPath(self): + return self.getProperty("QT_INSTALL_HEADERS") + def getProperty(self, prop_name): cmd = [self._qmake_path, "-query", prop_name] proc = subprocess.Popen(cmd, stdout = subprocess.PIPE, shell=False) @@ -48,3 +51,4 @@ class QtInfo(object): qmake_path = property(getQMakePath) imports_dir = property(getImportsPath) translations_dir = property(getTranslationsPath) + headers_dir = property(getHeadersPath) -- cgit v1.2.3