summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/component.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/installer/component.cpp')
-rw-r--r--src/libs/installer/component.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/libs/installer/component.cpp b/src/libs/installer/component.cpp
index 91b22563c..a1550b47c 100644
--- a/src/libs/installer/component.cpp
+++ b/src/libs/installer/component.cpp
@@ -547,13 +547,8 @@ 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()) {
@@ -569,11 +564,7 @@ void Component::loadUserInterfaces(const QDir &directory, const QStringList &uis
QWidget *const widget = loader.load(&file, 0);
if (!widget) {
throw Error(tr("Could not load the requested UI file '%1'. Error: %2").arg(it.fileName(),
-#if QT_VERSION < 0x050000
- tr("An error has occurred while reading the UI file.")));
-#else
loader.errorString()));
-#endif
}
d->m_userInterfaces.insert(widget->objectName(), widget);
}