Changeset View
Changeset View
Standalone View
Standalone View
src/wrtembed/KReportDesignerSection.cpp
Show All 24 Lines | |||||
25 | #include "KReportDesignerItemBase.h" | 25 | #include "KReportDesignerItemBase.h" | ||
26 | #include "KReportUtils.h" | 26 | #include "KReportUtils.h" | ||
27 | #include "KReportPluginInterface.h" | 27 | #include "KReportPluginInterface.h" | ||
28 | #include "KReportPluginManager.h" | 28 | #include "KReportPluginManager.h" | ||
29 | #include "KReportDesignerItemRectBase.h" | 29 | #include "KReportDesignerItemRectBase.h" | ||
30 | #include "KReportDesignerItemLine.h" | 30 | #include "KReportDesignerItemLine.h" | ||
31 | #include "KReportRuler_p.h" | 31 | #include "KReportRuler_p.h" | ||
32 | #include "KReportZoomHandler.h" | 32 | #include "KReportZoomHandler.h" | ||
33 | #include "KReportDpi.h" | ||||
33 | #include "kreport_debug.h" | 34 | #include "kreport_debug.h" | ||
34 | 35 | | |||
35 | #include <QLabel> | 36 | #include <QLabel> | ||
36 | #include <QFrame> | 37 | #include <QFrame> | ||
37 | #include <QDomDocument> | 38 | #include <QDomDocument> | ||
38 | #include <QLayout> | 39 | #include <QLayout> | ||
39 | #include <QGridLayout> | 40 | #include <QGridLayout> | ||
40 | #include <QMouseEvent> | 41 | #include <QMouseEvent> | ||
41 | #include <QApplication> | 42 | #include <QApplication> | ||
42 | #include <QScreen> | | |||
43 | #include <QApplication> | 43 | #include <QApplication> | ||
44 | #include <QIcon> | 44 | #include <QIcon> | ||
45 | 45 | | |||
46 | 46 | | |||
47 | //! @internal | 47 | //! @internal | ||
48 | class ReportResizeBar : public QFrame | 48 | class ReportResizeBar : public QFrame | ||
49 | { | 49 | { | ||
50 | Q_OBJECT | 50 | Q_OBJECT | ||
▲ Show 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | |||||
98 | 98 | | |||
99 | KReportDesignerSection::KReportDesignerSection(KReportDesigner * rptdes) | 99 | KReportDesignerSection::KReportDesignerSection(KReportDesigner * rptdes) | ||
100 | : QWidget(rptdes) | 100 | : QWidget(rptdes) | ||
101 | , d(new Private()) | 101 | , d(new Private()) | ||
102 | { | 102 | { | ||
103 | d->sectionData = new KReportSectionData(this); | 103 | d->sectionData = new KReportSectionData(this); | ||
104 | connect(d->sectionData->propertySet(), SIGNAL(propertyChanged(KPropertySet&,KProperty&)), | 104 | connect(d->sectionData->propertySet(), SIGNAL(propertyChanged(KPropertySet&,KProperty&)), | ||
105 | this, SLOT(slotPropertyChanged(KPropertySet&,KProperty&))); | 105 | this, SLOT(slotPropertyChanged(KPropertySet&,KProperty&))); | ||
106 | QScreen *srn = QApplication::screens().at(0); | 106 | | ||
107 | d->dpiY = srn->logicalDotsPerInchY(); | 107 | d->dpiY = KReportDpi::dpiY(); | ||
108 | 108 | | |||
109 | d->reportDesigner = rptdes; | 109 | d->reportDesigner = rptdes; | ||
110 | setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); | 110 | setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); | ||
111 | 111 | | |||
112 | QGridLayout * glayout = new QGridLayout(this); | 112 | QGridLayout * glayout = new QGridLayout(this); | ||
113 | glayout->setSpacing(0); | 113 | glayout->setSpacing(0); | ||
114 | glayout->setMargin(0); | 114 | glayout->setMargin(0); | ||
115 | glayout->setColumnStretch(1, 1); | 115 | glayout->setColumnStretch(1, 1); | ||
▲ Show 20 Lines • Show All 301 Lines • Show Last 20 Lines |