Element collection : improve drag and drop behavior

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4325 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2016-01-16 14:25:20 +00:00
parent 518af4497a
commit 7ead0b64b0
10 changed files with 197 additions and 115 deletions

View File

@@ -24,6 +24,7 @@
#include <QIcon>
class QETProject;
class QMimeData;
/**
* @brief The ElementLocation class
@@ -36,6 +37,7 @@ class ElementLocation
public:
ElementLocation(QString path = QString());
ElementLocation(QString path, QETProject *project);
ElementLocation(const QMimeData *data);
~ElementLocation();
bool setPath(QString path);
@@ -44,6 +46,7 @@ class ElementLocation
bool isElement() const;
bool isDirectory() const;
bool isFileSystem() const;
bool isProject() const;
QString collectionPath(bool protocol = true) const;
QString fileSystemPath() const;
@@ -59,7 +62,7 @@ class ElementLocation
private:
QString m_collection_path;
QString m_file_system_path;
QETProject *m_project;
QETProject *m_project = nullptr;
QDomElement m_xml;
QUuid m_uuid;
QIcon m_icon;