Skip to content
Snippets Groups Projects
Verified Commit f4425af7 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Work around Qt MOC limitations

parent e136bc27
No related branches found
No related tags found
No related merge requests found
Pipeline #4837 passed
......@@ -212,6 +212,11 @@ struct TimelineEvents
{
using variant::variant;
// The Qt MOC chokes on this, because the default implementation from the variant gets into some
// conflict with the variant types not having an operator==. Being explicit fixes that.
bool operator==(const TimelineEvents &) const = delete;
bool operator<(const TimelineEvents &) const = delete;
friend void from_json(const nlohmann::json &obj, TimelineEvents &e);
friend void to_json(nlohmann::json &obj, const TimelineEvents &e);
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment