summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Heimrich <karsten.heimrich@theqtcompany.com>2016-01-21 12:51:37 +0100
committerKarsten Heimrich <karsten.heimrich@theqtcompany.com>2016-01-21 13:55:35 +0000
commit22a0f6b682fb8ef74e11f0e7a2ffac7c8f12222b (patch)
tree1713dfb077c902d11e2def566d3688b844c3d2c0
parent5abd497a56efde2dc8f4d2e9079f677cff80cc13 (diff)
Fix compile with namespace'ed Qt.
Change-Id: I9c0d399943d2f6eb9a0ab136abf24a5c8b108abb Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
-rw-r--r--src/libs/installer/proxycredentialsdialog.h2
-rw-r--r--tests/auto/installer/messageboxhandler/tst_messageboxhandler.cpp9
-rw-r--r--tools/repocompare/mainwindow.h3
3 files changed, 4 insertions, 10 deletions
diff --git a/src/libs/installer/proxycredentialsdialog.h b/src/libs/installer/proxycredentialsdialog.h
index f4935c53d..81b2f7cef 100644
--- a/src/libs/installer/proxycredentialsdialog.h
+++ b/src/libs/installer/proxycredentialsdialog.h
@@ -35,7 +35,9 @@
#include <QDialog>
+QT_BEGIN_NAMESPACE
class QNetworkProxy;
+QT_END_NAMESPACE
namespace QInstaller {
diff --git a/tests/auto/installer/messageboxhandler/tst_messageboxhandler.cpp b/tests/auto/installer/messageboxhandler/tst_messageboxhandler.cpp
index 75df29949..d032b973f 100644
--- a/tests/auto/installer/messageboxhandler/tst_messageboxhandler.cpp
+++ b/tests/auto/installer/messageboxhandler/tst_messageboxhandler.cpp
@@ -12,15 +12,6 @@
using namespace QInstaller;
-namespace QTest {
- template<>
- char *toString(const QMessageBox::StandardButton &button)
- {
- QString buttonAsString(QString::number(button));
- return qstrdup(buttonAsString.toLatin1().data());
- }
-}
-
class tst_MessageBoxHandler : public QObject
{
Q_OBJECT
diff --git a/tools/repocompare/mainwindow.h b/tools/repocompare/mainwindow.h
index ecba780dc..ac155b0bd 100644
--- a/tools/repocompare/mainwindow.h
+++ b/tools/repocompare/mainwindow.h
@@ -42,10 +42,11 @@
#include <QMainWindow>
#include <QNetworkAccessManager>
+QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
-
+QT_END_NAMESPACE
class MainWindow : public QMainWindow
{