Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
c9742171
Commit
c9742171
authored
Apr 06, 2010
by
Jakob Leben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: more settings fixes (undocked playlist size)
parent
40969236
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+12
-9
No files found.
modules/gui/qt4/main_interface.cpp
View file @
c9742171
...
...
@@ -295,19 +295,15 @@ MainInterface::~MainInterface()
/* Save states */
settings
->
beginGroup
(
"MainWindow"
);
settings
->
setValue
(
"pl-dock-status"
,
b_plDocked
);
/* Save playlist state */
if
(
playlistWidget
)
{
if
(
isPlDocked
()
)
{
QVLCTools
::
saveWidgetPosition
(
p_intf
,
"Playlist"
,
playlistWidget
);
settings
->
setValue
(
"playlist-visible"
,
playlistVisible
);
}
else
{
settings
->
setValue
(
"playlist-visible"
,
playlistWidget
->
isVisible
()
);
// FIXME
}
settings
->
setValue
(
"playlist-visible"
,
isPlDocked
()
?
playlistVisible
:
playlistWidget
->
isVisible
()
/* FIXME */
);
}
settings
->
setValue
(
"adv-controls"
,
...
...
@@ -320,9 +316,15 @@ MainInterface::~MainInterface()
/* Save this size */
QVLCTools
::
saveWidgetPosition
(
settings
,
this
);
settings
->
endGroup
();
/* Save undocked playlist size */
if
(
playlistWidget
&&
!
isPlDocked
()
)
QVLCTools
::
saveWidgetPosition
(
p_intf
,
"Playlist"
,
playlistWidget
);
delete
playlistWidget
;
delete
statusBar
();
/* Unregister callbacks */
...
...
@@ -717,6 +719,7 @@ void MainInterface::dockPlaylist( bool p_docked )
}
else
{
QVLCTools
::
saveWidgetPosition
(
p_intf
,
"Playlist"
,
playlistWidget
);
playlistWidget
->
setWindowFlags
(
Qt
::
Widget
);
// Probably a Qt bug here
// It would be logical that QStackWidget::addWidget reset the flags...
stackCentralW
->
addWidget
(
playlistWidget
);
...
...
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