#include <QToolTip>
#include <QGraphicsSceneMouseEvent>
-AbstractClipItem::AbstractClipItem(const ItemInfo info, const QRectF& rect, double fps) :
+AbstractClipItem::AbstractClipItem(const ItemInfo &info, const QRectF& rect, double fps) :
QObject(),
QGraphicsRectItem(rect),
m_info(info),
return m_keyframes.value(m_selectedKeyframe);
}
-void AbstractClipItem::updateKeyFramePos(const GenTime pos, const double value)
+void AbstractClipItem::updateKeyFramePos(const GenTime &pos, const double value)
{
if (!m_keyframes.contains(m_editedKeyframe))
return;
return m_keyframes.count();
}
-int AbstractClipItem::addKeyFrame(const GenTime pos, const double value)
+int AbstractClipItem::addKeyFrame(const GenTime &pos, const double value)
{
QRectF br = sceneBoundingRect();
double maxh = 100.0 / br.height() / m_keyframeFactor;
#endif
public:
- AbstractClipItem(const ItemInfo info, const QRectF& rect, double fps);
+ AbstractClipItem(const ItemInfo &info, const QRectF& rect, double fps);
virtual ~ AbstractClipItem();
void updateSelectedKeyFrame();
/** @brief Move the selected keyframe (does not influence the effect, only the display in timeline).
* @param pos new Position
* @param value new Value */
- void updateKeyFramePos(const GenTime pos, const double value);
- int addKeyFrame(const GenTime pos, const double value);
+ void updateKeyFramePos(const GenTime &pos, const double value);
+ int addKeyFrame(const GenTime &pos, const double value);
bool hasKeyFrames() const;
int editedKeyFramePos() const;
int selectedKeyFramePos() const;