Changeset View
Changeset View
Standalone View
Standalone View
tools/selection/kpAbstractSelectionTool.cpp
Show First 20 Lines • Show All 612 Lines • ▼ Show 20 Line(s) | |||||
613 | // protected virtual | 613 | // protected virtual | ||
614 | QVariant kpAbstractSelectionTool::operation (DrawType drawType, Operation op, | 614 | QVariant kpAbstractSelectionTool::operation (DrawType drawType, Operation op, | ||
615 | const QVariant &data1, const QVariant &data2) | 615 | const QVariant &data1, const QVariant &data2) | ||
616 | { | 616 | { | ||
617 | switch (drawType) | 617 | switch (drawType) | ||
618 | { | 618 | { | ||
619 | case None: | 619 | case None: | ||
620 | // NOP. | 620 | // NOP. | ||
621 | return QVariant (); | 621 | return {}; | ||
622 | 622 | | |||
623 | case Create: | 623 | case Create: | ||
624 | return operationCreate (op, data1, data2); | 624 | return operationCreate (op, data1, data2); | ||
625 | 625 | | |||
626 | case Move: | 626 | case Move: | ||
627 | return operationMove (op, data1, data2); | 627 | return operationMove (op, data1, data2); | ||
628 | 628 | | |||
629 | case ResizeScale: | 629 | case ResizeScale: | ||
630 | return operationResizeScale (op, data1, data2); | 630 | return operationResizeScale (op, data1, data2); | ||
631 | 631 | | |||
632 | default: | 632 | default: | ||
633 | Q_ASSERT (!"Unhandled draw type"); | 633 | Q_ASSERT (!"Unhandled draw type"); | ||
634 | return QVariant (); | 634 | return {}; | ||
635 | } | 635 | } | ||
636 | } | 636 | } | ||
637 | 637 | | |||
638 | //--------------------------------------------------------------------- | 638 | //--------------------------------------------------------------------- | ||
639 | 639 | | |||
640 | 640 | | |||
641 | 641 | |