1726b55339
--HG-- branch : develop
76 lines
2.2 KiB
C++
76 lines
2.2 KiB
C++
/************************************************************************
|
|
**
|
|
** @file vpropertyformview_p.h
|
|
** @author hedgeware <internal(at)hedgeware.net>
|
|
** @date
|
|
**
|
|
** @brief
|
|
** @copyright
|
|
** All rights reserved. This program and the accompanying materials
|
|
** are made available under the terms of the GNU Lesser General Public License
|
|
** (LGPL) version 2.1 which accompanies this distribution, and is available at
|
|
** http://www.gnu.org/licenses/lgpl-2.1.html
|
|
**
|
|
** This library is distributed in the hope that it will be useful,
|
|
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
** Lesser General Public License for more details.
|
|
**
|
|
*************************************************************************/
|
|
|
|
#ifndef VPROPERTYFORMVIEW_P_H
|
|
#define VPROPERTYFORMVIEW_P_H
|
|
|
|
// ONLY INCLUDE THIS IN .CPP FILES
|
|
|
|
#include "vpropertyformwidget_p.h"
|
|
#include "../vmisc/diagnostic.h"
|
|
|
|
namespace VPE
|
|
{
|
|
|
|
QT_WARNING_PUSH
|
|
QT_WARNING_DISABLE_CLANG("-Wweak-vtables")
|
|
|
|
class VPropertyFormViewPrivate : public VPropertyFormWidgetPrivate
|
|
{
|
|
public:
|
|
//! The current property model
|
|
VPropertyModel* Model;
|
|
|
|
//! The currently used property set
|
|
VPropertySet* PropertySet;
|
|
|
|
//! Determines whether the widget needs to be rebuild
|
|
bool NeedsRebuild;
|
|
|
|
//! Helper variable
|
|
bool IgnoreDataChangedSignal;
|
|
|
|
VPropertyFormViewPrivate()
|
|
: VPropertyFormWidgetPrivate(), Model(nullptr), PropertySet(nullptr), NeedsRebuild(false),
|
|
IgnoreDataChangedSignal(false)
|
|
{}
|
|
|
|
explicit VPropertyFormViewPrivate(VPropertyModel* prop_model)
|
|
: VPropertyFormWidgetPrivate(), Model(prop_model), PropertySet(nullptr), NeedsRebuild(false),
|
|
IgnoreDataChangedSignal(false)
|
|
{}
|
|
|
|
explicit VPropertyFormViewPrivate(VPropertySet* prop_set)
|
|
: VPropertyFormWidgetPrivate(), Model(nullptr), PropertySet(prop_set), NeedsRebuild(false),
|
|
IgnoreDataChangedSignal(false)
|
|
{}
|
|
|
|
virtual ~VPropertyFormViewPrivate() Q_DECL_OVERRIDE {}
|
|
|
|
private:
|
|
Q_DISABLE_COPY(VPropertyFormViewPrivate)
|
|
};
|
|
|
|
QT_WARNING_POP
|
|
|
|
}
|
|
|
|
#endif // VPROPERTYFORMVIEW_P_H
|