mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-24 03:10: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:
@@ -20,7 +20,7 @@
|
||||
#include "qetapp.h"
|
||||
|
||||
// make this class usable with QVariant
|
||||
int t = qRegisterMetaType<TitleBlockTemplateLocation>("TitleBlockTemplateLocation");
|
||||
int TitleBlockTemplateLocation::MetaTypeId = qRegisterMetaType<TitleBlockTemplateLocation>("TitleBlockTemplateLocation");
|
||||
|
||||
/**
|
||||
Constructor
|
||||
@@ -162,3 +162,10 @@ bool TitleBlockTemplateLocation::operator==(const TitleBlockTemplateLocation &lo
|
||||
return(location.collection_ == collection_ && location.name_ == name_);
|
||||
}
|
||||
|
||||
/**
|
||||
@param location A standard title block template location
|
||||
@return a hash identifying this location
|
||||
*/
|
||||
uint qHash(const TitleBlockTemplateLocation &location) {
|
||||
return(qHash(location.toString()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user