mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-13 07:39:22 +00:00
Declare ResourceId Qt metatype in public header so it's QVariant'able
This commit is contained in:
7 files changed
+8
-10
No files matched your search
@@ -372,6 +372,10 @@ struct ResourceId
|
||||
bool operator!=(const ResourceId u) const { return id != u.id; }
|
||||
DOCUMENT("Compares two ``ResourceId`` objects for less-than.");
|
||||
bool operator<(const ResourceId u) const { return id < u.id; }
|
||||
#if defined(RENDERDOC_QT_COMPAT)
|
||||
operator QVariant() const { return QVariant::fromValue(*this); }
|
||||
#endif
|
||||
|
||||
private:
|
||||
uint64_t id;
|
||||
|
||||
@@ -380,6 +384,10 @@ private:
|
||||
#endif
|
||||
};
|
||||
|
||||
#if defined(RENDERDOC_QT_COMPAT)
|
||||
Q_DECLARE_METATYPE(ResourceId);
|
||||
#endif
|
||||
|
||||
DECLARE_REFLECTION_STRUCT(ResourceId);
|
||||
|
||||
#include "capture_options.h"
|
||||
|
||||
Reference in new issue
Block a user