diff --git a/modules/gui/qt4/components/playlist/playlist.cpp b/modules/gui/qt4/components/playlist/playlist.cpp index 3f12dd1aa6311c6e41a3a4809623156a12d082b0..00e34e739f3a79b4a2d5bc72a19a662f8ddefb39 100644 --- a/modules/gui/qt4/components/playlist/playlist.cpp +++ b/modules/gui/qt4/components/playlist/playlist.cpp @@ -147,7 +147,7 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par ) mainView, setRoot( playlist_item_t * ) ); - split = new QSplitter(this); + split = new PlaylistSplitter( this ); /* Add the two sides of the QSplitter */ split->addWidget( leftSplitter ); @@ -421,9 +421,9 @@ QSize LocationButton::sizeHint() const #undef PADDING #ifdef Q_WS_MAC -QSplitterHandle *PlaylistWidget::createHandle() +QSplitterHandle *PlaylistSplitter::createHandle() { - return new SplitterHandle( split->orientation(), split ); + return new SplitterHandle( orientation(), this ); } SplitterHandle::SplitterHandle( Qt::Orientation orientation, QSplitter * parent ) diff --git a/modules/gui/qt4/components/playlist/playlist.hpp b/modules/gui/qt4/components/playlist/playlist.hpp index 3c105c5ac11bf1aaac5190db15bf4a1a09a27f1e..bfac66b9eeed4e7a4867a8ee519336a5bff98699 100644 --- a/modules/gui/qt4/components/playlist/playlist.hpp +++ b/modules/gui/qt4/components/playlist/playlist.hpp @@ -72,14 +72,22 @@ protected: virtual void dropEvent( QDropEvent *); virtual void dragEnterEvent( QDragEnterEvent * ); virtual void closeEvent( QCloseEvent * ); -#ifdef __APPLE__ - virtual QSplitterHandle *createHandle(); -#endif - private slots: void changeView( const QModelIndex& index ); }; +#ifdef Q_WS_MAC +class PlaylistSplitter : public QSplitter +{ +public: + PlaylistSplitter( QWidget *_parent ) : QSplitter( _parent ){} +protected: + virtual QSplitterHandle *createHandle(); +}; +#else + #define PlaylistSplitter QSplitter +#endif + #ifdef Q_WS_MAC class SplitterHandle : public QSplitterHandle {