diff options
author | kh1 <karsten.heimrich@digia.com> | 2012-12-06 15:47:26 +0100 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@digia.com> | 2012-12-07 13:15:35 +0100 |
commit | 40b40e6274e4db14531461c455c88378d12d85f2 (patch) | |
tree | 71b74c31dd349aae200a857050747fdcc7397910 /src/libs/installer/component.cpp | |
parent | fd4c75df63d65e5a97ebc71c8247713ace45ffc9 (diff) |
Finally IFW compiles with Qt5 (use private headers)
Change-Id: I2604c77418e4a930bd0f76092db581fef1e45817
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Diffstat (limited to 'src/libs/installer/component.cpp')
-rw-r--r-- | src/libs/installer/component.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libs/installer/component.cpp b/src/libs/installer/component.cpp index 2f75e4675..e13fa6602 100644 --- a/src/libs/installer/component.cpp +++ b/src/libs/installer/component.cpp @@ -454,8 +454,13 @@ void Component::loadTranslations(const QDir &directory, const QStringList &qms) */ void Component::loadUserInterfaces(const QDir &directory, const QStringList &uis) { +#if QT_VERSION < 0x050000 if (QApplication::type() == QApplication::Tty) return; +#else + if (qobject_cast<QApplication*> (qApp) == 0) + return; +#endif QDirIterator it(directory.path(), uis, QDir::Files); while (it.hasNext()) { |