mirror of
https://github.com/QuasarApp/installer-framework.git
synced 2025-05-03 16:59:33 +00:00
Fix compile with namespace'ed Qt.
Change-Id: I9c0d399943d2f6eb9a0ab136abf24a5c8b108abb Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
parent
5abd497a56
commit
22a0f6b682
@ -35,7 +35,9 @@
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QNetworkProxy;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace QInstaller {
|
||||
|
||||
|
@ -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
|
||||
|
@ -42,10 +42,11 @@
|
||||
#include <QMainWindow>
|
||||
#include <QNetworkAccessManager>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
namespace Ui {
|
||||
class MainWindow;
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
class MainWindow : public QMainWindow
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user