[vlmc-devel] MediaCellView: Apply HACKINGS

Rohit Yadav git at videolan.org
Fri Feb 11 01:35:00 CET 2011


vlmc | branch: master | Rohit Yadav <rohityadav89 at gmail.com> | Fri Feb 11 06:17:27 2011 +0530| [d50163fc885d5ebb9e6160bd1775699ef44615fb] | committer: Rohit Yadav

MediaCellView: Apply HACKINGS

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=d50163fc885d5ebb9e6160bd1775699ef44615fb
---

 src/Gui/library/MediaCellView.cpp |   30 ++++++++++++++++++++----------
 1 files changed, 20 insertions(+), 10 deletions(-)

diff --git a/src/Gui/library/MediaCellView.cpp b/src/Gui/library/MediaCellView.cpp
index 8d499be..0fd9594 100644
--- a/src/Gui/library/MediaCellView.cpp
+++ b/src/Gui/library/MediaCellView.cpp
@@ -111,7 +111,8 @@ MediaCellView::snapshotUpdated( const Media *media )
     m_ui->delLabel->setEnabled( true );
 }
 
-void MediaCellView::changeEvent( QEvent *e )
+void
+MediaCellView::changeEvent( QEvent *e )
 {
     QWidget::changeEvent( e );
     switch ( e->type() )
@@ -126,7 +127,8 @@ void MediaCellView::changeEvent( QEvent *e )
     }
 }
 
-void            MediaCellView::setTitle( const QString& title )
+void
+MediaCellView::setTitle( const QString& title )
 {
     m_ui->title->setText( title );
 }
@@ -164,17 +166,20 @@ MediaCellView::setThumbnail( const QPixmap &pixmap )
     m_ui->thumbnail->setPixmap( pixmap.scaled( 64, 64, Qt::KeepAspectRatio ) );
 }
 
-const QPixmap*  MediaCellView::getThumbnail() const
+const
+QPixmap*  MediaCellView::getThumbnail() const
 {
     return m_ui->thumbnail->pixmap();
 }
 
-QString  MediaCellView::title() const
+QString
+MediaCellView::title() const
 {
     return m_ui->title->text();
 }
 
-void            MediaCellView::mouseDoubleClickEvent( QMouseEvent* event )
+void
+MediaCellView::mouseDoubleClickEvent( QMouseEvent* event )
 {
     if ( ( event->buttons() | Qt::LeftButton ) == Qt::LeftButton )
     {
@@ -185,7 +190,8 @@ void            MediaCellView::mouseDoubleClickEvent( QMouseEvent* event )
     }
 }
 
-void            MediaCellView::mousePressEvent( QMouseEvent* event )
+void
+MediaCellView::mousePressEvent( QMouseEvent* event )
 {
     QWidget::mousePressEvent( event );
 
@@ -196,7 +202,8 @@ void            MediaCellView::mousePressEvent( QMouseEvent* event )
     }
 }
 
-void    MediaCellView::mouseMoveEvent( QMouseEvent* event )
+void
+MediaCellView::mouseMoveEvent( QMouseEvent* event )
 {
     if ( ( event->buttons() | Qt::LeftButton ) != Qt::LeftButton )
          return;
@@ -214,7 +221,8 @@ void    MediaCellView::mouseMoveEvent( QMouseEvent* event )
     drag->exec( Qt::CopyAction | Qt::MoveAction, Qt::CopyAction );
 }
 
-void        MediaCellView::deleteButtonClicked( QWidget*, QMouseEvent* )
+void
+MediaCellView::deleteButtonClicked( QWidget*, QMouseEvent* )
 {
     if ( MainWorkflow::getInstance()->contains( m_clip->uuid() ) == true )
     {
@@ -237,12 +245,14 @@ void        MediaCellView::deleteButtonClicked( QWidget*, QMouseEvent* )
     emit cellDeleted( m_clip );
 }
 
-void        MediaCellView::arrowButtonClicked( QWidget*, QMouseEvent* )
+void
+MediaCellView::arrowButtonClicked( QWidget*, QMouseEvent* )
 {
     emit arrowClicked( m_clip->uuid() );
 }
 
-void        MediaCellView::setLength( qint64 length, bool mSecs )
+void
+MediaCellView::setLength( qint64 length, bool mSecs )
 {
     QTime   duration;
     if ( mSecs )



More information about the Vlmc-devel mailing list