Changeset View
Changeset View
Standalone View
Standalone View
src/common/KReportRenderObjects.cpp
Show First 20 Lines • Show All 173 Lines • ▼ Show 20 Line(s) | |||||
174 | // | 174 | // | ||
175 | // OROPage | 175 | // OROPage | ||
176 | // | 176 | // | ||
177 | class Q_DECL_HIDDEN OROPage::Private | 177 | class Q_DECL_HIDDEN OROPage::Private | ||
178 | { | 178 | { | ||
179 | public: | 179 | public: | ||
180 | Private(); | 180 | Private(); | ||
181 | ~Private(); | 181 | ~Private(); | ||
182 | ORODocument *document; | 182 | ORODocument *document; | ||
staniek: not needed, false positive :/ | |||||
183 | QList<OROPrimitive*> primitives; | 183 | QList<OROPrimitive*> primitives; | ||
184 | }; | 184 | }; | ||
185 | 185 | | |||
186 | OROPage::Private::Private() | 186 | OROPage::Private::Private() | ||
187 | { | 187 | { | ||
188 | } | 188 | } | ||
189 | 189 | | |||
190 | OROPage::Private::~Private() | 190 | OROPage::Private::~Private() | ||
▲ Show 20 Lines • Show All 92 Lines • ▼ Show 20 Line(s) | |||||
283 | // OROSection | 283 | // OROSection | ||
284 | // | 284 | // | ||
285 | 285 | | |||
286 | class Q_DECL_HIDDEN OROSection::Private | 286 | class Q_DECL_HIDDEN OROSection::Private | ||
287 | { | 287 | { | ||
288 | public: | 288 | public: | ||
289 | Private(); | 289 | Private(); | ||
290 | ~Private(); | 290 | ~Private(); | ||
291 | ORODocument * document; | 291 | ORODocument * document; | ||
staniek: this `= nullptr` not needed, false positive :/ | |||||
292 | QList<OROPrimitive*> primitives; | 292 | QList<OROPrimitive*> primitives; | ||
293 | qint64 row; | 293 | qint64 row = 0; | ||
294 | int height; | 294 | int height = 0; | ||
295 | KReportSectionData::Section type; | 295 | KReportSectionData::Section type = KReportSectionData::None; | ||
296 | QColor backgroundColor; | 296 | QColor backgroundColor = Qt::white; | ||
297 | }; | 297 | }; | ||
298 | 298 | | |||
299 | OROSection::Private::Private() | 299 | OROSection::Private::Private() | ||
300 | { | 300 | { | ||
301 | height = 0; | 301 | | ||
302 | backgroundColor = Qt::white; | | |||
303 | } | 302 | } | ||
304 | 303 | | |||
305 | OROSection::Private::~Private() | 304 | OROSection::Private::~Private() | ||
306 | { | 305 | { | ||
307 | qDeleteAll(primitives); | 306 | qDeleteAll(primitives); | ||
308 | primitives.clear(); | 307 | primitives.clear(); | ||
309 | } | 308 | } | ||
310 | 309 | | |||
▲ Show 20 Lines • Show All 89 Lines • ▼ Show 20 Line(s) | |||||
400 | 399 | | |||
401 | // | 400 | // | ||
402 | // OROPrimitive | 401 | // OROPrimitive | ||
403 | // | 402 | // | ||
404 | 403 | | |||
405 | class Q_DECL_HIDDEN OROPrimitive::Private | 404 | class Q_DECL_HIDDEN OROPrimitive::Private | ||
406 | { | 405 | { | ||
407 | public: | 406 | public: | ||
408 | OROPage * page; | 407 | OROPage * page = nullptr; | ||
409 | QPointF position; | 408 | QPointF position; | ||
410 | QSizeF size; | 409 | QSizeF size; | ||
411 | }; | 410 | }; | ||
412 | 411 | | |||
413 | OROPrimitive::OROPrimitive() | 412 | OROPrimitive::OROPrimitive() | ||
414 | : d(new Private()) | 413 | : d(new Private()) | ||
415 | { | 414 | { | ||
416 | d->page = 0; | | |||
417 | } | 415 | } | ||
418 | 416 | | |||
419 | OROPrimitive::~OROPrimitive() | 417 | OROPrimitive::~OROPrimitive() | ||
420 | { | 418 | { | ||
421 | if (d->page) { | 419 | if (d->page) { | ||
422 | d->page->takePrimitive(this); | 420 | d->page->takePrimitive(this); | ||
423 | } | 421 | } | ||
424 | 422 | | |||
▲ Show 20 Lines • Show All 545 Lines • Show Last 20 Lines |
not needed, false positive :/