Commit 8d1f4bcf authored by Rohit Yadav's avatar Rohit Yadav

Src: Apply Hackings, function return types placed on its own line.

For whole src/ applies Hackings rule that every function return type
gets placed on its own line. TagWidget gets few spelling corrections.
parent ff3dc82b
...@@ -36,12 +36,14 @@ ...@@ -36,12 +36,14 @@
#include <QtDebug> #include <QtDebug>
void Commands::trigger( QUndoCommand* command ) void
Commands::trigger( QUndoCommand* command )
{ {
UndoStack::getInstance()->push( command ); UndoStack::getInstance()->push( command );
} }
#else #else
void Commands::trigger( Commands::Generic* command ) void
Commands::trigger( Commands::Generic* command )
{ {
command->redo(); command->redo();
} }
......
...@@ -52,7 +52,8 @@ KeyboardShortcutHelper::KeyboardShortcutHelper( const QString& name, QAction *ac ...@@ -52,7 +52,8 @@ KeyboardShortcutHelper::KeyboardShortcutHelper( const QString& name, QAction *ac
SettingsManager::Vlmc ); SettingsManager::Vlmc );
} }
void KeyboardShortcutHelper::shortcutUpdated( const QVariant& value ) void
KeyboardShortcutHelper::shortcutUpdated( const QVariant& value )
{ {
if ( m_action == NULL ) if ( m_action == NULL )
setKey( QKeySequence( value.toString() ) ); setKey( QKeySequence( value.toString() ) );
......
...@@ -37,7 +37,7 @@ TagWidget::TagWidget( QWidget *parent, int nbButton, QStringList tagList ) : ...@@ -37,7 +37,7 @@ TagWidget::TagWidget( QWidget *parent, int nbButton, QStringList tagList ) :
m_currentClip( NULL ) m_currentClip( NULL )
{ {
m_ui->setupUi( this ); m_ui->setupUi( this );
m_defaultTagList << "OutDoor" << "Hollidays" << "Seaside" << "Sunset" << "Familly"; m_defaultTagList << "Outdoor" << "Holiday" << "Seaside" << "Sunset" << "Family";
for( int i = 0; i < m_defaultTagList.count(); i++ ) for( int i = 0; i < m_defaultTagList.count(); i++ )
{ {
...@@ -55,7 +55,8 @@ TagWidget::~TagWidget() ...@@ -55,7 +55,8 @@ TagWidget::~TagWidget()
delete m_ui; delete m_ui;
} }
void TagWidget::clipSelected( Clip* clip ) void
TagWidget::clipSelected( Clip* clip )
{ {
m_currentClip = clip; m_currentClip = clip;
setTagTextEdit(); setTagTextEdit();
...@@ -72,7 +73,8 @@ void TagWidget::clipSelected( Clip* clip ) ...@@ -72,7 +73,8 @@ void TagWidget::clipSelected( Clip* clip )
connect( clip, SIGNAL( destroyed() ), this, SLOT( clipDestroyed() ) ); connect( clip, SIGNAL( destroyed() ), this, SLOT( clipDestroyed() ) );
} }
void TagWidget::setMetaTags() void
TagWidget::setMetaTags()
{ {
if ( m_currentClip != NULL ) if ( m_currentClip != NULL )
{ {
...@@ -81,7 +83,8 @@ void TagWidget::setMetaTags() ...@@ -81,7 +83,8 @@ void TagWidget::setMetaTags()
} }
} }
void TagWidget:: buttonTagClicked() void
TagWidget:: buttonTagClicked()
{ {
if ( m_currentClip != NULL ) if ( m_currentClip != NULL )
{ {
...@@ -99,7 +102,8 @@ void TagWidget:: buttonTagClicked() ...@@ -99,7 +102,8 @@ void TagWidget:: buttonTagClicked()
} }
} }
void TagWidget::setTagTextEdit() void
TagWidget::setTagTextEdit()
{ {
QString tags; QString tags;
if ( m_currentClip != NULL ) if ( m_currentClip != NULL )
...@@ -116,7 +120,8 @@ void TagWidget::setTagTextEdit() ...@@ -116,7 +120,8 @@ void TagWidget::setTagTextEdit()
} }
} }
void TagWidget::setButtonList( QStringList tagList ) void
TagWidget::setButtonList( QStringList tagList )
{ {
if ( m_currentClip != NULL ) if ( m_currentClip != NULL )
{ {
...@@ -128,7 +133,8 @@ void TagWidget::setButtonList( QStringList tagList ) ...@@ -128,7 +133,8 @@ void TagWidget::setButtonList( QStringList tagList )
} }
} }
void TagWidget::changeEvent( QEvent *e ) void
TagWidget::changeEvent( QEvent *e )
{ {
QWidget::changeEvent( e ); QWidget::changeEvent( e );
switch ( e->type() ) switch ( e->type() )
......
...@@ -54,22 +54,26 @@ ListViewController::~ListViewController() ...@@ -54,22 +54,26 @@ ListViewController::~ListViewController()
// ViewController method implementation // ViewController method implementation
const QString& ListViewController::title() const const QString&
ListViewController::title() const
{ {
return m_title; return m_title;
} }
QWidget* ListViewController::view() const QWidget*
ListViewController::view() const
{ {
return m_scrollArea; return m_scrollArea;
} }
void ListViewController::addCell( QWidget* cell ) void
ListViewController::addCell( QWidget* cell )
{ {
m_layout->addWidget( cell ); m_layout->addWidget( cell );
} }
void ListViewController::removeCell( QWidget* cell ) void
ListViewController::removeCell( QWidget* cell )
{ {
m_layout->removeWidget( cell ); m_layout->removeWidget( cell );
delete cell; delete cell;
......
...@@ -166,8 +166,8 @@ MediaCellView::setThumbnail( const QPixmap &pixmap ) ...@@ -166,8 +166,8 @@ MediaCellView::setThumbnail( const QPixmap &pixmap )
m_ui->thumbnail->setPixmap( pixmap.scaled( 64, 64, Qt::KeepAspectRatio ) ); m_ui->thumbnail->setPixmap( pixmap.scaled( 64, 64, Qt::KeepAspectRatio ) );
} }
const const QPixmap*
QPixmap* MediaCellView::getThumbnail() const MediaCellView::getThumbnail() const
{ {
return m_ui->thumbnail->pixmap(); return m_ui->thumbnail->pixmap();
} }
......
...@@ -42,7 +42,8 @@ StackViewController::~StackViewController() ...@@ -42,7 +42,8 @@ StackViewController::~StackViewController()
delete m_controllerStack; delete m_controllerStack;
} }
void StackViewController::pushViewController( ViewController* viewController, void
StackViewController::pushViewController( ViewController* viewController,
bool animated ) bool animated )
{ {
animated = false; animated = false;
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</sizepolicy> </sizepolicy>
</property> </property>
<property name="text"> <property name="text">
<string>TextLabel</string> <string>Media List</string>
</property> </property>
<property name="alignment"> <property name="alignment">
<set>Qt::AlignCenter</set> <set>Qt::AlignCenter</set>
......
...@@ -30,7 +30,8 @@ LCDTimecode::LCDTimecode( QWidget* parent ) ...@@ -30,7 +30,8 @@ LCDTimecode::LCDTimecode( QWidget* parent )
setTime( 0, 0, 0, 0 ); setTime( 0, 0, 0, 0 );
} }
void LCDTimecode::setTime( int hours, int minutes, int seconds, int frames ) void
LCDTimecode::setTime( int hours, int minutes, int seconds, int frames )
{ {
QString s = QString("%1:%2:%3.%4") QString s = QString("%1:%2:%3.%4")
.arg( QString::number( hours ), 2, '0' ) .arg( QString::number( hours ), 2, '0' )
......
...@@ -38,7 +38,8 @@ PreviewRuler::PreviewRuler( QWidget* parent ) : ...@@ -38,7 +38,8 @@ PreviewRuler::PreviewRuler( QWidget* parent ) :
m_markerStop = MARKER_DEFAULT; m_markerStop = MARKER_DEFAULT;
} }
void PreviewRuler::setRenderer( GenericRenderer* renderer ) void
PreviewRuler::setRenderer( GenericRenderer* renderer )
{ {
if ( m_renderer ) if ( m_renderer )
{ {
...@@ -54,7 +55,8 @@ void PreviewRuler::setRenderer( GenericRenderer* renderer ) ...@@ -54,7 +55,8 @@ void PreviewRuler::setRenderer( GenericRenderer* renderer )
this, SLOT( clear() ) ); this, SLOT( clear() ) );
} }
void PreviewRuler::paintEvent( QPaintEvent * event ) void
PreviewRuler::paintEvent( QPaintEvent * event )
{ {
Q_UNUSED( event ); Q_UNUSED( event );
Q_ASSERT( m_renderer ); Q_ASSERT( m_renderer );
...@@ -190,7 +192,8 @@ void PreviewRuler::paintEvent( QPaintEvent * event ) ...@@ -190,7 +192,8 @@ void PreviewRuler::paintEvent( QPaintEvent * event )
painter.drawPolygon( cursor ); painter.drawPolygon( cursor );
} }
void PreviewRuler::mousePressEvent( QMouseEvent* event ) void
PreviewRuler::mousePressEvent( QMouseEvent* event )
{ {
m_isSliding = true; m_isSliding = true;
if ( m_renderer->length() > 0 ) if ( m_renderer->length() > 0 )
...@@ -199,7 +202,8 @@ void PreviewRuler::mousePressEvent( QMouseEvent* event ) ...@@ -199,7 +202,8 @@ void PreviewRuler::mousePressEvent( QMouseEvent* event )
} }
} }
void PreviewRuler::mouseMoveEvent( QMouseEvent* event ) void
PreviewRuler::mouseMoveEvent( QMouseEvent* event )
{ {
if ( m_isSliding ) if ( m_isSliding )
{ {
...@@ -212,12 +216,14 @@ void PreviewRuler::mouseMoveEvent( QMouseEvent* event ) ...@@ -212,12 +216,14 @@ void PreviewRuler::mouseMoveEvent( QMouseEvent* event )
} }
} }
void PreviewRuler::mouseReleaseEvent( QMouseEvent* ) void
PreviewRuler::mouseReleaseEvent( QMouseEvent* )
{ {
m_isSliding = false; m_isSliding = false;
} }
void PreviewRuler::setFrame( qint64 frame, bool broadcastEvent /*= false*/ ) void
PreviewRuler::setFrame( qint64 frame, bool broadcastEvent /*= false*/ )
{ {
m_frame = frame; m_frame = frame;
if ( m_isSliding && broadcastEvent == true ) if ( m_isSliding && broadcastEvent == true )
...@@ -227,7 +233,8 @@ void PreviewRuler::setFrame( qint64 frame, bool broadcastEvent /*= false*/ ) ...@@ -227,7 +233,8 @@ void PreviewRuler::setFrame( qint64 frame, bool broadcastEvent /*= false*/ )
update(); update();
} }
void PreviewRuler::updateTimecode( qint64 frames /*= -1*/ ) void
PreviewRuler::updateTimecode( qint64 frames /*= -1*/ )
{ {
if ( m_renderer->length() > 0 ) if ( m_renderer->length() > 0 )
{ {
...@@ -252,7 +259,8 @@ void PreviewRuler::updateTimecode( qint64 frames /*= -1*/ ) ...@@ -252,7 +259,8 @@ void PreviewRuler::updateTimecode( qint64 frames /*= -1*/ )
} }
} }
void PreviewRuler::setMarker( Marker m ) void
PreviewRuler::setMarker( Marker m )
{ {
if ( m == Start ) if ( m == Start )
m_markerStart = m_frame; m_markerStart = m_frame;
...@@ -261,7 +269,8 @@ void PreviewRuler::setMarker( Marker m ) ...@@ -261,7 +269,8 @@ void PreviewRuler::setMarker( Marker m )
update(); update();
} }
qint64 PreviewRuler::getMarker( Marker m ) const qint64
PreviewRuler::getMarker( Marker m ) const
{ {
return ( m == Start ? m_markerStart : m_markerStop ); return ( m == Start ? m_markerStart : m_markerStop );
} }
...@@ -275,7 +284,8 @@ PreviewRuler::hideMarker( Marker m ) ...@@ -275,7 +284,8 @@ PreviewRuler::hideMarker( Marker m )
m_markerStop = -1; m_markerStop = -1;
} }
void PreviewRuler::clear() void
PreviewRuler::clear()
{ {
m_markerStart = MARKER_DEFAULT; m_markerStart = MARKER_DEFAULT;
m_markerStop = MARKER_DEFAULT; m_markerStop = MARKER_DEFAULT;
......
...@@ -45,7 +45,8 @@ KeyboardShortcutInput::KeyboardShortcutInput( const QString& name, ...@@ -45,7 +45,8 @@ KeyboardShortcutInput::KeyboardShortcutInput( const QString& name,
setMaximumWidth( 300 ); setMaximumWidth( 300 );
} }
void KeyboardShortcutInput::mousePressEvent( QMouseEvent* ) void
KeyboardShortcutInput::mousePressEvent( QMouseEvent* )
{ {
m_capturing = true; m_capturing = true;
setDown( true ); setDown( true );
...@@ -55,7 +56,8 @@ void KeyboardShortcutInput::mousePressEvent( QMouseEvent* ) ...@@ -55,7 +56,8 @@ void KeyboardShortcutInput::mousePressEvent( QMouseEvent* )
setText( "" ); setText( "" );
} }
void KeyboardShortcutInput::mouseReleaseEvent( QMouseEvent* ) void
KeyboardShortcutInput::mouseReleaseEvent( QMouseEvent* )
{ {
} }
...@@ -66,7 +68,8 @@ KeyboardShortcutInput::shortcut() const ...@@ -66,7 +68,8 @@ KeyboardShortcutInput::shortcut() const
return seq.toString(); return seq.toString();
} }
void KeyboardShortcutInput::release() void
KeyboardShortcutInput::release()
{ {
QKeySequence seq( m_shortcuts[0], m_shortcuts[1], m_shortcuts[2], m_shortcuts[3] ); QKeySequence seq( m_shortcuts[0], m_shortcuts[1], m_shortcuts[2], m_shortcuts[3] );
...@@ -75,13 +78,15 @@ void KeyboardShortcutInput::release() ...@@ -75,13 +78,15 @@ void KeyboardShortcutInput::release()
setText( seq.toString() ); setText( seq.toString() );
} }
void KeyboardShortcutInput::cancel() void
KeyboardShortcutInput::cancel()
{ {
memcpy( m_shortcuts, m_initialValue, 4 * sizeof(int) ); memcpy( m_shortcuts, m_initialValue, 4 * sizeof(int) );
release(); release();
} }
void KeyboardShortcutInput::keyPressEvent( QKeyEvent* e ) void
KeyboardShortcutInput::keyPressEvent( QKeyEvent* e )
{ {
if ( m_capturing == false ) if ( m_capturing == false )
{ {
...@@ -112,7 +117,8 @@ void KeyboardShortcutInput::keyPressEvent( QKeyEvent* e ) ...@@ -112,7 +117,8 @@ void KeyboardShortcutInput::keyPressEvent( QKeyEvent* e )
} }
} }
void KeyboardShortcutInput::timeout() void
KeyboardShortcutInput::timeout()
{ {
release(); release();
} }
...@@ -52,7 +52,8 @@ Panel::Panel( QWidget* parent ) : QWidget( parent ) ...@@ -52,7 +52,8 @@ Panel::Panel( QWidget* parent ) : QWidget( parent )
QSizePolicy::Expanding ); QSizePolicy::Expanding );
} }
void Panel::addButton( const char* name, void
Panel::addButton( const char* name,
const QIcon& icon, const QIcon& icon,
int index ) int index )
{ {
......
...@@ -67,7 +67,8 @@ AbstractGraphicsMediaItem::~AbstractGraphicsMediaItem() ...@@ -67,7 +67,8 @@ AbstractGraphicsMediaItem::~AbstractGraphicsMediaItem()
ungroup(); ungroup();
} }
void AbstractGraphicsMediaItem::contextMenuEvent( QGraphicsSceneContextMenuEvent* event ) void
AbstractGraphicsMediaItem::contextMenuEvent( QGraphicsSceneContextMenuEvent* event )
{ {
if ( !tracksView() ) if ( !tracksView() )
return; return;
......
...@@ -45,18 +45,21 @@ GraphicsCursorItem::GraphicsCursorItem( const QPen& pen ) : ...@@ -45,18 +45,21 @@ GraphicsCursorItem::GraphicsCursorItem( const QPen& pen ) :
m_boundingRect = QRectF( -2, 0, 3, 0 ); m_boundingRect = QRectF( -2, 0, 3, 0 );
} }
QRectF GraphicsCursorItem::boundingRect() const QRectF
GraphicsCursorItem::boundingRect() const
{ {
return m_boundingRect; return m_boundingRect;
} }
void GraphicsCursorItem::paint( QPainter* painter, const QStyleOptionGraphicsItem*, QWidget* ) void
GraphicsCursorItem::paint( QPainter* painter, const QStyleOptionGraphicsItem*, QWidget* )
{ {
painter->setPen( m_pen ); painter->setPen( m_pen );
painter->drawLine( 0, 0, 0, m_boundingRect.height() ); painter->drawLine( 0, 0, 0, m_boundingRect.height() );
} }
QVariant GraphicsCursorItem::itemChange( GraphicsItemChange change, const QVariant& value ) QVariant
GraphicsCursorItem::itemChange( GraphicsItemChange change, const QVariant& value )
{ {
//Position is changing : //Position is changing :
if ( change == QGraphicsItem::ItemPositionChange ) if ( change == QGraphicsItem::ItemPositionChange )
...@@ -80,7 +83,8 @@ QVariant GraphicsCursorItem::itemChange( GraphicsItemChange change, const QVaria ...@@ -80,7 +83,8 @@ QVariant GraphicsCursorItem::itemChange( GraphicsItemChange change, const QVaria
return QGraphicsItem::itemChange( change, value ); return QGraphicsItem::itemChange( change, value );
} }
void GraphicsCursorItem::mousePressEvent( QGraphicsSceneMouseEvent* event ) void
GraphicsCursorItem::mousePressEvent( QGraphicsSceneMouseEvent* event )
{ {
m_mouseDown = true; m_mouseDown = true;
...@@ -88,7 +92,8 @@ void GraphicsCursorItem::mousePressEvent( QGraphicsSceneMouseEvent* event ) ...@@ -88,7 +92,8 @@ void GraphicsCursorItem::mousePressEvent( QGraphicsSceneMouseEvent* event )
QGraphicsItem::mousePressEvent( event ); QGraphicsItem::mousePressEvent( event );
} }
void GraphicsCursorItem::mouseReleaseEvent( QGraphicsSceneMouseEvent* event ) void
GraphicsCursorItem::mouseReleaseEvent( QGraphicsSceneMouseEvent* event )
{ {
m_mouseDown = false; m_mouseDown = false;
...@@ -96,7 +101,8 @@ void GraphicsCursorItem::mouseReleaseEvent( QGraphicsSceneMouseEvent* event ) ...@@ -96,7 +101,8 @@ void GraphicsCursorItem::mouseReleaseEvent( QGraphicsSceneMouseEvent* event )
QGraphicsItem::mouseReleaseEvent( event ); QGraphicsItem::mouseReleaseEvent( event );
} }
void GraphicsCursorItem::frameChanged( qint64 newFrame, Vlmc::FrameChangedReason reason ) void
GraphicsCursorItem::frameChanged( qint64 newFrame, Vlmc::FrameChangedReason reason )
{ {
if ( reason != Vlmc::TimelineCursor ) if ( reason != Vlmc::TimelineCursor )
{ {
...@@ -104,7 +110,8 @@ void GraphicsCursorItem::frameChanged( qint64 newFrame, Vlmc::FrameChangedReason ...@@ -104,7 +110,8 @@ void GraphicsCursorItem::frameChanged( qint64 newFrame, Vlmc::FrameChangedReason
} }
} }
void GraphicsCursorItem::setHeight( int height ) void
GraphicsCursorItem::setHeight( int height )
{ {
prepareGeometryChange(); prepareGeometryChange();
m_boundingRect.setHeight( height ); m_boundingRect.setHeight( height );
......
...@@ -65,7 +65,8 @@ Workflow::TrackType GraphicsMovieItem::trackType() const ...@@ -65,7 +65,8 @@ Workflow::TrackType GraphicsMovieItem::trackType() const
return Workflow::VideoTrack; return Workflow::VideoTrack;
} }
void GraphicsMovieItem::paint( QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* ) void
GraphicsMovieItem::paint( QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* )
{ {
painter->save(); painter->save();
paintRect( painter, option ); paintRect( painter, option );
...@@ -76,7 +77,8 @@ void GraphicsMovieItem::paint( QPainter* painter, const QStyleOptionGraphicsItem ...@@ -76,7 +77,8 @@ void GraphicsMovieItem::paint( QPainter* painter, const QStyleOptionGraphicsItem
painter->restore(); painter->restore();
} }
void GraphicsMovieItem::paintRect( QPainter* painter, const QStyleOptionGraphicsItem* option ) void
GraphicsMovieItem::paintRect( QPainter* painter, const QStyleOptionGraphicsItem* option )
{ {
QRectF drawRect; QRectF drawRect;
bool drawRound; bool drawRound;
...@@ -148,7 +150,8 @@ void GraphicsMovieItem::paintRect( QPainter* painter, const QStyleOptionGraphics ...@@ -148,7 +150,8 @@ void GraphicsMovieItem::paintRect( QPainter* painter, const QStyleOptionGraphics
setZValue( zNotSelected() ); setZValue( zNotSelected() );
} }
void GraphicsMovieItem::paintTitle( QPainter* painter, const QStyleOptionGraphicsItem* option ) void
GraphicsMovieItem::paintTitle( QPainter* painter, const QStyleOptionGraphicsItem* option )
{ {
Q_UNUSED( option ); Q_UNUSED( option );
......
...@@ -129,7 +129,7 @@ EmphasizedTrackItem::EmphasizedTrackItem( GraphicsTrack *parent, qreal width, qr ...@@ -129,7 +129,7 @@ EmphasizedTrackItem::EmphasizedTrackItem( GraphicsTrack *parent, qreal width, qr
{ {
} }
QRectF QRectF
EmphasizedTrackItem::boundingRect() const EmphasizedTrackItem::boundingRect() const
{ {
return QRectF( 0, 0, m_width, m_height ); return QRectF( 0, 0, m_width, m_height );
...@@ -138,6 +138,6 @@ EmphasizedTrackItem::boundingRect() const ...@@ -138,6 +138,6 @@ EmphasizedTrackItem::boundingRect() const
void void
EmphasizedTrackItem::paint(QPainter *painter, const QStyleOptionGraphicsItem* , QWidget* ) EmphasizedTrackItem::paint(QPainter *painter, const QStyleOptionGraphicsItem* , QWidget* )
{ {
painter->setBrush( QBrush( Qt::darkBlue )); painter->setBrush( QBrush( Qt::darkBlue ) );
painter->drawRect( boundingRect() ); painter->drawRect( boundingRect() );
} }
...@@ -69,7 +69,6 @@ Timeline::Timeline( WorkflowRenderer* renderer, QWidget *parent ) : ...@@ -69,7 +69,6 @@ Timeline::Timeline( WorkflowRenderer* renderer, QWidget *parent ) :
m_ui.controlsFrame->setLayout( tracksControlsLayout ); m_ui.controlsFrame->setLayout( tracksControlsLayout );
tracksControlsLayout->addWidget( m_tracksControls ); tracksControlsLayout->addWidget( m_tracksControls );
changeZoom( 10 ); changeZoom( 10 );
setDuration( 0 ); setDuration( 0 );
...@@ -119,7 +118,8 @@ Timeline::~Timeline() ...@@ -119,7 +118,8 @@ Timeline::~Timeline()
MainWorkflow::destroyInstance(); MainWorkflow::destroyInstance();
} }
void Timeline::changeEvent( QEvent *e ) void
Timeline::changeEvent( QEvent *e )
{ {
switch ( e->type() ) switch ( e->type() )
{ {
...@@ -131,26 +131,30 @@ void Timeline::changeEvent( QEvent *e ) ...@@ -131,26 +131,30 @@ void Timeline::changeEvent( QEvent *e )
} }
} }
void Timeline::clear() void
Timeline::clear()
{ {
// The main workflow will ask the GUI to clear itself. // The main workflow will ask the GUI to clear itself.
m_mainWorkflow->clear(); m_mainWorkflow->clear();
} }
void Timeline::changeZoom( int factor ) void
Timeline::changeZoom( int factor )
{ {
m_tracksRuler->setPixelPerMark( factor ); m_tracksRuler->setPixelPerMark( factor );
m_scale = (double) FRAME_SIZE / m_tracksRuler->comboScale[factor]; m_scale = (double) FRAME_SIZE / m_tracksRuler->comboScale[factor];
m_tracksView->setScale( m_scale ); m_tracksView->setScale( m_scale );
} }
void Timeline::setDuration( int duration ) void
Timeline::setDuration( int duration )
{ {
m_tracksView->setDuration( duration ); m_tracksView->setDuration( duration );
m_tracksRuler->setDuration( duration ); m_tracksRuler->setDuration( duration );
} }
void Timeline::setTool( ToolButtons button ) void
Timeline::setTool( ToolButtons button )
{ {
tracksView()->setTool( button ); tracksView()->setTool( button );
}