From: Jean-Baptiste Kempf Date: Sat, 30 Jan 2010 22:48:21 +0000 (+0100) Subject: Qt: reindent X-Git-Tag: 1.1.0-ff~636 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=df4889d9ff1d3c8ecb46234515182afa10e3e0b2;p=vlc Qt: reindent --- diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp index d2deb7a386..520243fbf9 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 ); }