From 13d42bfa628efe97e0dbc1ccdf64e2d99cecc428 Mon Sep 17 00:00:00 2001 From: Ronan Le Tiec Date: Sat, 18 Apr 2020 12:12:04 +0200 Subject: [PATCH] Additional function in VPuzzleLayer --- src/app/puzzle/vpuzzlelayer.cpp | 6 ++++++ src/app/puzzle/vpuzzlelayer.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/app/puzzle/vpuzzlelayer.cpp b/src/app/puzzle/vpuzzlelayer.cpp index f3f8c73b8..a50ac7d3c 100644 --- a/src/app/puzzle/vpuzzlelayer.cpp +++ b/src/app/puzzle/vpuzzlelayer.cpp @@ -42,6 +42,12 @@ VPuzzleLayer::~VPuzzleLayer() } +//--------------------------------------------------------------------------------------------------------------------- +QList VPuzzleLayer::GetPieces() +{ + return m_pieces; +} + //--------------------------------------------------------------------------------------------------------------------- void VPuzzleLayer::AddPiece(VPuzzlePiece *piece) { diff --git a/src/app/puzzle/vpuzzlelayer.h b/src/app/puzzle/vpuzzlelayer.h index fc35e5265..b4fc20038 100644 --- a/src/app/puzzle/vpuzzlelayer.h +++ b/src/app/puzzle/vpuzzlelayer.h @@ -37,6 +37,7 @@ public: VPuzzleLayer(); ~VPuzzleLayer(); + QList GetPieces(); void AddPiece(VPuzzlePiece *piece); void RemovePiece(VPuzzlePiece *piece);