Commit e602d8e5 authored by Ludovic Fauvet's avatar Ludovic Fauvet
Browse files

Remove unused variable

parent 62a0012b
#include <QtDebug>
#include "GraphicsCursorItem.h"
GraphicsCursorItem::GraphicsCursorItem( int height, const QPen& pen )
GraphicsCursorItem::GraphicsCursorItem( const QPen& pen )
: m_pen( pen )
{
setFlags( QGraphicsItem::ItemIgnoresTransformations | QGraphicsItem::ItemIsMovable );
......
......@@ -13,7 +13,7 @@ class GraphicsCursorItem : public QObject, public QGraphicsItem
{
Q_OBJECT
public:
GraphicsCursorItem( int height, const QPen& pen );
GraphicsCursorItem( const QPen& pen );
int cursorPos() const { return ( int )pos().x(); }
virtual QRectF boundingRect() const;
void setHeight( int height );
......
......@@ -57,8 +57,7 @@ TracksView::TracksView( QGraphicsScene* scene, MainWorkflow* mainWorkflow, QWidg
setContentsMargins( 0, 0, 0, 0 );
setFrameStyle( QFrame::NoFrame );
//TODO Remove the GraphicsCursorItem parameter height (not useful anymore)
m_cursorLine = new GraphicsCursorItem( 1, QPen( QColor( 220, 30, 30 ) ) );
m_cursorLine = new GraphicsCursorItem( QPen( QColor( 220, 30, 30 ) ) );
m_scene->addItem( m_cursorLine );
......
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