mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-24 12:34:39 +03:00
Merge pull request #71 from asmaloney/missing-initialization
Add missing initializers
This commit is contained in:
commit
fa96013d82
@ -43,7 +43,7 @@ class AlignmentPropItem : public ObjectPropItem
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
AlignmentPropItem():ObjectPropItem(){}
|
AlignmentPropItem():ObjectPropItem(),m_horizEditor(NULL),m_vertEditor(NULL){}
|
||||||
AlignmentPropItem(QObject *object, ObjectsList* objects, const QString& name, const QString& displayName, const QVariant& value, ObjectPropItem* parent, bool readonly=true);
|
AlignmentPropItem(QObject *object, ObjectsList* objects, const QString& name, const QString& displayName, const QVariant& value, ObjectPropItem* parent, bool readonly=true);
|
||||||
QString displayValue() const;
|
QString displayValue() const;
|
||||||
void setPropertyValue(QVariant value);
|
void setPropertyValue(QVariant value);
|
||||||
|
@ -51,7 +51,7 @@ class BaseDesignIntf;
|
|||||||
|
|
||||||
class Marker : public QGraphicsItem{
|
class Marker : public QGraphicsItem{
|
||||||
public:
|
public:
|
||||||
Marker(QGraphicsItem* parent=0):QGraphicsItem(parent){}
|
Marker(QGraphicsItem* parent=0):QGraphicsItem(parent),m_object(NULL){}
|
||||||
QRectF boundingRect() const;
|
QRectF boundingRect() const;
|
||||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *);
|
void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *);
|
||||||
void setRect(QRectF rect){prepareGeometryChange();m_rect=rect;}
|
void setRect(QRectF rect){prepareGeometryChange();m_rect=rect;}
|
||||||
@ -266,7 +266,7 @@ public:
|
|||||||
QColor borderColor() const;
|
QColor borderColor() const;
|
||||||
void setBorderColor(const QColor &borderColor);
|
void setBorderColor(const QColor &borderColor);
|
||||||
void setItemVisible(const bool& value);
|
void setItemVisible(const bool& value);
|
||||||
virtual bool canContainChildren(){ return false;}
|
virtual bool canContainChildren(){ return false;}
|
||||||
ReportSettings* reportSettings() const;
|
ReportSettings* reportSettings() const;
|
||||||
void setReportSettings(ReportSettings *reportSettings);
|
void setReportSettings(ReportSettings *reportSettings);
|
||||||
void setZValueProperty(qreal value);
|
void setZValueProperty(qreal value);
|
||||||
|
@ -71,7 +71,7 @@ class DataSourceModel : public QAbstractItemModel{
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
friend class DataSourceManager;
|
friend class DataSourceManager;
|
||||||
public:
|
public:
|
||||||
DataSourceModel():m_rootNode(new DataNode()){}
|
DataSourceModel():m_dataManager(NULL),m_rootNode(new DataNode()){}
|
||||||
DataSourceModel(DataSourceManager* dataManager);
|
DataSourceModel(DataSourceManager* dataManager);
|
||||||
~DataSourceModel();
|
~DataSourceModel();
|
||||||
QModelIndex index(int row, int column, const QModelIndex &parent) const;
|
QModelIndex index(int row, int column, const QModelIndex &parent) const;
|
||||||
|
@ -13,6 +13,7 @@ class PreviewReportWidgetPrivate
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PreviewReportWidgetPrivate(PreviewReportWidget* previewReportWidget):
|
PreviewReportWidgetPrivate(PreviewReportWidget* previewReportWidget):
|
||||||
|
m_previewPage(NULL), m_report(NULL), m_zoomer(NULL),
|
||||||
m_currentPage(1), m_changingPage(false), m_priorScrolValue(0), m_scalePercent(50),
|
m_currentPage(1), m_changingPage(false), m_priorScrolValue(0), m_scalePercent(50),
|
||||||
q_ptr(previewReportWidget) {}
|
q_ptr(previewReportWidget) {}
|
||||||
bool pageIsVisible();
|
bool pageIsVisible();
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
#include "lrglobal.h"
|
#include "lrglobal.h"
|
||||||
|
|
||||||
LimeReport::PropertyDelegate::PropertyDelegate(QObject *parent)
|
LimeReport::PropertyDelegate::PropertyDelegate(QObject *parent)
|
||||||
:QItemDelegate(parent), m_editingItem(0), m_isEditing(false)
|
:QItemDelegate(parent), m_objectInspector(NULL), m_editingItem(0), m_isEditing(false)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
void LimeReport::PropertyDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
|
void LimeReport::PropertyDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
|
||||||
|
@ -37,7 +37,7 @@ class EnumPropItem : public ObjectPropItem
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
EnumPropItem():ObjectPropItem(){}
|
EnumPropItem():ObjectPropItem(), m_settingValue(false){}
|
||||||
EnumPropItem(QObject* object, ObjectsList* objects, const QString& name, const QString& displayName, const QVariant& value,ObjectPropItem* parent, bool readonly)
|
EnumPropItem(QObject* object, ObjectsList* objects, const QString& name, const QString& displayName, const QVariant& value,ObjectPropItem* parent, bool readonly)
|
||||||
:ObjectPropItem(object, objects, name, displayName, value, parent, readonly),m_settingValue(false){}
|
:ObjectPropItem(object, objects, name, displayName, value, parent, readonly),m_settingValue(false){}
|
||||||
EnumPropItem(QObject* object, ObjectsList* objects, const QString& name, const QString& displayName, const QVariant& value,ObjectPropItem* parent, bool readonly, QVector<int> acceptableValues)
|
EnumPropItem(QObject* object, ObjectsList* objects, const QString& name, const QString& displayName, const QVariant& value,ObjectPropItem* parent, bool readonly, QVector<int> acceptableValues)
|
||||||
|
@ -87,7 +87,7 @@ class FontPropItem : public ObjectPropItem
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
FontPropItem():ObjectPropItem(){}
|
FontPropItem():ObjectPropItem(), m_pointSize(NULL), m_bold(NULL), m_italic(NULL), m_underline(NULL), m_family(NULL) {}
|
||||||
FontPropItem(QObject* object, ObjectsList* objects, const QString& name, const QString& displayName, const QVariant& value,ObjectPropItem* parent, bool readonly);
|
FontPropItem(QObject* object, ObjectsList* objects, const QString& name, const QString& displayName, const QVariant& value,ObjectPropItem* parent, bool readonly);
|
||||||
QWidget* createProperyEditor(QWidget *parent) const;
|
QWidget* createProperyEditor(QWidget *parent) const;
|
||||||
QString displayValue() const;
|
QString displayValue() const;
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
namespace LimeReport{
|
namespace LimeReport{
|
||||||
|
|
||||||
ObjectBrowser::ObjectBrowser(QWidget *parent)
|
ObjectBrowser::ObjectBrowser(QWidget *parent)
|
||||||
:QWidget(parent), m_changingItemSelection(false)
|
:QWidget(parent), m_report(NULL), m_mainWindow(NULL), m_changingItemSelection(false)
|
||||||
{
|
{
|
||||||
QVBoxLayout *layout = new QVBoxLayout(this);
|
QVBoxLayout *layout = new QVBoxLayout(this);
|
||||||
setLayout(layout);
|
setLayout(layout);
|
||||||
|
Loading…
Reference in New Issue
Block a user