Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeUngroupCommand::Private Struct Reference

Public Member Functions

 Private (KoShapeContainer *_container, const QList< KoShape * > &_shapes, const QList< KoShape * > &_topLevelShapes)
 

Public Attributes

KoShapeContainercontainer
 
QList< KoShape * > shapes
 
QScopedPointer< KUndo2CommandshapesReorderCommand
 
QList< KoShape * > topLevelShapes
 

Detailed Description

Definition at line 16 of file KoShapeUngroupCommand.cpp.

Constructor & Destructor Documentation

◆ Private()

KoShapeUngroupCommand::Private::Private ( KoShapeContainer * _container,
const QList< KoShape * > & _shapes,
const QList< KoShape * > & _topLevelShapes )
inline

Definition at line 18 of file KoShapeUngroupCommand.cpp.

21 : container(_container),
22 shapes(_shapes),
23 topLevelShapes(_topLevelShapes)
24 {
25 std::stable_sort(shapes.begin(), shapes.end(), KoShape::compareShapeZIndex);
27 }
static bool compareShapeZIndex(KoShape *s1, KoShape *s2)
Definition KoShape.cpp:434

References KoShape::compareShapeZIndex(), shapes, and topLevelShapes.

Member Data Documentation

◆ container

KoShapeContainer* KoShapeUngroupCommand::Private::container

Definition at line 30 of file KoShapeUngroupCommand.cpp.

◆ shapes

QList<KoShape*> KoShapeUngroupCommand::Private::shapes

Definition at line 31 of file KoShapeUngroupCommand.cpp.

◆ shapesReorderCommand

QScopedPointer<KUndo2Command> KoShapeUngroupCommand::Private::shapesReorderCommand

Definition at line 33 of file KoShapeUngroupCommand.cpp.

◆ topLevelShapes

QList<KoShape*> KoShapeUngroupCommand::Private::topLevelShapes

Definition at line 32 of file KoShapeUngroupCommand.cpp.


The documentation for this struct was generated from the following file: