Support Qt in namespace

This commit is contained in:
Patrick Stewart 2020-10-02 14:41:26 +01:00
parent 29e970ed6f
commit 2e85504d89
6 changed files with 14 additions and 1 deletions

View File

@ -8,10 +8,11 @@
#include <QPainter>
#include <QTreeWidget>
QT_BEGIN_NAMESPACE
namespace Ui {
class TestForm;
}
QT_END_NAMESPACE
class TestForm : public QWidget
{

View File

@ -4,9 +4,11 @@
#include <QMainWindow>
#include "jkqtplotter/graphs/jkqtpimage.h"
QT_BEGIN_NAMESPACE
namespace Ui {
class MandelbrotMainWindow;
}
QT_END_NAMESPACE
class MandelbrotMainWindow : public QMainWindow
{

View File

@ -5,9 +5,11 @@
#include "jkqtplotter/jkqtplotter.h"
#include <QGridLayout>
QT_BEGIN_NAMESPACE
namespace Ui {
class TestMultiplotUI;
}
QT_END_NAMESPACE
class TestMultiplotUI : public QDialog
{

View File

@ -4,9 +4,11 @@
#include <QMainWindow>
#include "jkqtplotter/jkqtplotter.h"
QT_BEGIN_NAMESPACE
namespace Ui {
class TestStyling;
}
QT_END_NAMESPACE
class TestStyling : public QMainWindow
{

View File

@ -4,9 +4,11 @@
#include <QWidget>
#include "jkqtplotter/graphs/jkqtpparsedfunction.h"
QT_BEGIN_NAMESPACE
namespace Ui {
class FormWithJKQTPlotter;
}
QT_END_NAMESPACE
class FormWithJKQTPlotter : public QWidget
{

View File

@ -1721,6 +1721,8 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPlotter: public QWidget {
};
QT_BEGIN_NAMESPACE
/** \brief qHash-variant used by JKQTPlotter
* \internal
* \ingroup jkqtpplottersupprt
@ -1748,4 +1750,6 @@ inline uint qHash(const Qt::KeyboardModifiers &key, uint /*seed*/ ) noexcept(noe
return static_cast<uint>(key);
}
QT_END_NAMESPACE
#endif // JKQTPLOTTER_H