Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
c8d328e8
Commit
c8d328e8
authored
Jan 26, 2010
by
Jakob Leben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: save settings for playlist-selector/art splitter
...to enable permanent hiding of art display
parent
4d4dd098
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
modules/gui/qt4/components/playlist/playlist.cpp
modules/gui/qt4/components/playlist/playlist.cpp
+7
-5
modules/gui/qt4/components/playlist/playlist.hpp
modules/gui/qt4/components/playlist/playlist.hpp
+1
-0
No files found.
modules/gui/qt4/components/playlist/playlist.cpp
View file @
c8d328e8
...
...
@@ -46,7 +46,7 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par )
setContentsMargins
(
3
,
3
,
3
,
3
);
/* Left Part and design */
QSplitter
*
leftW
=
new
QSplitter
(
Qt
::
Vertical
,
this
);
leftSplitter
=
new
QSplitter
(
Qt
::
Vertical
,
this
);
/* Source Selector */
selector
=
new
PLSelector
(
this
,
p_intf
);
...
...
@@ -55,7 +55,7 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par )
selBox
->
addWidget
(
selector
);
QGroupBox
*
selGroup
=
new
QGroupBox
(
qtr
(
"Media Browser"
)
);
selGroup
->
setLayout
(
selBox
);
left
W
->
addWidget
(
selGroup
);
left
Splitter
->
addWidget
(
selGroup
);
/* Create a Container for the Art Label
in order to have a beautiful resizing for the selector above it */
...
...
@@ -74,7 +74,7 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par )
artContLay
->
addWidget
(
art
,
1
);
left
W
->
addWidget
(
artContainer
);
left
Splitter
->
addWidget
(
artContainer
);
/* Initialisation of the playlist */
playlist_t
*
p_playlist
=
THEPL
;
...
...
@@ -92,7 +92,7 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par )
rightPanel
->
setRoot
(
p_root
);
/* Add the two sides of the QSplitter */
addWidget
(
left
W
);
addWidget
(
left
Splitter
);
addWidget
(
rightPanel
);
QList
<
int
>
sizeList
;
...
...
@@ -101,7 +101,7 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par )
//setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Expanding );
setStretchFactor
(
0
,
0
);
setStretchFactor
(
1
,
3
);
left
W
->
setMaximumWidth
(
250
);
left
Splitter
->
setMaximumWidth
(
250
);
setCollapsible
(
1
,
false
);
/* In case we want to keep the splitter informations */
...
...
@@ -110,6 +110,7 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par )
// getSettings()->beginGroup( "playlist" );
getSettings
()
->
beginGroup
(
"Playlist"
);
restoreState
(
getSettings
()
->
value
(
"splitterSizes"
).
toByteArray
());
leftSplitter
->
restoreState
(
getSettings
()
->
value
(
"leftSplitterGeometry"
).
toByteArray
()
);
getSettings
()
->
endGroup
();
setAcceptDrops
(
true
);
...
...
@@ -122,6 +123,7 @@ PlaylistWidget::~PlaylistWidget()
{
getSettings
()
->
beginGroup
(
"Playlist"
);
getSettings
()
->
setValue
(
"splitterSizes"
,
saveState
()
);
getSettings
()
->
setValue
(
"leftSplitterGeometry"
,
leftSplitter
->
saveState
()
);
getSettings
()
->
endGroup
();
msg_Dbg
(
p_intf
,
"Playlist Destroyed"
);
}
...
...
modules/gui/qt4/components/playlist/playlist.hpp
View file @
c8d328e8
...
...
@@ -66,6 +66,7 @@ private:
ArtLabel
*
art
;
StandardPLPanel
*
rightPanel
;
QPushButton
*
addButton
;
QSplitter
*
leftSplitter
;
protected:
intf_thread_t
*
p_intf
;
virtual
void
dropEvent
(
QDropEvent
*
);
...
...
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