]> git.sesse.net Git - vlc/commitdiff
Qt: reindent
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 30 Jan 2010 22:48:21 +0000 (23:48 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 30 Jan 2010 22:55:26 +0000 (23:55 +0100)
modules/gui/qt4/components/playlist/standardpanel.cpp

index d2deb7a386d3dcfa571c17ac86b7e36d6d2e1df3..520243fbf9b1d0fe5e8bbc4f995cb9d2bd7ea951 100644 (file)
@@ -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 );
 }