timeline: overhauled pointer tool again
Allows dynamic switching between pointer/roll/slide since occasionally this behavior is interchangeable. Fixes a lot of transition behavior (but not all of it).
This commit is contained in:
@@ -49,4 +49,12 @@ bool TrackReference::operator==(const TrackReference &ref) const
|
||||
return type_ == ref.type_ && index_ == ref.index_;
|
||||
}
|
||||
|
||||
uint qHash(const TrackReference &r, uint seed)
|
||||
{
|
||||
// Not super efficient, but couldn't think of any better way to ensure a different hash each time
|
||||
return ::qHash(QStringLiteral("%1:%2").arg(QString::number(r.type()),
|
||||
QString::number(r.index())),
|
||||
seed);
|
||||
}
|
||||
|
||||
OLIVE_NAMESPACE_EXIT
|
||||
|
||||
@@ -36,6 +36,8 @@ public:
|
||||
|
||||
const int& index() const;
|
||||
|
||||
bool operator<(const TrackReference& ref) const;
|
||||
|
||||
bool operator==(const TrackReference& ref) const;
|
||||
|
||||
private:
|
||||
@@ -44,6 +46,8 @@ private:
|
||||
int index_;
|
||||
};
|
||||
|
||||
uint qHash(const TrackReference& r, uint seed);
|
||||
|
||||
OLIVE_NAMESPACE_EXIT
|
||||
|
||||
#endif // TRACKREFERENCE_H
|
||||
|
||||
Reference in New Issue
Block a user