mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 16:20:52 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user