Skip to content

Commit

Permalink
Work around Qt MOC limitations
Browse files Browse the repository at this point in the history
  • Loading branch information
deepbluev7 committed Jun 2, 2023
1 parent e136bc2 commit f4425af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/mtx/events/collections.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down

0 comments on commit f4425af

Please sign in to comment.