Changeset View
Changeset View
Standalone View
Standalone View
src/wrtembed/KReportRuler_p.h
Show First 20 Lines • Show All 138 Lines • ▼ Show 20 Line(s) | |||||
139 | Q_OBJECT | 139 | Q_OBJECT | ||
140 | public: | 140 | public: | ||
141 | /** | 141 | /** | ||
142 | * Creates a ruler with the orientation @p orientation | 142 | * Creates a ruler with the orientation @p orientation | ||
143 | * @param parent parent widget | 143 | * @param parent parent widget | ||
144 | * @param orientation the orientation of the ruler | 144 | * @param orientation the orientation of the ruler | ||
145 | * @param viewConverter the view converter used to convert from point to pixel | 145 | * @param viewConverter the view converter used to convert from point to pixel | ||
146 | */ | 146 | */ | ||
147 | KReportRuler(QWidget* parent, Qt::Orientation orientation, const KReportZoomHandler* viewConverter); | 147 | KReportRuler(QWidget* parent, Qt::Orientation orientation, | ||
148 | const KReportZoomHandler &zoomHandler); | ||||
148 | ~KReportRuler(); | 149 | ~KReportRuler(); | ||
149 | 150 | | |||
150 | /// For paragraphs each tab definition is represented by this struct. | 151 | /// For paragraphs each tab definition is represented by this struct. | ||
151 | struct Tab { | 152 | struct Tab { | ||
152 | inline Tab(qreal aPosition, QTextOption::TabType aType) : position(aPosition), type(aType) {} | 153 | inline Tab(qreal aPosition, QTextOption::TabType aType) : position(aPosition), type(aType) {} | ||
153 | inline Tab() : position(0.0), type(QTextOption::LeftTab) {} | 154 | inline Tab() : position(0.0), type(QTextOption::LeftTab) {} | ||
154 | qreal position; ///< distance in point from the start of the text-shape | 155 | qreal position; ///< distance in point from the start of the text-shape | ||
155 | QTextOption::TabType type; ///< Determine which type is used. | 156 | QTextOption::TabType type; ///< Determine which type is used. | ||
▲ Show 20 Lines • Show All 204 Lines • ▼ Show 20 Line(s) | 360 | private: | |||
360 | KReportRulerPrivate * const d; | 361 | KReportRulerPrivate * const d; | ||
361 | friend class KReportRulerPrivate; | 362 | friend class KReportRulerPrivate; | ||
362 | }; | 363 | }; | ||
363 | 364 | | |||
364 | 365 | | |||
365 | class KReportRulerPrivate | 366 | class KReportRulerPrivate | ||
366 | { | 367 | { | ||
367 | public: | 368 | public: | ||
368 | KReportRulerPrivate(KReportRuler *parent, const KReportZoomHandler *vc, Qt::Orientation orientation); | 369 | KReportRulerPrivate(KReportRuler *parent, const KReportZoomHandler &zoomHandler, Qt::Orientation orientation); | ||
369 | ~KReportRulerPrivate(); | 370 | ~KReportRulerPrivate(); | ||
370 | 371 | | |||
371 | void emitTabChanged(); | 372 | void emitTabChanged(); | ||
372 | 373 | | |||
373 | KReportUnit unit; | 374 | KReportUnit unit; | ||
374 | const Qt::Orientation orientation; | 375 | const Qt::Orientation orientation; | ||
375 | const KReportZoomHandler * const viewConverter; | 376 | const KReportZoomHandler * const viewConverter; | ||
376 | 377 | | |||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |