Commit 5d02a6c4 authored by Jarosław Staniek's avatar Jarosław Staniek

Move some code from headers (safer)

GIT_SILENT
parent 5d7168da
......@@ -24,6 +24,11 @@
#include <klocalizedstring.h>
#include <renderobjects.h>
KoReportItemLine::KoReportItemLine()
{
createProperties();
}
KoReportItemLine::KoReportItemLine(QDomNode & element)
{
createProperties();
......
......@@ -39,9 +39,7 @@ class Line;
class KOREPORT_EXPORT KoReportItemLine : public KoReportItemBase
{
public:
KoReportItemLine() {
createProperties();
}
KoReportItemLine();
explicit KoReportItemLine(QDomNode & element);
~KoReportItemLine();
......
......@@ -25,6 +25,11 @@
#include <renderobjects.h>
#include "renderer/scripting/krscripthandler.h"
KoReportItemCheck::KoReportItemCheck()
{
createProperties();
}
KoReportItemCheck::KoReportItemCheck(QDomNode &element) : m_value(false)
{
createProperties();
......
......@@ -34,10 +34,8 @@ class Check;
class KoReportItemCheck : public KoReportItemBase
{
public:
KoReportItemCheck() {
createProperties();
};
KoReportItemCheck(QDomNode &element);
KoReportItemCheck();
explicit KoReportItemCheck(QDomNode &element);
virtual ~KoReportItemCheck();
virtual QString typeName() const;
......
......@@ -25,9 +25,9 @@
#include "renderer/scripting/krscripthandler.h"
KoReportItemField::~KoReportItemField()
KoReportItemField::KoReportItemField()
{
delete m_set;
createProperties();
}
KoReportItemField::KoReportItemField(QDomNode & element)
......@@ -74,6 +74,11 @@ KoReportItemField::KoReportItemField(QDomNode & element)
}
}
KoReportItemField::~KoReportItemField()
{
delete m_set;
}
void KoReportItemField::createProperties()
{
m_set = new KoProperty::Set(0, "Field");
......
......@@ -36,10 +36,8 @@ class Field;
class KoReportItemField : public KoReportItemBase
{
public:
KoReportItemField() {
createProperties();
};
KoReportItemField(QDomNode & element);
KoReportItemField();
explicit KoReportItemField(QDomNode & element);
virtual ~KoReportItemField();
virtual QString typeName() const;
......
......@@ -25,6 +25,11 @@
#include <kcodecs.h>
#include <renderobjects.h>
KoReportItemImage::KoReportItemImage()
{
createProperties();
}
KoReportItemImage::KoReportItemImage(QDomNode & element)
{
createProperties();
......
......@@ -42,9 +42,7 @@ class Image;
class KoReportItemImage : public KoReportItemBase
{
public:
KoReportItemImage() {
createProperties();
}
KoReportItemImage();
explicit KoReportItemImage(QDomNode & element);
virtual ~KoReportItemImage();
......
......@@ -24,6 +24,11 @@
#include <kglobalsettings.h>
#include "renderobjects.h"
KoReportItemLabel::KoReportItemLabel()
{
createProperties();
}
KoReportItemLabel::KoReportItemLabel(QDomNode & element)
{
createProperties();
......
......@@ -36,10 +36,8 @@ class Label;
class KoReportItemLabel : public KoReportItemBase
{
public:
KoReportItemLabel() {
createProperties();
};
KoReportItemLabel(QDomNode & element);
KoReportItemLabel();
explicit KoReportItemLabel(QDomNode & element);
virtual ~KoReportItemLabel();
virtual QString typeName() const;
......
......@@ -26,6 +26,11 @@
#include <QPrinter>
#include <renderobjects.h>
KoReportItemText::KoReportItemText()
{
createProperties();
}
KoReportItemText::KoReportItemText(QDomNode & element) : m_bottomPadding(0.0)
{
QDomNodeList nl = element.childNodes();
......
......@@ -36,9 +36,7 @@ class Text;
class KoReportItemText : public KoReportItemBase
{
public:
KoReportItemText() {
createProperties();
};
KoReportItemText();
KoReportItemText(QDomNode & element);
virtual ~KoReportItemText();
......
......@@ -24,6 +24,11 @@
#include "barcodes.h"
KoReportItemBarcode::KoReportItemBarcode()
{
createProperties();
}
KoReportItemBarcode::KoReportItemBarcode(QDomNode & element)
{
createProperties();
......
......@@ -35,9 +35,7 @@ class Barcode;
class KoReportItemBarcode : public KoReportItemBase
{
public:
KoReportItemBarcode() {
createProperties();
}
KoReportItemBarcode();
explicit KoReportItemBarcode(QDomNode &element);
~KoReportItemBarcode();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment