mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-01 17:30:52 +01:00
The *Location classes can now be used with QVariant, QHash and signals/slots.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1487 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
*/
|
||||
#ifndef ELEMENTS_LOCATION_H
|
||||
#define ELEMENTS_LOCATION_H
|
||||
#include <QtCore>
|
||||
#include <QString>
|
||||
class QETProject;
|
||||
/**
|
||||
@@ -52,5 +53,10 @@ class ElementsLocation {
|
||||
private:
|
||||
QString path_;
|
||||
QETProject *project_;
|
||||
|
||||
public:
|
||||
static int MetaTypeId; ///< Id of the corresponding Qt meta type
|
||||
};
|
||||
Q_DECLARE_METATYPE(ElementsLocation)
|
||||
uint qHash(const ElementsLocation &);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user