summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/messageboxhandler.cpp
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@digia.com>2014-06-02 09:46:41 +0200
committerKarsten Heimrich <karsten.heimrich@digia.com>2014-06-02 09:57:13 +0200
commite89721bce16d6486e47b5b88d24467face5a11aa (patch)
tree268bad4a296f3dd02c83d1735fd7b76be38623d8 /src/libs/installer/messageboxhandler.cpp
parentd5b02dd37312ee9a9682caff9fae925c04323e8f (diff)
Cleanup to support Qt5 only.
Change-Id: Ib8f61229ce2f07e52c22a15e10dc817aca860ead Reviewed-by: Niels Weber <niels.weber@digia.com>
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);