Commit 2ac147e1 authored by Ludovic Fauvet's avatar Ludovic Fauvet

Timeline: fix warnings

parent eecb7be3
......@@ -32,12 +32,12 @@ TracksView* AbstractGraphicsMediaItem::tracksView()
return m_tracksView;
}
void AbstractGraphicsMediaItem::mousePressEvent( QGraphicsSceneMouseEvent* event )
void AbstractGraphicsMediaItem::mousePressEvent( QGraphicsSceneMouseEvent* )
{
setCursor( Qt::ClosedHandCursor );
}
void AbstractGraphicsMediaItem::mouseReleaseEvent( QGraphicsSceneMouseEvent* event )
void AbstractGraphicsMediaItem::mouseReleaseEvent( QGraphicsSceneMouseEvent* )
{
setCursor( Qt::OpenHandCursor );
}
......@@ -15,7 +15,7 @@ QRectF GraphicsCursorItem::boundingRect() const
return m_boundingRect;
}
void GraphicsCursorItem::paint( QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget )
void GraphicsCursorItem::paint( QPainter* painter, const QStyleOptionGraphicsItem*, QWidget* )
{
painter->setPen( m_pen );
painter->drawLine( 0, 0, 0, m_height );
......
......@@ -37,7 +37,7 @@ QRectF GraphicsMovieItem::boundingRect() const
return QRectF( 0, 0, m_width, m_height );
}
void GraphicsMovieItem::paint( QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget )
void GraphicsMovieItem::paint( QPainter* painter, const QStyleOptionGraphicsItem*, QWidget* )
{
painter->setBrush( Qt::red );
painter->drawRect( boundingRect() );
......
......@@ -31,7 +31,7 @@
const int TracksRuler::comboScale[] = { 1, 2, 5, 10, 25, 50, 125, 250, 500, 725, 1500, 3000, 6000, 12000};
TracksRuler::TracksRuler( TracksView* tracksView, QWidget* parent )
: QWidget( parent ), m_duration ( 0 ), m_offset( 0 ), m_tracksView( tracksView )
: QWidget( parent ), m_tracksView( tracksView ), m_duration ( 0 ), m_offset( 0 )
{
m_fps = 30;
m_factor = 1;
......
......@@ -74,7 +74,7 @@ void TracksView::dropEvent( QDropEvent* event )
event->acceptProposedAction();
}
void TracksView::dragMoveEvent( QDragMoveEvent* event )
void TracksView::dragMoveEvent( QDragMoveEvent* )
{
}
......@@ -156,7 +156,7 @@ void TracksView::mousePressEvent( QMouseEvent* event )
QGraphicsView::mousePressEvent( event );
}
void TracksView::mouseReleaseEvent( QMouseEvent* event )
void TracksView::mouseReleaseEvent( QMouseEvent* )
{
setDragMode( QGraphicsView::NoDrag );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment