summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/messageboxhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/installer/messageboxhandler.cpp')
-rw-r--r--src/libs/installer/messageboxhandler.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/libs/installer/messageboxhandler.cpp b/src/libs/installer/messageboxhandler.cpp
index 69fc62570..09aa43c1d 100644
--- a/src/libs/installer/messageboxhandler.cpp
+++ b/src/libs/installer/messageboxhandler.cpp
@@ -151,13 +151,8 @@ MessageBoxHandler *MessageBoxHandler::instance()
QWidget *MessageBoxHandler::currentBestSuitParent()
{
-#if QT_VERSION < 0x050000
- if (QApplication::type() == QApplication::Tty)
- return 0;
-#else
if (qobject_cast<QApplication*> (qApp) == 0)
return 0;
-#endif
if (qApp->activeModalWidget())
return qApp->activeModalWidget();
@@ -319,13 +314,8 @@ QMessageBox::StandardButton MessageBoxHandler::showMessageBox(MessageType messag
qDebug() << QString::fromLatin1("created %1 message box %2: '%3', %4").arg(messageTypeHash
.value(messageType),identifier, title, text);
-#if QT_VERSION < 0x050000
- if (QApplication::type() == QApplication::Tty)
- return defaultButton;
-#else
if (qobject_cast<QApplication*> (qApp) == 0)
return defaultButton;
-#endif
if (m_automaticAnswers.contains(identifier))
return m_automaticAnswers.value(identifier);