24 : mSourceParentId(srcId), mTargetParentId(tgtId), mTargetRow(tgtRow)
34 cryptoHash.
addData((
char*)(&mTargetParentId),
sizeof(
u32));
48 if (xmlIn.
name() ==
"target_parent_id")
50 if (xmlIn.
name() ==
"source_parent_id")
60 bool isDirectory =
false;
73 if (!bti)
return false;
78 if (parCti) mSourceParentId = parCti->
getId();
84 sourceRow = sourceIndex.
row();
UserActionFactory for ActionMoveItem.
UserAction * newAction() const
static ActionMoveItemFactory * sFactory
void addToHash(QCryptographicHash &cryptoHash) const override
QString tagname() const override
void writeToXml(QXmlStreamWriter &xmlOut) const override
void readFromXml(QXmlStreamReader &xmlIn) override
ActionMoveItem(u32 tgtId=0, u32 srcId=0, int tgtRow=-1)
(Future) Base class for all tree models related to the details widget.
virtual BaseTreeItem * getParent() const
QModelIndex getIndexFromItem(BaseTreeItem *item) const
BaseTreeItem * getDirectory(u32 directoryId) const
BaseTreeItem * getContext(u32 contextId) const
ContextTreeModel * getContextTreeModel() const
bool moveItem(u32 itemId, bool isDirectory, u32 parentId, int row=-1)
The UserActionFactory is the abstract base class for registration.
The UserAction class is the abstract base class for user interactions.
virtual void setObject(const UserActionObject &obj)
UserActionObjectType::ObjectType type() const
GraphContextManager * gGraphContextManager
void addData(const char *data, int length)
bool isValid() const const
uint toUInt(bool *ok, int base) const const
QStringRef name() const const
QString readElementText(QXmlStreamReader::ReadElementTextBehaviour behaviour)
bool readNextStartElement()
void writeTextElement(const QString &qualifiedName, const QString &text)