Changeset View
Changeset View
Standalone View
Standalone View
src/common/KReportRenderObjects.cpp
Show First 20 Lines • Show All 287 Lines • ▼ Show 20 Line(s) | |||||
288 | { | 288 | { | ||
289 | public: | 289 | public: | ||
290 | Private(); | 290 | Private(); | ||
291 | ~Private(); | 291 | ~Private(); | ||
292 | ORODocument * document; | 292 | ORODocument * document; | ||
293 | QList<OROPrimitive*> primitives; | 293 | QList<OROPrimitive*> primitives; | ||
294 | qint64 row = 0; | 294 | qint64 row = 0; | ||
295 | int height = 0; | 295 | int height = 0; | ||
296 | KReportSectionData::Section type = KReportSectionData::None; | 296 | KReportSectionData::Type type = KReportSectionData::Type::None; | ||
297 | QColor backgroundColor = Qt::white; | 297 | QColor backgroundColor = Qt::white; | ||
298 | }; | 298 | }; | ||
299 | 299 | | |||
300 | OROSection::Private::Private() | 300 | OROSection::Private::Private() | ||
301 | { | 301 | { | ||
302 | 302 | | |||
303 | } | 303 | } | ||
304 | 304 | | |||
▲ Show 20 Lines • Show All 73 Lines • ▼ Show 20 Line(s) | |||||
378 | } | 378 | } | ||
379 | 379 | | |||
380 | 380 | | |||
381 | int OROSection::primitiveCount() const | 381 | int OROSection::primitiveCount() const | ||
382 | { | 382 | { | ||
383 | return d->primitives.count(); | 383 | return d->primitives.count(); | ||
384 | } | 384 | } | ||
385 | 385 | | |||
386 | void OROSection::setType(KReportSectionData::Section t) | 386 | void OROSection::setType(KReportSectionData::Type type) | ||
387 | { | 387 | { | ||
388 | d->type = t; | 388 | d->type = type; | ||
389 | } | 389 | } | ||
390 | 390 | | |||
391 | KReportSectionData::Section OROSection::type() const | 391 | KReportSectionData::Type OROSection::type() const | ||
392 | { | 392 | { | ||
393 | return d->type; | 393 | return d->type; | ||
394 | } | 394 | } | ||
395 | 395 | | |||
396 | void OROSection::setDocument(ORODocument* doc) | 396 | void OROSection::setDocument(ORODocument* doc) | ||
397 | { | 397 | { | ||
398 | d->document = doc; | 398 | d->document = doc; | ||
399 | } | 399 | } | ||
▲ Show 20 Lines • Show All 543 Lines • ▼ Show 20 Line(s) | |||||
943 | 943 | | |||
944 | bool OROCheckBox::value() const | 944 | bool OROCheckBox::value() const | ||
945 | { | 945 | { | ||
946 | return d->value; | 946 | return d->value; | ||
947 | } | 947 | } | ||
948 | 948 | | |||
949 | void OROCheckBox::setCheckType(Type type) | 949 | void OROCheckBox::setCheckType(Type type) | ||
950 | { | 950 | { | ||
951 | if (type == Cross || type == Tick || type == Dot) { | 951 | if (type == Type::Cross || type == Type::Tick || type == Type::Dot) { | ||
952 | d->checkType = type; | 952 | d->checkType = type; | ||
953 | } else { | 953 | } else { | ||
954 | d->checkType = Cross; | 954 | d->checkType = Type::Cross; | ||
955 | } | 955 | } | ||
956 | } | 956 | } | ||
957 | 957 | | |||
958 | OROPrimitive* OROCheckBox::clone() const | 958 | OROPrimitive* OROCheckBox::clone() const | ||
959 | { | 959 | { | ||
960 | OROCheckBox *theClone = new OROCheckBox(); | 960 | OROCheckBox *theClone = new OROCheckBox(); | ||
961 | theClone->setSize(size()); | 961 | theClone->setSize(size()); | ||
962 | theClone->setPosition(position()); | 962 | theClone->setPosition(position()); | ||
963 | theClone->setLineStyle(lineStyle()); | 963 | theClone->setLineStyle(lineStyle()); | ||
964 | theClone->setForegroundColor(foregroundColor()); | 964 | theClone->setForegroundColor(foregroundColor()); | ||
965 | theClone->setValue(value()); | 965 | theClone->setValue(value()); | ||
966 | theClone->setCheckType(checkType()); | 966 | theClone->setCheckType(checkType()); | ||
967 | return theClone; | 967 | return theClone; | ||
968 | } | 968 | } |