mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Declare the TypeInfo for some classes/structs.
Qt's container classes benefit from this information.
This commit is contained in:
parent
db52267400
commit
19a5aad90a
@ -34,6 +34,8 @@ struct DeletedObject
|
|||||||
QDateTime deletionTime;
|
QDateTime deletionTime;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Q_DECLARE_TYPEINFO(DeletedObject, Q_MOVABLE_TYPE);
|
||||||
|
|
||||||
class Database : public QObject
|
class Database : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
@ -41,6 +41,8 @@ struct AutoTypeAssociation
|
|||||||
QString sequence;
|
QString sequence;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Q_DECLARE_TYPEINFO(AutoTypeAssociation, Q_MOVABLE_TYPE);
|
||||||
|
|
||||||
class Entry : public QObject
|
class Entry : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
@ -39,6 +39,8 @@ private:
|
|||||||
QByteArray m_data;
|
QByteArray m_data;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Q_DECLARE_TYPEINFO(Uuid, Q_MOVABLE_TYPE);
|
||||||
|
|
||||||
uint qHash(const Uuid& key);
|
uint qHash(const Uuid& key);
|
||||||
|
|
||||||
#endif // KEEPASSX_UUID_H
|
#endif // KEEPASSX_UUID_H
|
||||||
|
@ -40,6 +40,8 @@ struct DatabaseManagerStruct
|
|||||||
bool readOnly;
|
bool readOnly;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Q_DECLARE_TYPEINFO(DatabaseManagerStruct, Q_MOVABLE_TYPE);
|
||||||
|
|
||||||
class DatabaseTabWidget : public QTabWidget
|
class DatabaseTabWidget : public QTabWidget
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
Loading…
Reference in New Issue
Block a user