[vlc-devel] commit: Qt: reindent (Jean-Baptiste Kempf )

git version control git at videolan.org
Sun Jan 31 00:04:59 CET 2010


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Jan 30 23:48:21 2010 +0100| [df4889d9ff1d3c8ecb46234515182afa10e3e0b2] | committer: Jean-Baptiste Kempf 

Qt: reindent

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

 .../gui/qt4/components/playlist/standardpanel.cpp  |   66 ++++++++++----------
 1 files changed, 33 insertions(+), 33 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp
index d2deb7a..520243f 100644
--- a/modules/gui/qt4/components/playlist/standardpanel.cpp
+++ b/modules/gui/qt4/components/playlist/standardpanel.cpp
@@ -454,45 +454,45 @@ void StandardPLPanel::browseInto( input_item_t *p_input )
 
 LocationBar::LocationBar( PLModel *m )
 {
-  model = m;
-  mapper = new QSignalMapper( this );
-  CONNECT( mapper, mapped( int ), this, invoke( int ) );
+    model = m;
+    mapper = new QSignalMapper( this );
+    CONNECT( mapper, mapped( int ), this, invoke( int ) );
 }
 
 void LocationBar::setIndex( const QModelIndex &index )
 {
-  clear();
-  QAction *prev = NULL;
-  QModelIndex i = index;
-  QFont font;
-  QFontMetrics metrics( font );
-  font.setBold( true );
-  while( true )
-  {
-      PLItem *item = model->getItem( i );
-
-      QToolButton *btn = new QToolButton;
-      char *fb_name = input_item_GetTitleFbName( item->inputItem() );
-      QString text = qfu(fb_name);
-      free(fb_name);
-      text = QString("/ ") + metrics.elidedText( text, Qt::ElideRight, 150 );
-      btn->setText( text );
-      btn->setFont( font );
-      prev = insertWidget( prev, btn );
-
-      mapper->setMapping( btn, item->id() );
-      CONNECT( btn, clicked( ), mapper, map( ) );
-
-      font = QFont();
-
-      if( i.isValid() ) i = i.parent();
-      else break;
-  }
+    clear();
+    QAction *prev = NULL;
+    QModelIndex i = index;
+    QFont font;
+    QFontMetrics metrics( font );
+    font.setBold( true );
+    while( true )
+    {
+        PLItem *item = model->getItem( i );
+
+        QToolButton *btn = new QToolButton;
+        char *fb_name = input_item_GetTitleFbName( item->inputItem() );
+        QString text = qfu(fb_name);
+        free(fb_name);
+        text = QString("/ ") + metrics.elidedText( text, Qt::ElideRight, 150 );
+        btn->setText( text );
+        btn->setFont( font );
+        prev = insertWidget( prev, btn );
+
+        mapper->setMapping( btn, item->id() );
+        CONNECT( btn, clicked( ), mapper, map( ) );
+
+        font = QFont();
+
+        if( i.isValid() ) i = i.parent();
+        else break;
+    }
 }
 
 void LocationBar::invoke( int i_id )
 {
-  QModelIndex index = model->index( i_id, 0 );
-  setIndex( index );
-  emit invoked ( index );
+    QModelIndex index = model->index( i_id, 0 );
+    setIndex( index );
+    emit invoked ( index );
 }




More information about the vlc-devel mailing list