void slotGetAverageColor();
signals:
- void colorPicked(QColor);
+ void colorPicked(const QColor&);
void displayMessage(const QString&, int);
/** @brief When user wants to pick a color, it's better to disable filter so we get proper color values. */
void disableCurrentFilter(bool);
m_zoneColor.setAlpha(180);
}
-void CustomRuler::updateProjectFps(Timecode t)
+void CustomRuler::updateProjectFps(const Timecode &t)
{
m_timecode = t;
mediumMarkDistance = FRAME_SIZE * m_timecode.fps();
m_view->initCursorPos(act->data().toInt());
}
-void CustomRuler::setZone(QPoint p)
+void CustomRuler::setZone(const QPoint &p)
{
m_zoneStart = p.x();
m_zoneEnd = p.y();
{
QWidget::leaveEvent(event);
if (m_cursorColor == palette().link()) {
- m_cursorColor = palette().text();
- update();
+ m_cursorColor = palette().text();
+ update();
}
}
void CustomRuler::slotMoveRuler(int newPos)
{
- m_offset = newPos;
- update();
+ if (m_offset != newPos) {
+ m_offset = newPos;
+ update();
+ }
}
int CustomRuler::offset() const
int outPoint() const;
int inPoint() const;
void setDuration(int d);
- void setZone(QPoint p);
+ void setZone(const QPoint &p);
int offset() const;
- void updateProjectFps(Timecode t);
+ void updateProjectFps(const Timecode &t);
void updateFrameSize();
void updatePalette();
}*/
-int CustomTrackView::getFrameWidth()
+int CustomTrackView::getFrameWidth() const
{
return (int) (m_tracksHeight * m_document->mltProfile().display_aspect_num / m_document->mltProfile().display_aspect_den + 0.5);
}
m_blockRefresh = false;
}
-void CustomTrackView::rebuildGroup(int childTrack, GenTime childPos)
+void CustomTrackView::rebuildGroup(int childTrack, const GenTime &childPos)
{
const QPointF p((int)childPos.frames(m_document->fps()), childTrack * m_tracksHeight + m_tracksHeight / 2);
QList<QGraphicsItem *> list = scene()->items(p);
* Check whether given track has a clip with audio in it. */
bool hasAudio(int track) const;
- int getFrameWidth();
+ int getFrameWidth() const;
/** @brief Returns last requested seeking pos (or SEEK_INACTIVE if no seek). */
int seekPosition() const;
/** @brief Rebuilds a group to fit again after children changed.
* @param childTrack the track of one of the groups children
* @param childPos The position of the same child */
- void rebuildGroup(int childTrack, GenTime childPos);
+ void rebuildGroup(int childTrack, const GenTime &childPos);
/** @brief Rebuilds a group to fit again after children changed.
* @param group The group to rebuild */
void rebuildGroup(AbstractGroupItem *group);