mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-24 04:33:03 +03:00
fix build for c++ < 17
This commit is contained in:
parent
9af5af74b3
commit
4bb82ffa52
@ -60,7 +60,6 @@ void BandMarker::paint(QPainter *painter, const QStyleOptionGraphicsItem* /**opt
|
|||||||
boundingRect().bottomLeft().y()-4,
|
boundingRect().bottomLeft().y()-4,
|
||||||
boundingRect().width(),4), Qt::lightGray
|
boundingRect().width(),4), Qt::lightGray
|
||||||
);
|
);
|
||||||
qDebug()<<boundingRect().width();
|
|
||||||
painter->setRenderHint(QPainter::Antialiasing);
|
painter->setRenderHint(QPainter::Antialiasing);
|
||||||
qreal size = (boundingRect().width()<boundingRect().height()) ? boundingRect().width() : boundingRect().height();
|
qreal size = (boundingRect().width()<boundingRect().height()) ? boundingRect().width() : boundingRect().height();
|
||||||
QRectF r = QRectF(0,0,size,size);
|
QRectF r = QRectF(0,0,size,size);
|
||||||
|
@ -44,8 +44,11 @@ public:
|
|||||||
Q_DECLARE_METATYPE(ACollectionProperty)
|
Q_DECLARE_METATYPE(ACollectionProperty)
|
||||||
|
|
||||||
namespace LimeReport{
|
namespace LimeReport{
|
||||||
|
#if __cplusplus >= 201703L
|
||||||
const int inline COLLECTION_TYPE_ID = qMetaTypeId<ACollectionProperty>();
|
const int inline COLLECTION_TYPE_ID = qMetaTypeId<ACollectionProperty>();
|
||||||
|
#else
|
||||||
|
const int inline COLLECTION_TYPE_ID = qMetaTypeId<ACollectionProperty>();
|
||||||
|
#endif
|
||||||
class LIMEREPORT_EXPORT ICollectionContainer{
|
class LIMEREPORT_EXPORT ICollectionContainer{
|
||||||
public:
|
public:
|
||||||
virtual QObject* createElement(const QString& collectionName,const QString& elementType)=0;
|
virtual QObject* createElement(const QString& collectionName,const QString& elementType)=0;
|
||||||
|
Loading…
Reference in New Issue
Block a user