mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-09 15:19:58 +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/>.
|
||||
*/
|
||||
#include "nameslist.h"
|
||||
// make this class usable with QVariant
|
||||
int NamesList::MetaTypeId = qRegisterMetaType<NamesList>("NamesList");
|
||||
|
||||
/**
|
||||
Constructeur
|
||||
|
||||
@@ -37,6 +37,9 @@ class NamesList {
|
||||
private:
|
||||
QHash<QString, QString> hash_names;
|
||||
|
||||
public:
|
||||
static int MetaTypeId;
|
||||
|
||||
// methodes
|
||||
public:
|
||||
// methodes relatives a la gestion de la liste
|
||||
@@ -59,4 +62,5 @@ class NamesList {
|
||||
protected:
|
||||
QHash<QString, QString> getXmlOptions(const QHash<QString, QString> & = QHash<QString, QString>()) const;
|
||||
};
|
||||
Q_DECLARE_METATYPE(NamesList);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user