Commit 4c53910c authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4: code cosmetics

(cherry picked from commit df4031fba65951de611744254beb29f89ee9f304)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent ec9c958a
...@@ -83,6 +83,8 @@ void PLSelItem::addAction( ItemAction act, const QString& tooltip ) ...@@ -83,6 +83,8 @@ void PLSelItem::addAction( ItemAction act, const QString& tooltip )
icon = QIcon( ":/buttons/playlist/playlist_add" ); break; icon = QIcon( ":/buttons/playlist/playlist_add" ); break;
case RM_ACTION: case RM_ACTION:
icon = QIcon( ":/buttons/playlist/playlist_remove" ); break; icon = QIcon( ":/buttons/playlist/playlist_remove" ); break;
default:
return;
} }
lblAction = new SelectorActionButton(); lblAction = new SelectorActionButton();
...@@ -116,6 +118,14 @@ PLSelector::PLSelector( QWidget *p, intf_thread_t *_p_intf ) ...@@ -116,6 +118,14 @@ PLSelector::PLSelector( QWidget *p, intf_thread_t *_p_intf )
setDropIndicatorShown(true); setDropIndicatorShown(true);
invisibleRootItem()->setFlags( invisibleRootItem()->flags() & ~Qt::ItemIsDropEnabled ); 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 */ /* Podcasts */
podcastsParent = NULL; podcastsParent = NULL;
podcastsParentId = -1; podcastsParentId = -1;
...@@ -140,17 +150,6 @@ PLSelector::PLSelector( QWidget *p, intf_thread_t *_p_intf ) ...@@ -140,17 +150,6 @@ PLSelector::PLSelector( QWidget *p, intf_thread_t *_p_intf )
this, setSource( QTreeWidgetItem *) ); this, setSource( QTreeWidgetItem *) );
CONNECT( this, itemClicked( QTreeWidgetItem *, int ), CONNECT( this, itemClicked( QTreeWidgetItem *, int ),
this, setSource( QTreeWidgetItem *) ); 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() PLSelector::~PLSelector()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment