Use forward declaration where possible.

This commit is contained in:
Roman Telezhynskyi 2020-04-23 15:07:11 +03:00
parent 0e7149a695
commit d769e9d3e2
4 changed files with 12 additions and 4 deletions

View File

@ -26,6 +26,7 @@
**
*************************************************************************/
#include "vpuzzlelayout.h"
#include "vpuzzlelayer.h"
//---------------------------------------------------------------------------------------------------------------------
VPuzzleLayout::VPuzzleLayout() :

View File

@ -31,9 +31,11 @@
#include <QSizeF>
#include <QMarginsF>
#include <QList>
#include "vpuzzlelayer.h"
#include "def.h"
class VPuzzleLayer;
// is this the right place for the definition?
enum class FollowGrainline : qint8 { No = 0, Follow90 = 1, Follow180 = 2};

View File

@ -27,6 +27,10 @@
*************************************************************************/
#include "vpuzzlelayoutfilewriter.h"
#include "vpuzzlelayout.h"
#include "vpuzzlelayer.h"
#include "vpuzzlepiece.h"
#include "layoutliterals.h"
//---------------------------------------------------------------------------------------------------------------------
VPuzzleLayoutFileWriter::VPuzzleLayoutFileWriter()

View File

@ -31,9 +31,10 @@
#include <QXmlStreamWriter>
#include "../ifc/xml/vabstractconverter.h"
#include "vpuzzlelayout.h"
#include "vpuzzlelayer.h"
#include "vpuzzlepiece.h"
class VPuzzleLayout;
class VPuzzleLayer;
class VPuzzlePiece;
class VPuzzleLayoutFileWriter : public QXmlStreamWriter
{