Changeset View
Changeset View
Standalone View
Standalone View
src/wrtembed/KReportDesignerItemRectBase.cpp
Show All 14 Lines | |||||
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 "KReportDesignerItemRectBase.h" | 19 | #include "KReportDesignerItemRectBase.h" | ||
20 | #include "KReportDesignerSectionView.h" | 20 | #include "KReportDesignerSectionView.h" | ||
21 | #include "KReportDesigner.h" | 21 | #include "KReportDesigner.h" | ||
22 | #include "KReportDesignerSectionScene.h" | 22 | #include "KReportDesignerSectionScene.h" | ||
23 | #include "KReportDpi.h" | 23 | #include "KReportUtils_p.h" | ||
24 | 24 | | |||
25 | #include <KPropertySet> | 25 | #include <KPropertySet> | ||
26 | #include <QGraphicsSceneMouseEvent> | 26 | #include <QGraphicsSceneMouseEvent> | ||
27 | #include <QApplication> | 27 | #include <QApplication> | ||
28 | 28 | | |||
29 | class Q_DECL_HIDDEN KReportDesignerItemRectBase::Private | 29 | class Q_DECL_HIDDEN KReportDesignerItemRectBase::Private | ||
30 | { | 30 | { | ||
31 | public: | 31 | public: | ||
Show All 9 Lines | |||||
41 | 41 | | |||
42 | KReportDesignerItemRectBase::Private::~Private() | 42 | KReportDesignerItemRectBase::Private::~Private() | ||
43 | { | 43 | { | ||
44 | } | 44 | } | ||
45 | 45 | | |||
46 | KReportDesignerItemRectBase::KReportDesignerItemRectBase(KReportDesigner *r, KReportItemBase *b) | 46 | KReportDesignerItemRectBase::KReportDesignerItemRectBase(KReportDesigner *r, KReportItemBase *b) | ||
47 | : QGraphicsRectItem(), KReportDesignerItemBase(r, b), d(new KReportDesignerItemRectBase::Private) | 47 | : QGraphicsRectItem(), KReportDesignerItemBase(r, b), d(new KReportDesignerItemRectBase::Private) | ||
48 | { | 48 | { | ||
49 | m_dpiX = KReportDpi::dpiX(); | 49 | m_dpiX = KReportPrivate::dpiX(); | ||
50 | m_dpiY = KReportDpi::dpiY(); | 50 | m_dpiY = KReportPrivate::dpiY(); | ||
51 | 51 | | |||
52 | d->grabAction = 0; | 52 | d->grabAction = 0; | ||
53 | setAcceptHoverEvents(true); | 53 | setAcceptHoverEvents(true); | ||
54 | 54 | | |||
55 | setFlags(ItemIsSelectable | ItemIsMovable | ItemSendsGeometryChanges); | 55 | setFlags(ItemIsSelectable | ItemIsMovable | ItemSendsGeometryChanges); | ||
56 | } | 56 | } | ||
57 | 57 | | |||
58 | KReportDesignerItemRectBase::~KReportDesignerItemRectBase() | 58 | KReportDesignerItemRectBase::~KReportDesignerItemRectBase() | ||
▲ Show 20 Lines • Show All 329 Lines • Show Last 20 Lines |