Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
501530e6
Commit
501530e6
authored
Dec 10, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: reinstate the small QSplitter on Mac for the playlist
parent
f6b7fd14
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
modules/gui/qt4/components/playlist/playlist.cpp
modules/gui/qt4/components/playlist/playlist.cpp
+3
-3
modules/gui/qt4/components/playlist/playlist.hpp
modules/gui/qt4/components/playlist/playlist.hpp
+12
-4
No files found.
modules/gui/qt4/components/playlist/playlist.cpp
View file @
501530e6
...
@@ -147,7 +147,7 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par )
...
@@ -147,7 +147,7 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par )
mainView
,
setRoot
(
playlist_item_t
*
)
);
mainView
,
setRoot
(
playlist_item_t
*
)
);
split
=
new
QSplitter
(
this
);
split
=
new
PlaylistSplitter
(
this
);
/* Add the two sides of the QSplitter */
/* Add the two sides of the QSplitter */
split
->
addWidget
(
leftSplitter
);
split
->
addWidget
(
leftSplitter
);
...
@@ -421,9 +421,9 @@ QSize LocationButton::sizeHint() const
...
@@ -421,9 +421,9 @@ QSize LocationButton::sizeHint() const
#undef PADDING
#undef PADDING
#ifdef Q_WS_MAC
#ifdef Q_WS_MAC
QSplitterHandle
*
Playlist
Widget
::
createHandle
()
QSplitterHandle
*
Playlist
Splitter
::
createHandle
()
{
{
return
new
SplitterHandle
(
split
->
orientation
(),
split
);
return
new
SplitterHandle
(
orientation
(),
this
);
}
}
SplitterHandle
::
SplitterHandle
(
Qt
::
Orientation
orientation
,
QSplitter
*
parent
)
SplitterHandle
::
SplitterHandle
(
Qt
::
Orientation
orientation
,
QSplitter
*
parent
)
...
...
modules/gui/qt4/components/playlist/playlist.hpp
View file @
501530e6
...
@@ -72,14 +72,22 @@ protected:
...
@@ -72,14 +72,22 @@ protected:
virtual
void
dropEvent
(
QDropEvent
*
);
virtual
void
dropEvent
(
QDropEvent
*
);
virtual
void
dragEnterEvent
(
QDragEnterEvent
*
);
virtual
void
dragEnterEvent
(
QDragEnterEvent
*
);
virtual
void
closeEvent
(
QCloseEvent
*
);
virtual
void
closeEvent
(
QCloseEvent
*
);
#ifdef __APPLE__
virtual
QSplitterHandle
*
createHandle
();
#endif
private
slots
:
private
slots
:
void
changeView
(
const
QModelIndex
&
index
);
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
#ifdef Q_WS_MAC
class
SplitterHandle
:
public
QSplitterHandle
class
SplitterHandle
:
public
QSplitterHandle
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment