Changeset View
Changeset View
Standalone View
Standalone View
src/wrtembed/KReportDesignerItemBase.cpp
Show All 11 Lines | |||||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | * Lesser General Public License for more details. | 13 | * Lesser General Public License for more details. | ||
14 | * | 14 | * | ||
15 | * You should have received a copy of the GNU Lesser General Public | 15 | * You should have received a copy of the GNU Lesser General Public | ||
16 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | 16 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
17 | */ | 17 | */ | ||
18 | 18 | | |||
19 | #include "KReportDesignerItemBase.h" | 19 | #include "KReportDesignerItemBase.h" | ||
20 | #include "KReportDesigner.h" | ||||
20 | #include "KReportItemBase.h" | 21 | #include "KReportItemBase.h" | ||
21 | #include "KReportUtils.h" | 22 | #include "KReportUtils.h" | ||
22 | 23 | | |||
23 | #include <QString> | 24 | #include <QString> | ||
24 | #include <QDomDocument> | 25 | #include <QDomDocument> | ||
25 | #include <QCheckBox> | 26 | #include <QCheckBox> | ||
26 | 27 | | |||
27 | class Q_DECL_HIDDEN KReportDesignerItemBase::Private | 28 | class Q_DECL_HIDDEN KReportDesignerItemBase::Private | ||
Show All 19 Lines | |||||
47 | { | 48 | { | ||
48 | delete d; | 49 | delete d; | ||
49 | } | 50 | } | ||
50 | 51 | | |||
51 | KReportDesignerItemBase::KReportDesignerItemBase(KReportDesigner *r, KReportItemBase *b) : d(new Private()) | 52 | KReportDesignerItemBase::KReportDesignerItemBase(KReportDesigner *r, KReportItemBase *b) : d(new Private()) | ||
52 | { | 53 | { | ||
53 | d->reportDesigner = r; | 54 | d->reportDesigner = r; | ||
54 | d->item = b; | 55 | d->item = b; | ||
56 | b->setUnit(r->pageUnit()); | ||||
55 | } | 57 | } | ||
56 | 58 | | |||
57 | void KReportDesignerItemBase::buildXML(QGraphicsItem * item, QDomDocument *doc, QDomElement *parent) | 59 | void KReportDesignerItemBase::buildXML(QGraphicsItem * item, QDomDocument *doc, QDomElement *parent) | ||
58 | { | 60 | { | ||
59 | KReportDesignerItemBase *re = nullptr; | 61 | KReportDesignerItemBase *re = nullptr; | ||
60 | re = dynamic_cast<KReportDesignerItemBase*>(item); | 62 | re = dynamic_cast<KReportDesignerItemBase*>(item); | ||
61 | 63 | | |||
62 | if (re) { | 64 | if (re) { | ||
▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines |