Adds prototype classes for better serialization.

This commit is contained in:
mfreiholz
2016-03-31 14:47:19 +02:00
parent a566ea64be
commit 6c587ff8c4
6 changed files with 390 additions and 6 deletions

View File

@@ -17,7 +17,7 @@ class QSplitter;
#endif
// Use namespace
// Disabled with Qt4!
// Disabled with Qt4, it makes problems with signals and slots.
#ifdef ADS_NAMESPACE_ENABLED
#define ADS_NAMESPACE_BEGIN namespace ads {
#define ADS_NAMESPACE_END }
@@ -28,6 +28,12 @@ class QSplitter;
#define ADS_NS
#endif
// Always enable "serialization" namespace.
// It is not required for signals and slots.
#define ADS_NAMESPACE_SER_BEGIN namespace ads { namespace serialization {
#define ADS_NAMESPACE_SER_END }}
#define ADS_NS_SER ::ads::serialization
// Width of the native window frame border (based on OS).
#define ADS_WINDOW_FRAME_BORDER_WIDTH 7