mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-26 21:40:52 +01:00
Made the NameList class usable with QVariant.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1401 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -16,6 +16,8 @@
|
|||||||
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include "nameslist.h"
|
#include "nameslist.h"
|
||||||
|
// make this class usable with QVariant
|
||||||
|
int NamesList::MetaTypeId = qRegisterMetaType<NamesList>("NamesList");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Constructeur
|
Constructeur
|
||||||
|
|||||||
@@ -37,6 +37,9 @@ class NamesList {
|
|||||||
private:
|
private:
|
||||||
QHash<QString, QString> hash_names;
|
QHash<QString, QString> hash_names;
|
||||||
|
|
||||||
|
public:
|
||||||
|
static int MetaTypeId;
|
||||||
|
|
||||||
// methodes
|
// methodes
|
||||||
public:
|
public:
|
||||||
// methodes relatives a la gestion de la liste
|
// methodes relatives a la gestion de la liste
|
||||||
@@ -59,4 +62,5 @@ class NamesList {
|
|||||||
protected:
|
protected:
|
||||||
QHash<QString, QString> getXmlOptions(const QHash<QString, QString> & = QHash<QString, QString>()) const;
|
QHash<QString, QString> getXmlOptions(const QHash<QString, QString> & = QHash<QString, QString>()) const;
|
||||||
};
|
};
|
||||||
|
Q_DECLARE_METATYPE(NamesList);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user