GCC warnings.
This commit is contained in:
parent
f711f8aac1
commit
b861d6a28e
|
@ -130,13 +130,16 @@ void FvUpdater::showUpdaterWindowUpdatedWithCurrentUpdateProposal()
|
||||||
// Create a new window
|
// Create a new window
|
||||||
m_updaterWindow = new FvUpdateWindow(VAbstractValApplication::VApp()->getMainWindow());
|
m_updaterWindow = new FvUpdateWindow(VAbstractValApplication::VApp()->getMainWindow());
|
||||||
m_updaterWindow->UpdateWindowWithCurrentProposedUpdate();
|
m_updaterWindow->UpdateWindowWithCurrentProposedUpdate();
|
||||||
|
if (m_updaterWindow != nullptr)
|
||||||
|
{
|
||||||
m_updaterWindow->exec();
|
m_updaterWindow->exec();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void FvUpdater::hideUpdaterWindow()
|
void FvUpdater::hideUpdaterWindow()
|
||||||
{
|
{
|
||||||
if (m_updaterWindow)
|
if (m_updaterWindow != nullptr)
|
||||||
{
|
{
|
||||||
m_updaterWindow->close();
|
m_updaterWindow->close();
|
||||||
}
|
}
|
||||||
|
@ -352,7 +355,7 @@ void FvUpdater::startDownloadFeed(const QUrl &url)
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void FvUpdater::cancelDownloadFeed()
|
void FvUpdater::cancelDownloadFeed()
|
||||||
{
|
{
|
||||||
if (m_reply)
|
if (m_reply != nullptr)
|
||||||
{
|
{
|
||||||
m_httpRequestAborted = true;
|
m_httpRequestAborted = true;
|
||||||
m_reply->abort();
|
m_reply->abort();
|
||||||
|
|
|
@ -38,6 +38,7 @@
|
||||||
|
|
||||||
QT_WARNING_PUSH
|
QT_WARNING_PUSH
|
||||||
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-methods")
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief The VException class parent for all exception. Could be use for abstract exception
|
* @brief The VException class parent for all exception. Could be use for abstract exception
|
||||||
|
|
|
@ -38,6 +38,10 @@
|
||||||
#include "vdomdocument.h"
|
#include "vdomdocument.h"
|
||||||
#include "../vmisc/projectversion.h"
|
#include "../vmisc/projectversion.h"
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-methods")
|
||||||
|
|
||||||
class VAbstractConverter :public VDomDocument
|
class VAbstractConverter :public VDomDocument
|
||||||
{
|
{
|
||||||
Q_DECLARE_TR_FUNCTIONS(VAbstractConverter)
|
Q_DECLARE_TR_FUNCTIONS(VAbstractConverter)
|
||||||
|
@ -85,4 +89,6 @@ private:
|
||||||
void ReserveFile() const;
|
void ReserveFile() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
QT_WARNING_POP
|
||||||
|
|
||||||
#endif // VABSTRACTCONVERTER_H
|
#endif // VABSTRACTCONVERTER_H
|
||||||
|
|
|
@ -113,56 +113,6 @@ QMUPARSERSHARED_EXPORT QString NameRegExp();
|
||||||
|
|
||||||
QT_WARNING_POP
|
QT_WARNING_POP
|
||||||
|
|
||||||
#ifndef QMU_ATTRIBUTE_UNUSED
|
|
||||||
# if defined(Q_CC_GNU) || defined(Q_CC_CLANG)
|
|
||||||
# define QMU_ATTRIBUTE_UNUSED [[gnu::unused]]
|
|
||||||
#elif defined(Q_CC_MSVC)
|
|
||||||
# define QMU_ATTRIBUTE_UNUSED __declspec(unused)
|
|
||||||
# else
|
|
||||||
# define QMU_ATTRIBUTE_UNUSED
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Example of use
|
|
||||||
//class Base
|
|
||||||
//{
|
|
||||||
// virtual ~Base()
|
|
||||||
// {
|
|
||||||
// }
|
|
||||||
|
|
||||||
// virtual int a(float f)
|
|
||||||
// {
|
|
||||||
// }
|
|
||||||
// virtual void b(double)
|
|
||||||
// {
|
|
||||||
// }
|
|
||||||
//};
|
|
||||||
|
|
||||||
//QMU_MARK_NONFINAL_CLASS(Base)
|
|
||||||
//QMU_ATTRIBUTE_UNUSED(Base, int, a(float))
|
|
||||||
//QMU_ATTRIBUTE_UNUSED(Base, void, b(double)
|
|
||||||
|
|
||||||
#ifndef QMU_MARK_NONFINAL_CLASS
|
|
||||||
#define QMU_MARK_NONFINAL_CLASS(base) \
|
|
||||||
namespace qmu_void_namespace_for_class_##base \
|
|
||||||
{ \
|
|
||||||
struct QMU_ATTRIBUTE_UNUSED temp_marker final : base \
|
|
||||||
{ \
|
|
||||||
}; \
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef QMU_MARK_NONFINAL_METHOD
|
|
||||||
#define QMU_MARK_NONFINAL_METHOD(base, return_type, method) \
|
|
||||||
namespace qmu_void_namespace_for_class_##base##_methos_##method \
|
|
||||||
{ \
|
|
||||||
struct QMU_ATTRIBUTE_UNUSED temp_marker final : base \
|
|
||||||
{ \
|
|
||||||
inline return_type QMU_ATTRIBUTE_UNUSED method override {} \
|
|
||||||
}; \
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
Q_REQUIRED_RESULT static inline bool QmuFuzzyComparePossibleNulls(double p1, double p2);
|
Q_REQUIRED_RESULT static inline bool QmuFuzzyComparePossibleNulls(double p1, double p2);
|
||||||
static inline bool QmuFuzzyComparePossibleNulls(double p1, double p2)
|
static inline bool QmuFuzzyComparePossibleNulls(double p1, double p2)
|
||||||
{
|
{
|
||||||
|
|
|
@ -37,6 +37,9 @@
|
||||||
|
|
||||||
namespace qmu
|
namespace qmu
|
||||||
{
|
{
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
|
||||||
/** @brief Mathematical expressions parser.
|
/** @brief Mathematical expressions parser.
|
||||||
*
|
*
|
||||||
* Standard implementation of the mathematical expressions parser.
|
* Standard implementation of the mathematical expressions parser.
|
||||||
|
@ -99,7 +102,7 @@ namespace qmu
|
||||||
static qreal Max(const qreal*, int); // maximum
|
static qreal Max(const qreal*, int); // maximum
|
||||||
};
|
};
|
||||||
|
|
||||||
QMU_MARK_NONFINAL_CLASS(QmuParser)
|
QT_WARNING_POP
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -52,6 +52,10 @@ namespace qmu
|
||||||
* @brief This file contains the class definition of the qmuparser engine.
|
* @brief This file contains the class definition of the qmuparser engine.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-methods")
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Mathematical expressions parser (base parser engine).
|
* @brief Mathematical expressions parser (base parser engine).
|
||||||
* @author (C) 2013 Ingo Berg
|
* @author (C) 2013 Ingo Berg
|
||||||
|
@ -279,6 +283,8 @@ private:
|
||||||
void StackDump(const QStack<token_type > &a_stVal, const QStack<token_type > &a_stOprt) const;
|
void StackDump(const QStack<token_type > &a_stVal, const QStack<token_type > &a_stOprt) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
QT_WARNING_POP
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
/**
|
/**
|
||||||
* @fn void qmu::QmuParserBase::DefineFun(const string_type &a_strName, fun_type0 a_pFun,
|
* @fn void qmu::QmuParserBase::DefineFun(const string_type &a_strName, fun_type0 a_pFun,
|
||||||
|
|
|
@ -33,6 +33,9 @@
|
||||||
namespace qmu
|
namespace qmu
|
||||||
{
|
{
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
|
||||||
class QMUPARSERSHARED_EXPORT QmuTokenParser : public QmuFormulaBase
|
class QMUPARSERSHARED_EXPORT QmuTokenParser : public QmuFormulaBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -50,7 +53,7 @@ private:
|
||||||
QmuTokenParser();
|
QmuTokenParser();
|
||||||
};
|
};
|
||||||
|
|
||||||
QMU_MARK_NONFINAL_CLASS(QmuTokenParser)
|
QT_WARNING_POP
|
||||||
|
|
||||||
} // namespace qmu
|
} // namespace qmu
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,10 @@
|
||||||
#include "drw_objects.h"
|
#include "drw_objects.h"
|
||||||
#include "drw_header.h"
|
#include "drw_header.h"
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-methods")
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Abstract class (interface) for comunicate dxfReader with the application.
|
* Abstract class (interface) for comunicate dxfReader with the application.
|
||||||
* Inherit your class which takes care of the entities in the
|
* Inherit your class which takes care of the entities in the
|
||||||
|
@ -187,4 +191,6 @@ public:
|
||||||
virtual void writeAppId() { }
|
virtual void writeAppId() { }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
QT_WARNING_POP
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -45,6 +45,7 @@ class VSplinePoint;
|
||||||
|
|
||||||
QT_WARNING_PUSH
|
QT_WARNING_PUSH
|
||||||
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-methods")
|
||||||
|
|
||||||
class VAbstractCubicBezierPath : public VAbstractBezier
|
class VAbstractCubicBezierPath : public VAbstractBezier
|
||||||
{
|
{
|
||||||
|
|
|
@ -47,6 +47,10 @@ typedef QPair<QLineF, QLineF> DirectionArrow;
|
||||||
class QPainterPath;
|
class QPainterPath;
|
||||||
class VAbstractCurveData;
|
class VAbstractCurveData;
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-methods")
|
||||||
|
|
||||||
class VAbstractCurve :public VGObject
|
class VAbstractCurve :public VGObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -117,6 +121,8 @@ private:
|
||||||
static QVector<QPointF> ToEnd(const QVector<QPointF> &points, const QPointF &end, bool *ok = nullptr);
|
static QVector<QPointF> ToEnd(const QVector<QPointF> &points, const QPointF &end, bool *ok = nullptr);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
QT_WARNING_POP
|
||||||
|
|
||||||
Q_DECLARE_TYPEINFO(VAbstractCurve, Q_MOVABLE_TYPE);
|
Q_DECLARE_TYPEINFO(VAbstractCurve, Q_MOVABLE_TYPE);
|
||||||
|
|
||||||
#endif // VABSTRACTCURVE_H
|
#endif // VABSTRACTCURVE_H
|
||||||
|
|
|
@ -38,7 +38,7 @@ QT_WARNING_PUSH
|
||||||
QT_WARNING_DISABLE_GCC("-Weffc++")
|
QT_WARNING_DISABLE_GCC("-Weffc++")
|
||||||
QT_WARNING_DISABLE_GCC("-Wnon-virtual-dtor")
|
QT_WARNING_DISABLE_GCC("-Wnon-virtual-dtor")
|
||||||
|
|
||||||
class VCubicBezierPathData : public QSharedData
|
class VCubicBezierPathData final : public QSharedData
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,10 @@ class QRectF;
|
||||||
class VGObjectData;
|
class VGObjectData;
|
||||||
class QTransform;
|
class QTransform;
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-methods")
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief The VGObject class keep information graphical objects.
|
* @brief The VGObject class keep information graphical objects.
|
||||||
*/
|
*/
|
||||||
|
@ -120,6 +124,8 @@ private:
|
||||||
static int PointInCircle (const QPointF &p, const QPointF ¢er, qreal radius);
|
static int PointInCircle (const QPointF &p, const QPointF ¢er, qreal radius);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
QT_WARNING_POP
|
||||||
|
|
||||||
Q_DECLARE_TYPEINFO(VGObject, Q_MOVABLE_TYPE);
|
Q_DECLARE_TYPEINFO(VGObject, Q_MOVABLE_TYPE);
|
||||||
|
|
||||||
#endif // VGOBJECT_H
|
#endif // VGOBJECT_H
|
||||||
|
|
|
@ -44,6 +44,7 @@ class VPointFData;
|
||||||
|
|
||||||
QT_WARNING_PUSH
|
QT_WARNING_PUSH
|
||||||
QT_WARNING_DISABLE_INTEL(2304)
|
QT_WARNING_DISABLE_INTEL(2304)
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief The VPointF class keep data of point.
|
* @brief The VPointF class keep data of point.
|
||||||
|
@ -97,7 +98,6 @@ private:
|
||||||
|
|
||||||
Q_DECLARE_METATYPE(VPointF)
|
Q_DECLARE_METATYPE(VPointF)
|
||||||
Q_DECLARE_TYPEINFO(VPointF, Q_MOVABLE_TYPE);
|
Q_DECLARE_TYPEINFO(VPointF, Q_MOVABLE_TYPE);
|
||||||
V_MARK_NONFINAL_CLASS(VPointF)
|
|
||||||
|
|
||||||
QT_WARNING_POP
|
QT_WARNING_POP
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ class VSplineData;
|
||||||
/**
|
/**
|
||||||
* @brief VSpline class that implements the spline.
|
* @brief VSpline class that implements the spline.
|
||||||
*/
|
*/
|
||||||
class VSpline :public VAbstractCubicBezier
|
class VSpline final :public VAbstractCubicBezier
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
VSpline();
|
VSpline();
|
||||||
|
|
|
@ -50,7 +50,7 @@ class VSplinePathData;
|
||||||
/**
|
/**
|
||||||
* @brief The VSplinePath class keep information about splinePath.
|
* @brief The VSplinePath class keep information about splinePath.
|
||||||
*/
|
*/
|
||||||
class VSplinePath :public VAbstractCubicBezierPath
|
class VSplinePath final :public VAbstractCubicBezierPath
|
||||||
{
|
{
|
||||||
Q_DECLARE_TR_FUNCTIONS(VSplinePath)
|
Q_DECLARE_TR_FUNCTIONS(VSplinePath)
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -39,13 +39,13 @@
|
||||||
|
|
||||||
class VBestSquareData;
|
class VBestSquareData;
|
||||||
|
|
||||||
class VBestSquare
|
class VBestSquare final
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
VBestSquare();
|
VBestSquare();
|
||||||
VBestSquare(QSizeF sheetSize, bool saveLength, bool isPortrait);
|
VBestSquare(QSizeF sheetSize, bool saveLength, bool isPortrait);
|
||||||
VBestSquare(const VBestSquare &res);
|
VBestSquare(const VBestSquare &res);
|
||||||
virtual ~VBestSquare();
|
~VBestSquare();
|
||||||
|
|
||||||
VBestSquare &operator=(const VBestSquare &res);
|
VBestSquare &operator=(const VBestSquare &res);
|
||||||
#ifdef Q_COMPILER_RVALUE_REFS
|
#ifdef Q_COMPILER_RVALUE_REFS
|
||||||
|
|
|
@ -56,6 +56,10 @@ class VPieceLabelData;
|
||||||
class VAbstractPattern;
|
class VAbstractPattern;
|
||||||
class VPatternLabelData;
|
class VPatternLabelData;
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-methods")
|
||||||
|
|
||||||
class VLayoutPiece :public VAbstractPiece
|
class VLayoutPiece :public VAbstractPiece
|
||||||
{
|
{
|
||||||
Q_DECLARE_TR_FUNCTIONS(VLayoutPiece)
|
Q_DECLARE_TR_FUNCTIONS(VLayoutPiece)
|
||||||
|
@ -218,6 +222,8 @@ private:
|
||||||
int EdgeByPoint(const QVector<QPointF> &path, const QPointF &p1) const;
|
int EdgeByPoint(const QVector<QPointF> &path, const QPointF &p1) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
QT_WARNING_POP
|
||||||
|
|
||||||
Q_DECLARE_TYPEINFO(VLayoutPiece, Q_MOVABLE_TYPE);
|
Q_DECLARE_TYPEINFO(VLayoutPiece, Q_MOVABLE_TYPE);
|
||||||
|
|
||||||
#endif // VLAYOUTDETAIL_H
|
#endif // VLAYOUTDETAIL_H
|
||||||
|
|
|
@ -72,9 +72,9 @@ public:
|
||||||
VPosition(const VPosition&) = default;
|
VPosition(const VPosition&) = default;
|
||||||
VPosition& operator=(const VPosition&) = default;
|
VPosition& operator=(const VPosition&) = default;
|
||||||
VPosition& operator=(VPosition&&) = default;
|
VPosition& operator=(VPosition&&) = default;
|
||||||
virtual ~VPosition()= default;
|
~VPosition()= default;
|
||||||
|
|
||||||
virtual void run();
|
void run();
|
||||||
|
|
||||||
VBestSquare getBestResult() const;
|
VBestSquare getBestResult() const;
|
||||||
|
|
||||||
|
|
|
@ -354,56 +354,6 @@ if (!(cond)) \
|
||||||
#endif // defined(__cplusplus)
|
#endif // defined(__cplusplus)
|
||||||
#endif // QT_VERSION < QT_VERSION_CHECK(5, 8, 0)
|
#endif // QT_VERSION < QT_VERSION_CHECK(5, 8, 0)
|
||||||
|
|
||||||
#ifndef V_ATTRIBUTE_UNUSED
|
|
||||||
# if defined(Q_CC_GNU) || defined(Q_CC_CLANG)
|
|
||||||
# define V_ATTRIBUTE_UNUSED [[gnu::unused]]
|
|
||||||
#elif defined(Q_CC_MSVC)
|
|
||||||
# define V_ATTRIBUTE_UNUSED __declspec(unused)
|
|
||||||
# else
|
|
||||||
# define V_ATTRIBUTE_UNUSED
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Example of use
|
|
||||||
//class Base
|
|
||||||
//{
|
|
||||||
// virtual ~Base()
|
|
||||||
// {
|
|
||||||
// }
|
|
||||||
|
|
||||||
// virtual int a(float f)
|
|
||||||
// {
|
|
||||||
// }
|
|
||||||
// virtual void b(double)
|
|
||||||
// {
|
|
||||||
// }
|
|
||||||
//};
|
|
||||||
|
|
||||||
//V_MARK_NONFINAL_CLASS(Base)
|
|
||||||
//V_ATTRIBUTE_UNUSED(Base, int, a(float))
|
|
||||||
//V_ATTRIBUTE_UNUSED(Base, void, b(double)
|
|
||||||
|
|
||||||
#ifndef V_MARK_NONFINAL_CLASS
|
|
||||||
#define V_MARK_NONFINAL_CLASS(base) \
|
|
||||||
namespace v_void_namespace_for_class_##base \
|
|
||||||
{ \
|
|
||||||
struct V_ATTRIBUTE_UNUSED temp_marker final : base \
|
|
||||||
{ \
|
|
||||||
}; \
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef V_MARK_NONFINAL_METHOD
|
|
||||||
#define V_MARK_NONFINAL_METHOD(base, return_type, method) \
|
|
||||||
namespace v_void_namespace_for_class_##base##_methos_##method \
|
|
||||||
{ \
|
|
||||||
struct V_ATTRIBUTE_UNUSED temp_marker final : base \
|
|
||||||
{ \
|
|
||||||
inline return_type V_ATTRIBUTE_UNUSED method override {} \
|
|
||||||
}; \
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
bool IsOptionSet(int argc, char *argv[], const char *option);
|
bool IsOptionSet(int argc, char *argv[], const char *option);
|
||||||
void InitHighDpiScaling(int argc, char *argv[]);
|
void InitHighDpiScaling(int argc, char *argv[]);
|
||||||
|
|
||||||
|
@ -726,6 +676,10 @@ Q_DECLARE_TYPEINFO(CustomSARecord, Q_MOVABLE_TYPE);
|
||||||
#define QXT_D(PUB) PUB##Private& d = qxt_d()
|
#define QXT_D(PUB) PUB##Private& d = qxt_d()
|
||||||
#define QXT_P(PUB) PUB& p = qxt_p()
|
#define QXT_P(PUB) PUB& p = qxt_p()
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-methods")
|
||||||
|
|
||||||
template <typename PUB>
|
template <typename PUB>
|
||||||
class QxtPrivate
|
class QxtPrivate
|
||||||
{
|
{
|
||||||
|
@ -762,6 +716,8 @@ private:
|
||||||
PUB* qxt_p_ptr;
|
PUB* qxt_p_ptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
QT_WARNING_POP
|
||||||
|
|
||||||
template <typename PUB, typename PVT>
|
template <typename PUB, typename PVT>
|
||||||
class QxtPrivateInterface
|
class QxtPrivateInterface
|
||||||
{
|
{
|
||||||
|
|
|
@ -51,6 +51,7 @@ class VCommonSettings;
|
||||||
|
|
||||||
QT_WARNING_PUSH
|
QT_WARNING_PUSH
|
||||||
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-methods")
|
||||||
|
|
||||||
class VAbstractApplication : public QApplication
|
class VAbstractApplication : public QApplication
|
||||||
{
|
{
|
||||||
|
|
|
@ -57,7 +57,7 @@ class VInternalVariable;
|
||||||
* result = cal->EvalFormula(data->PlainVariables(), formula);
|
* result = cal->EvalFormula(data->PlainVariables(), formula);
|
||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
class Calculator:public qmu::QmuFormulaBase
|
class Calculator final : public qmu::QmuFormulaBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Calculator();
|
Calculator();
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
class VArc;
|
class VArc;
|
||||||
class VEllipticalArc;
|
class VEllipticalArc;
|
||||||
|
|
||||||
class VArcRadius :public VCurveVariable
|
class VArcRadius final :public VCurveVariable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
VArcRadius();
|
VArcRadius();
|
||||||
|
|
|
@ -91,14 +91,17 @@ bool VCurveVariable::Filter(quint32 id)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wnull-dereference")
|
||||||
|
|
||||||
if (d->parentId != NULL_ID)//Do not check if value zero
|
if (d->parentId != NULL_ID)//Do not check if value zero
|
||||||
{// Not all curves have parents. Only those who was created after cutting the parent curve.
|
{// Not all curves have parents. Only those who was created after cutting the parent curve.
|
||||||
return d->id == id || d->parentId == id;
|
return d->id == id || d->parentId == id;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return d->id == id;
|
return d->id == id;
|
||||||
}
|
|
||||||
|
QT_WARNING_POP
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
|
@ -38,6 +38,10 @@
|
||||||
|
|
||||||
class VInternalVariableData;
|
class VInternalVariableData;
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-methods")
|
||||||
|
|
||||||
class VInternalVariable
|
class VInternalVariable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -73,6 +77,8 @@ private:
|
||||||
QSharedDataPointer<VInternalVariableData> d;
|
QSharedDataPointer<VInternalVariableData> d;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
QT_WARNING_POP
|
||||||
|
|
||||||
Q_DECLARE_TYPEINFO(VInternalVariable, Q_MOVABLE_TYPE);
|
Q_DECLARE_TYPEINFO(VInternalVariable, Q_MOVABLE_TYPE);
|
||||||
|
|
||||||
#endif // VINTERNALVARIABLE_H
|
#endif // VINTERNALVARIABLE_H
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
class VLineAngleData;
|
class VLineAngleData;
|
||||||
class VPointF;
|
class VPointF;
|
||||||
|
|
||||||
class VLineAngle :public VInternalVariable
|
class VLineAngle final :public VInternalVariable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
VLineAngle();
|
VLineAngle();
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
class VLengthLineData;
|
class VLengthLineData;
|
||||||
class VPointF;
|
class VPointF;
|
||||||
|
|
||||||
class VLengthLine :public VInternalVariable
|
class VLengthLine final :public VInternalVariable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
VLengthLine();
|
VLengthLine();
|
||||||
|
|
|
@ -47,7 +47,7 @@ class VMeasurementData;
|
||||||
/**
|
/**
|
||||||
* @brief The VMeasurement class keep data row of multisize table
|
* @brief The VMeasurement class keep data row of multisize table
|
||||||
*/
|
*/
|
||||||
class VMeasurement :public VVariable
|
class VMeasurement final :public VVariable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
VMeasurement(quint32 index, const QString &name, qreal baseA, qreal baseB, qreal baseC, qreal base);
|
VMeasurement(quint32 index, const QString &name, qreal baseA, qreal baseB, qreal baseC, qreal base);
|
||||||
|
|
|
@ -70,6 +70,9 @@ Q_DECLARE_METATYPE(QPE::Vector3D) // todo
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
|
||||||
class VPROPERTYEXPLORERSHARED_EXPORT QVector3DProperty : public VProperty
|
class VPROPERTYEXPLORERSHARED_EXPORT QVector3DProperty : public VProperty
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
@ -113,7 +116,7 @@ private:
|
||||||
Q_DISABLE_COPY(QVector3DProperty)
|
Q_DISABLE_COPY(QVector3DProperty)
|
||||||
};
|
};
|
||||||
|
|
||||||
VPE_MARK_NONFINAL_CLASS(QVector3DProperty)
|
QT_WARNING_POP
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,9 @@
|
||||||
namespace VPE
|
namespace VPE
|
||||||
{
|
{
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
|
||||||
//! The VBoolProperty can take two states: True or False.
|
//! The VBoolProperty can take two states: True or False.
|
||||||
class VPROPERTYEXPLORERSHARED_EXPORT VBoolProperty : public VProperty
|
class VPROPERTYEXPLORERSHARED_EXPORT VBoolProperty : public VProperty
|
||||||
{
|
{
|
||||||
|
@ -80,7 +83,7 @@ private:
|
||||||
Q_DISABLE_COPY(VBoolProperty)
|
Q_DISABLE_COPY(VBoolProperty)
|
||||||
};
|
};
|
||||||
|
|
||||||
VPE_MARK_NONFINAL_CLASS(VBoolProperty)
|
QT_WARNING_POP
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,9 @@
|
||||||
namespace VPE
|
namespace VPE
|
||||||
{
|
{
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
|
||||||
class VPROPERTYEXPLORERSHARED_EXPORT VColorProperty : public VProperty
|
class VPROPERTYEXPLORERSHARED_EXPORT VColorProperty : public VProperty
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
@ -74,7 +77,7 @@ private:
|
||||||
Q_DISABLE_COPY(VColorProperty)
|
Q_DISABLE_COPY(VColorProperty)
|
||||||
};
|
};
|
||||||
|
|
||||||
VPE_MARK_NONFINAL_CLASS(VColorProperty)
|
QT_WARNING_POP
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -41,6 +41,9 @@ class VPropertyPrivate;
|
||||||
namespace VPE
|
namespace VPE
|
||||||
{
|
{
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
|
||||||
class VPROPERTYEXPLORERSHARED_EXPORT VEmptyProperty : public VProperty
|
class VPROPERTYEXPLORERSHARED_EXPORT VEmptyProperty : public VProperty
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
@ -87,7 +90,7 @@ private:
|
||||||
Q_DISABLE_COPY(VEmptyProperty)
|
Q_DISABLE_COPY(VEmptyProperty)
|
||||||
};
|
};
|
||||||
|
|
||||||
VPE_MARK_NONFINAL_CLASS(VEmptyProperty)
|
QT_WARNING_POP
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,10 @@
|
||||||
namespace VPE
|
namespace VPE
|
||||||
{
|
{
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-methods")
|
||||||
|
|
||||||
class VPROPERTYEXPLORERSHARED_EXPORT VEnumProperty : public VProperty
|
class VPROPERTYEXPLORERSHARED_EXPORT VEnumProperty : public VProperty
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
@ -104,7 +108,7 @@ private:
|
||||||
Q_DISABLE_COPY(VEnumProperty)
|
Q_DISABLE_COPY(VEnumProperty)
|
||||||
};
|
};
|
||||||
|
|
||||||
VPE_MARK_NONFINAL_CLASS(VEnumProperty)
|
QT_WARNING_POP
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,10 @@
|
||||||
namespace VPE
|
namespace VPE
|
||||||
{
|
{
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-methods")
|
||||||
|
|
||||||
class VPROPERTYEXPLORERSHARED_EXPORT VFileProperty : public VProperty
|
class VPROPERTYEXPLORERSHARED_EXPORT VFileProperty : public VProperty
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
@ -108,7 +112,7 @@ private:
|
||||||
Q_DISABLE_COPY(VFileProperty)
|
Q_DISABLE_COPY(VFileProperty)
|
||||||
};
|
};
|
||||||
|
|
||||||
VPE_MARK_NONFINAL_CLASS(VFileProperty)
|
QT_WARNING_POP
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,8 @@
|
||||||
namespace VPE
|
namespace VPE
|
||||||
{
|
{
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
|
||||||
class VPROPERTYEXPLORERSHARED_EXPORT VFileEditWidget : public QWidget
|
class VPROPERTYEXPLORERSHARED_EXPORT VFileEditWidget : public QWidget
|
||||||
{
|
{
|
||||||
|
@ -113,7 +115,7 @@ private:
|
||||||
Q_DISABLE_COPY(VFileEditWidget)
|
Q_DISABLE_COPY(VFileEditWidget)
|
||||||
};
|
};
|
||||||
|
|
||||||
VPE_MARK_NONFINAL_CLASS(VFileEditWidget)
|
QT_WARNING_POP
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,8 @@
|
||||||
namespace VPE
|
namespace VPE
|
||||||
{
|
{
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
|
||||||
//! Class for holding an integer property
|
//! Class for holding an integer property
|
||||||
class VPROPERTYEXPLORERSHARED_EXPORT VIntegerProperty : public VProperty
|
class VPROPERTYEXPLORERSHARED_EXPORT VIntegerProperty : public VProperty
|
||||||
|
@ -146,7 +148,7 @@ private:
|
||||||
Q_DISABLE_COPY(VDoubleProperty)
|
Q_DISABLE_COPY(VDoubleProperty)
|
||||||
};
|
};
|
||||||
|
|
||||||
VPE_MARK_NONFINAL_CLASS(VDoubleProperty)
|
QT_WARNING_POP
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,9 @@
|
||||||
namespace VPE
|
namespace VPE
|
||||||
{
|
{
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
|
||||||
//! This property can be used to handle key shortcuts
|
//! This property can be used to handle key shortcuts
|
||||||
class VPROPERTYEXPLORERSHARED_EXPORT VShortcutProperty : public VProperty
|
class VPROPERTYEXPLORERSHARED_EXPORT VShortcutProperty : public VProperty
|
||||||
{
|
{
|
||||||
|
@ -81,7 +84,7 @@ private:
|
||||||
Q_DISABLE_COPY(VShortcutProperty)
|
Q_DISABLE_COPY(VShortcutProperty)
|
||||||
};
|
};
|
||||||
|
|
||||||
VPE_MARK_NONFINAL_CLASS(VShortcutProperty)
|
QT_WARNING_POP
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,9 @@
|
||||||
namespace VPE
|
namespace VPE
|
||||||
{
|
{
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
|
||||||
//! Class for holding a text property
|
//! Class for holding a text property
|
||||||
class VPROPERTYEXPLORERSHARED_EXPORT VTextProperty : public VProperty
|
class VPROPERTYEXPLORERSHARED_EXPORT VTextProperty : public VProperty
|
||||||
{
|
{
|
||||||
|
@ -86,7 +89,7 @@ private:
|
||||||
Q_DISABLE_COPY(VTextProperty)
|
Q_DISABLE_COPY(VTextProperty)
|
||||||
};
|
};
|
||||||
|
|
||||||
VPE_MARK_NONFINAL_CLASS(VTextProperty)
|
QT_WARNING_POP
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,9 @@ namespace VPE
|
||||||
// todo: this way, this class doesn't really make sense. What we have to do is pass a widget factory instead of the
|
// todo: this way, this class doesn't really make sense. What we have to do is pass a widget factory instead of the
|
||||||
// actual widget!
|
// actual widget!
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
|
||||||
//! This property holds a QWidget and displays it, if the view supports that. If not, it will behave like an empty
|
//! This property holds a QWidget and displays it, if the view supports that. If not, it will behave like an empty
|
||||||
//! property
|
//! property
|
||||||
class VPROPERTYEXPLORERSHARED_EXPORT VWidgetProperty: public VEmptyProperty
|
class VPROPERTYEXPLORERSHARED_EXPORT VWidgetProperty: public VEmptyProperty
|
||||||
|
@ -67,7 +70,7 @@ public:
|
||||||
VProperty* container = nullptr) const override;
|
VProperty* container = nullptr) const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
VPE_MARK_NONFINAL_CLASS(VWidgetProperty)
|
QT_WARNING_POP
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,10 @@ public:
|
||||||
|
|
||||||
class VPropertyPrivate;
|
class VPropertyPrivate;
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-methods")
|
||||||
|
|
||||||
class VPROPERTYEXPLORERSHARED_EXPORT VProperty : public QObject
|
class VPROPERTYEXPLORERSHARED_EXPORT VProperty : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
@ -226,7 +230,7 @@ private:
|
||||||
Q_DISABLE_COPY(VProperty)
|
Q_DISABLE_COPY(VProperty)
|
||||||
};
|
};
|
||||||
|
|
||||||
VPE_MARK_NONFINAL_CLASS(VProperty)
|
QT_WARNING_POP
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,10 @@
|
||||||
namespace VPE
|
namespace VPE
|
||||||
{
|
{
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-methods")
|
||||||
|
|
||||||
class VPropertyPrivate
|
class VPropertyPrivate
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -86,6 +90,8 @@ private:
|
||||||
Q_DISABLE_COPY(VPropertyPrivate)
|
Q_DISABLE_COPY(VPropertyPrivate)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
QT_WARNING_POP
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // VPROPERTY_P_H
|
#endif // VPROPERTY_P_H
|
||||||
|
|
|
@ -29,54 +29,4 @@
|
||||||
# define VPROPERTYEXPLORERSHARED_EXPORT Q_DECL_IMPORT
|
# define VPROPERTYEXPLORERSHARED_EXPORT Q_DECL_IMPORT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef VPE_ATTRIBUTE_UNUSED
|
|
||||||
# if defined(Q_CC_GNU) || defined(Q_CC_CLANG)
|
|
||||||
# define VPE_ATTRIBUTE_UNUSED [[gnu::unused]]
|
|
||||||
#elif defined(Q_CC_MSVC)
|
|
||||||
# define VPE_ATTRIBUTE_UNUSED __declspec(unused)
|
|
||||||
# else
|
|
||||||
# define VPE_ATTRIBUTE_UNUSED
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Example of use
|
|
||||||
//class Base
|
|
||||||
//{
|
|
||||||
// virtual ~Base()
|
|
||||||
// {
|
|
||||||
// }
|
|
||||||
|
|
||||||
// virtual int a(float f)
|
|
||||||
// {
|
|
||||||
// }
|
|
||||||
// virtual void b(double)
|
|
||||||
// {
|
|
||||||
// }
|
|
||||||
//};
|
|
||||||
|
|
||||||
//VPE_MARK_NONFINAL_CLASS(Base)
|
|
||||||
//VPE_ATTRIBUTE_UNUSED(Base, int, a(float))
|
|
||||||
//VPE_ATTRIBUTE_UNUSED(Base, void, b(double)
|
|
||||||
|
|
||||||
#ifndef VPE_MARK_NONFINAL_CLASS
|
|
||||||
#define VPE_MARK_NONFINAL_CLASS(base) \
|
|
||||||
namespace vpe_void_namespace_for_class_##base \
|
|
||||||
{ \
|
|
||||||
struct VPE_ATTRIBUTE_UNUSED temp_marker final : base \
|
|
||||||
{ \
|
|
||||||
}; \
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef VPE_MARK_NONFINAL_METHOD
|
|
||||||
#define VPE_MARK_NONFINAL_METHOD(base, return_type, method) \
|
|
||||||
namespace vpe_void_namespace_for_class_##base##_methos_##method \
|
|
||||||
{ \
|
|
||||||
struct VPE_ATTRIBUTE_UNUSED temp_marker final : base \
|
|
||||||
{ \
|
|
||||||
inline return_type VPE_ATTRIBUTE_UNUSED method override {} \
|
|
||||||
}; \
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif // VPROPERTYEXPLORER_GLOBAL_H
|
#endif // VPROPERTYEXPLORER_GLOBAL_H
|
||||||
|
|
|
@ -36,6 +36,10 @@ namespace VPE
|
||||||
|
|
||||||
class VPropertyModel;
|
class VPropertyModel;
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-methods")
|
||||||
|
|
||||||
//! This class populates a form layout with the properties in a model
|
//! This class populates a form layout with the properties in a model
|
||||||
class VPROPERTYEXPLORERSHARED_EXPORT VPropertyFormView : public VPropertyFormWidget
|
class VPROPERTYEXPLORERSHARED_EXPORT VPropertyFormView : public VPropertyFormWidget
|
||||||
{
|
{
|
||||||
|
@ -103,7 +107,7 @@ private:
|
||||||
Q_DISABLE_COPY(VPropertyFormView)
|
Q_DISABLE_COPY(VPropertyFormView)
|
||||||
};
|
};
|
||||||
|
|
||||||
VPE_MARK_NONFINAL_CLASS(VPropertyFormView)
|
QT_WARNING_POP
|
||||||
|
|
||||||
} // Namespace VPE
|
} // Namespace VPE
|
||||||
|
|
||||||
|
|
|
@ -41,6 +41,10 @@ namespace VPE
|
||||||
class VPropertyModelPrivate;
|
class VPropertyModelPrivate;
|
||||||
class VPropertySet;
|
class VPropertySet;
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-methods")
|
||||||
|
|
||||||
//! \brief This is the base model for managing all the properties
|
//! \brief This is the base model for managing all the properties
|
||||||
//! and passing them to the view.
|
//! and passing them to the view.
|
||||||
//!
|
//!
|
||||||
|
@ -169,7 +173,7 @@ private:
|
||||||
Q_DISABLE_COPY(VPropertyModel)
|
Q_DISABLE_COPY(VPropertyModel)
|
||||||
};
|
};
|
||||||
|
|
||||||
VPE_MARK_NONFINAL_CLASS(VPropertyModel)
|
QT_WARNING_POP
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,10 @@ namespace VPE
|
||||||
// Forward declaration
|
// Forward declaration
|
||||||
class VPropertySetPrivate;
|
class VPropertySetPrivate;
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-methods")
|
||||||
|
|
||||||
// todo: better description
|
// todo: better description
|
||||||
//! \brief VPropertySet is a simple class for managing a set of properties.
|
//! \brief VPropertySet is a simple class for managing a set of properties.
|
||||||
//! If you don't need all the Model-functionality, chose this class
|
//! If you don't need all the Model-functionality, chose this class
|
||||||
|
@ -138,7 +142,7 @@ private:
|
||||||
Q_DISABLE_COPY(VPropertySet)
|
Q_DISABLE_COPY(VPropertySet)
|
||||||
};
|
};
|
||||||
|
|
||||||
VPE_MARK_NONFINAL_CLASS(VPropertySet)
|
QT_WARNING_POP
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -310,13 +310,16 @@ void DialogArc::SetRadius(const QString &value)
|
||||||
*/
|
*/
|
||||||
void DialogArc::ChosenObject(quint32 id, const SceneObject &type)
|
void DialogArc::ChosenObject(quint32 id, const SceneObject &type)
|
||||||
{
|
{
|
||||||
if (prepare == false)// After first choose we ignore all objects
|
if (not prepare)// After first choose we ignore all objects
|
||||||
{
|
{
|
||||||
if (type == SceneObject::Point)
|
if (type == SceneObject::Point)
|
||||||
{
|
{
|
||||||
if (SetObject(id, ui->comboBoxBasePoint, QString()))
|
if (SetObject(id, ui->comboBoxBasePoint, QString()))
|
||||||
|
{
|
||||||
|
if (vis != nullptr)
|
||||||
{
|
{
|
||||||
vis->VisualMode(id);
|
vis->VisualMode(id);
|
||||||
|
}
|
||||||
prepare = true;
|
prepare = true;
|
||||||
this->setModal(true);
|
this->setModal(true);
|
||||||
this->show();
|
this->show();
|
||||||
|
|
|
@ -295,8 +295,11 @@ void DialogArcWithLength::ChosenObject(quint32 id, const SceneObject &type)
|
||||||
if (type == SceneObject::Point)
|
if (type == SceneObject::Point)
|
||||||
{
|
{
|
||||||
if (SetObject(id, ui->comboBoxCenter, QString()))
|
if (SetObject(id, ui->comboBoxCenter, QString()))
|
||||||
|
{
|
||||||
|
if (vis != nullptr)
|
||||||
{
|
{
|
||||||
vis->VisualMode(id);
|
vis->VisualMode(id);
|
||||||
|
}
|
||||||
prepare = true;
|
prepare = true;
|
||||||
this->setModal(true);
|
this->setModal(true);
|
||||||
this->show();
|
this->show();
|
||||||
|
|
|
@ -169,8 +169,11 @@ void DialogCutArc::ChosenObject(quint32 id, const SceneObject &type)
|
||||||
if (type == SceneObject::Arc)
|
if (type == SceneObject::Arc)
|
||||||
{
|
{
|
||||||
if (SetObject(id, ui->comboBoxArc, QString()))
|
if (SetObject(id, ui->comboBoxArc, QString()))
|
||||||
|
{
|
||||||
|
if (vis != nullptr)
|
||||||
{
|
{
|
||||||
vis->VisualMode(id);
|
vis->VisualMode(id);
|
||||||
|
}
|
||||||
prepare = true;
|
prepare = true;
|
||||||
this->setModal(true);
|
this->setModal(true);
|
||||||
this->show();
|
this->show();
|
||||||
|
|
|
@ -177,8 +177,11 @@ void DialogCutSpline::ChosenObject(quint32 id, const SceneObject &type)
|
||||||
if (type == SceneObject::Spline)
|
if (type == SceneObject::Spline)
|
||||||
{
|
{
|
||||||
if (SetObject(id, ui->comboBoxSpline, QString()))
|
if (SetObject(id, ui->comboBoxSpline, QString()))
|
||||||
|
{
|
||||||
|
if (vis != nullptr)
|
||||||
{
|
{
|
||||||
vis->VisualMode(id);
|
vis->VisualMode(id);
|
||||||
|
}
|
||||||
prepare = true;
|
prepare = true;
|
||||||
this->setModal(true);
|
this->setModal(true);
|
||||||
this->show();
|
this->show();
|
||||||
|
|
|
@ -177,8 +177,11 @@ void DialogCutSplinePath::ChosenObject(quint32 id, const SceneObject &type)
|
||||||
if (type == SceneObject::SplinePath)
|
if (type == SceneObject::SplinePath)
|
||||||
{
|
{
|
||||||
if (SetObject(id, ui->comboBoxSplinePath, QString()))
|
if (SetObject(id, ui->comboBoxSplinePath, QString()))
|
||||||
|
{
|
||||||
|
if (vis != nullptr)
|
||||||
{
|
{
|
||||||
vis->VisualMode(id);
|
vis->VisualMode(id);
|
||||||
|
}
|
||||||
prepare = true;
|
prepare = true;
|
||||||
this->setModal(true);
|
this->setModal(true);
|
||||||
this->show();
|
this->show();
|
||||||
|
|
|
@ -558,8 +558,11 @@ void DialogEllipticalArc::ChosenObject(quint32 id, const SceneObject &type)
|
||||||
if (type == SceneObject::Point)
|
if (type == SceneObject::Point)
|
||||||
{
|
{
|
||||||
if (SetObject(id, ui->comboBoxBasePoint, QString()))
|
if (SetObject(id, ui->comboBoxBasePoint, QString()))
|
||||||
|
{
|
||||||
|
if (vis != nullptr)
|
||||||
{
|
{
|
||||||
vis->VisualMode(id);
|
vis->VisualMode(id);
|
||||||
|
}
|
||||||
prepare = true;
|
prepare = true;
|
||||||
this->setModal(true);
|
this->setModal(true);
|
||||||
this->show();
|
this->show();
|
||||||
|
|
|
@ -213,8 +213,11 @@ void DialogEndLine::ChosenObject(quint32 id, const SceneObject &type)
|
||||||
if (type == SceneObject::Point)
|
if (type == SceneObject::Point)
|
||||||
{
|
{
|
||||||
if (SetObject(id, ui->comboBoxBasePoint, QString()))
|
if (SetObject(id, ui->comboBoxBasePoint, QString()))
|
||||||
|
{
|
||||||
|
if (vis != nullptr)
|
||||||
{
|
{
|
||||||
vis->VisualMode(id);
|
vis->VisualMode(id);
|
||||||
|
}
|
||||||
VAbstractMainWindow *window =
|
VAbstractMainWindow *window =
|
||||||
qobject_cast<VAbstractMainWindow *>(VAbstractValApplication::VApp()->getMainWindow());
|
qobject_cast<VAbstractMainWindow *>(VAbstractValApplication::VApp()->getMainWindow());
|
||||||
SCASSERT(window != nullptr)
|
SCASSERT(window != nullptr)
|
||||||
|
|
|
@ -189,8 +189,11 @@ void DialogLine::ChosenObject(quint32 id, const SceneObject &type)
|
||||||
if (SetObject(id, ui->comboBoxFirstPoint, tr("Select second point")))
|
if (SetObject(id, ui->comboBoxFirstPoint, tr("Select second point")))
|
||||||
{
|
{
|
||||||
number++;
|
number++;
|
||||||
|
if (vis != nullptr)
|
||||||
|
{
|
||||||
vis->VisualMode(id);
|
vis->VisualMode(id);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
if (getCurrentObjectId(ui->comboBoxFirstPoint) != id)
|
if (getCurrentObjectId(ui->comboBoxFirstPoint) != id)
|
||||||
|
|
|
@ -70,6 +70,10 @@ class VAbstractTool;
|
||||||
|
|
||||||
enum class FillComboBox : qint8 { Whole, NoChildren};
|
enum class FillComboBox : qint8 { Whole, NoChildren};
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-methods")
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief The DialogTool class parent for all dialog of tools.
|
* @brief The DialogTool class parent for all dialog of tools.
|
||||||
*/
|
*/
|
||||||
|
@ -232,10 +236,10 @@ private:
|
||||||
template <typename GObject>
|
template <typename GObject>
|
||||||
void FillCombo(QComboBox *box, GOType gType, FillComboBox rule = FillComboBox::Whole,
|
void FillCombo(QComboBox *box, GOType gType, FillComboBox rule = FillComboBox::Whole,
|
||||||
const quint32 &ch1 = NULL_ID, const quint32 &ch2 = NULL_ID) const;
|
const quint32 &ch1 = NULL_ID, const quint32 &ch2 = NULL_ID) const;
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
QT_WARNING_POP
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
template <typename T>
|
template <typename T>
|
||||||
QVector<T> DialogTool::GetListInternals(const QListWidget *list) const
|
QVector<T> DialogTool::GetListInternals(const QListWidget *list) const
|
||||||
|
|
|
@ -94,7 +94,10 @@ void DialogDuplicateDetail::ChosenObject(quint32 id, const SceneObject &type)
|
||||||
}
|
}
|
||||||
|
|
||||||
emit ToolTip(tr("Click to place duplicate"));
|
emit ToolTip(tr("Click to place duplicate"));
|
||||||
|
if (vis != nullptr)
|
||||||
|
{
|
||||||
vis->VisualMode(id);
|
vis->VisualMode(id);
|
||||||
|
}
|
||||||
prepare = true;
|
prepare = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -130,8 +130,11 @@ void DialogPin::ChosenObject(quint32 id, const SceneObject &type)
|
||||||
if (type == SceneObject::Point)
|
if (type == SceneObject::Point)
|
||||||
{
|
{
|
||||||
if (SetObject(id, ui->comboBoxPoint, QString()))
|
if (SetObject(id, ui->comboBoxPoint, QString()))
|
||||||
|
{
|
||||||
|
if (vis != nullptr)
|
||||||
{
|
{
|
||||||
vis->VisualMode(id);
|
vis->VisualMode(id);
|
||||||
|
}
|
||||||
CheckPoint();
|
CheckPoint();
|
||||||
prepare = true;
|
prepare = true;
|
||||||
this->setModal(true);
|
this->setModal(true);
|
||||||
|
|
|
@ -254,8 +254,11 @@ void DialogPlaceLabel::ChosenObject(quint32 id, const SceneObject &type)
|
||||||
if (type == SceneObject::Point)
|
if (type == SceneObject::Point)
|
||||||
{
|
{
|
||||||
if (SetObject(id, ui->comboBoxPoint, QString()))
|
if (SetObject(id, ui->comboBoxPoint, QString()))
|
||||||
|
{
|
||||||
|
if (vis != nullptr)
|
||||||
{
|
{
|
||||||
vis->VisualMode(id);
|
vis->VisualMode(id);
|
||||||
|
}
|
||||||
CheckPoint();
|
CheckPoint();
|
||||||
prepare = true;
|
prepare = true;
|
||||||
|
|
||||||
|
|
|
@ -51,6 +51,10 @@ class VInternalVariable;
|
||||||
|
|
||||||
enum class Mode : qint8 {Creation, Show};
|
enum class Mode : qint8 {Creation, Show};
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-methods")
|
||||||
|
|
||||||
class Visualization : public QObject
|
class Visualization : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
@ -120,6 +124,8 @@ private:
|
||||||
Q_DISABLE_COPY(Visualization)
|
Q_DISABLE_COPY(Visualization)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
QT_WARNING_POP
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
template <typename Item>
|
template <typename Item>
|
||||||
inline void Visualization::AddItem(Item *item)
|
inline void Visualization::AddItem(Item *item)
|
||||||
|
|
|
@ -39,6 +39,7 @@ struct VFinalMeasurement;
|
||||||
|
|
||||||
QT_WARNING_PUSH
|
QT_WARNING_PUSH
|
||||||
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-methods")
|
||||||
|
|
||||||
class VAbstractMainWindow : public QMainWindow
|
class VAbstractMainWindow : public QMainWindow
|
||||||
{
|
{
|
||||||
|
|
|
@ -36,6 +36,7 @@
|
||||||
|
|
||||||
QT_WARNING_PUSH
|
QT_WARNING_PUSH
|
||||||
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types")
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wsuggest-final-methods")
|
||||||
|
|
||||||
class VCurvePathItem : public QGraphicsPathItem
|
class VCurvePathItem : public QGraphicsPathItem
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user