[vlc-commits] Qt4: code cosmetics
Jean-Baptiste Kempf
git at videolan.org
Mon Jan 2 12:34:18 CET 2012
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Jan 2 12:24:05 2012 +0100| [df4031fba65951de611744254beb29f89ee9f304] | committer: Jean-Baptiste Kempf
Qt4: code cosmetics
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=df4031fba65951de611744254beb29f89ee9f304
---
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()
More information about the vlc-commits
mailing list