Declare the TypeInfo for some classes/structs.

Qt's container classes benefit from this information.
This commit is contained in:
Felix Geyer 2012-04-21 18:39:09 +02:00
parent db52267400
commit 19a5aad90a
4 changed files with 8 additions and 0 deletions

View File

@ -34,6 +34,8 @@ struct DeletedObject
QDateTime deletionTime;
};
Q_DECLARE_TYPEINFO(DeletedObject, Q_MOVABLE_TYPE);
class Database : public QObject
{
Q_OBJECT

View File

@ -41,6 +41,8 @@ struct AutoTypeAssociation
QString sequence;
};
Q_DECLARE_TYPEINFO(AutoTypeAssociation, Q_MOVABLE_TYPE);
class Entry : public QObject
{
Q_OBJECT

View File

@ -39,6 +39,8 @@ private:
QByteArray m_data;
};
Q_DECLARE_TYPEINFO(Uuid, Q_MOVABLE_TYPE);
uint qHash(const Uuid& key);
#endif // KEEPASSX_UUID_H

View File

@ -40,6 +40,8 @@ struct DatabaseManagerStruct
bool readOnly;
};
Q_DECLARE_TYPEINFO(DatabaseManagerStruct, Q_MOVABLE_TYPE);
class DatabaseTabWidget : public QTabWidget
{
Q_OBJECT