vlc/vlc-1.2 | branch: master | Jean-Baptiste Kempf <j...@videolan.org> | Mon Jan 2 12:24:05 2012 +0100| [4c53910c62d4885d8fb99810de19cb02421b2ddd] | committer: Jean-Baptiste Kempf
Qt4: code cosmetics (cherry picked from commit df4031fba65951de611744254beb29f89ee9f304) Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org> > http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=4c53910c62d4885d8fb99810de19cb02421b2ddd --- modules/gui/qt4/components/playlist/selector.cpp | 21 ++++++++++----------- 1 files changed, 10 insertions(+), 11 deletions(-) diff --git a/modules/gui/qt4/components/playlist/selector.cpp b/modules/gui/qt4/components/playlist/selector.cpp index 87316af..820c69f 100644 --- a/modules/gui/qt4/components/playlist/selector.cpp +++ b/modules/gui/qt4/components/playlist/selector.cpp @@ -83,6 +83,8 @@ void PLSelItem::addAction( ItemAction act, const QString& tooltip ) icon = QIcon( ":/buttons/playlist/playlist_add" ); break; case RM_ACTION: icon = QIcon( ":/buttons/playlist/playlist_remove" ); break; + default: + return; } lblAction = new SelectorActionButton(); @@ -116,6 +118,14 @@ PLSelector::PLSelector( QWidget *p, intf_thread_t *_p_intf ) setDropIndicatorShown(true); invisibleRootItem()->setFlags( invisibleRootItem()->flags() & ~Qt::ItemIsDropEnabled ); +#ifdef Q_WS_MAC + setAutoFillBackground( true ); + QPalette palette; + palette.setColor( QPalette::Window, QColor(209,215,226) ); + setPalette( palette ); +#endif + setMinimumHeight( 120 ); + /* Podcasts */ podcastsParent = NULL; podcastsParentId = -1; @@ -140,17 +150,6 @@ PLSelector::PLSelector( QWidget *p, intf_thread_t *_p_intf ) this, setSource( QTreeWidgetItem *) ); CONNECT( this, itemClicked( QTreeWidgetItem *, int ), this, setSource( QTreeWidgetItem *) ); - - /* select the first item */ -// view->setCurrentIndex( model->index( 0, 0, QModelIndex() ) ); - -#ifdef Q_WS_MAC - setAutoFillBackground( true ); - QPalette palette; - palette.setColor( QPalette::Window, QColor(209,215,226) ); - setPalette( palette ); -#endif - setMinimumHeight( 120 ); } PLSelector::~PLSelector() _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org http://mailman.videolan.org/listinfo/vlc-commits