Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
17d2bc2f
Commit
17d2bc2f
authored
Sep 23, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: Playlist saving size and blablah... Close #2112
parent
74f808c3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
5 deletions
+16
-5
modules/gui/qt4/components/playlist/playlist.cpp
modules/gui/qt4/components/playlist/playlist.cpp
+4
-1
modules/gui/qt4/components/playlist/standardpanel.cpp
modules/gui/qt4/components/playlist/standardpanel.cpp
+6
-3
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+6
-1
No files found.
modules/gui/qt4/components/playlist/playlist.cpp
View file @
17d2bc2f
...
...
@@ -117,7 +117,9 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i,
// components shall never write there setting to a fixed location, may infer
// with other uses of the same component...
// getSettings()->beginGroup( "playlist" );
getSettings
()
->
beginGroup
(
"Playlist"
);
restoreState
(
getSettings
()
->
value
(
"splitterSizes"
).
toByteArray
());
getSettings
()
->
endGroup
();
setAcceptDrops
(
true
);
setWindowTitle
(
qtr
(
"Playlist"
)
);
...
...
@@ -126,8 +128,9 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i,
PlaylistWidget
::~
PlaylistWidget
()
{
getSettings
()
->
beginGroup
(
"
playlistdialog
"
);
getSettings
()
->
beginGroup
(
"
Playlist
"
);
getSettings
()
->
setValue
(
"splitterSizes"
,
saveState
()
);
getSettings
()
->
setValue
(
"GlobalPos"
,
mapToGlobal
(
pos
()
)
);
getSettings
()
->
endGroup
();
}
...
...
modules/gui/qt4/components/playlist/standardpanel.cpp
View file @
17d2bc2f
...
...
@@ -75,11 +75,13 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
view
->
setDropIndicatorShown
(
true
);
view
->
setAutoScroll
(
true
);
getSettings
()
->
beginGroup
(
"Playlist"
);
#if HAS_QT43
if
(
getSettings
()
->
contains
(
"headerState"
)
)
{
view
->
header
()
->
restoreState
(
getSettings
()
->
value
(
"headerState"
).
toByteArray
()
);
msg_Dbg
(
p_intf
,
"exists"
);
view
->
header
()
->
restoreState
(
getSettings
()
->
value
(
"headerState"
).
toByteArray
()
);
}
else
#endif
...
...
@@ -91,6 +93,7 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
view
->
header
()
->
setClickable
(
true
);
view
->
header
()
->
setContextMenuPolicy
(
Qt
::
CustomContextMenu
);
}
getSettings
()
->
endGroup
();
/* Connections for the TreeView */
CONNECT
(
view
,
activated
(
const
QModelIndex
&
)
,
...
...
@@ -353,7 +356,7 @@ void StandardPLPanel::deleteSelection()
StandardPLPanel
::~
StandardPLPanel
()
{
#if HAS_QT43
getSettings
()
->
beginGroup
(
"
playlistdialog
"
);
getSettings
()
->
beginGroup
(
"
Playlist
"
);
getSettings
()
->
setValue
(
"headerState"
,
view
->
header
()
->
saveState
()
);
getSettings
()
->
endGroup
();
#endif
...
...
modules/gui/qt4/main_interface.cpp
View file @
17d2bc2f
...
...
@@ -742,10 +742,15 @@ void MainInterface::togglePlaylist()
if
(
i_pl_dock
==
PL_UNDOCKED
)
{
playlistWidget
->
set
WindowFlags
(
Qt
::
Window
);
playlistWidget
->
set
Parent
(
this
,
Qt
::
Window
);
/* This will restore the geometry but will not work for position,
because of parenting */
QVLCTools
::
restoreWidgetPosition
(
p_intf
,
"Playlist"
,
playlistWidget
,
QSize
(
600
,
300
)
);
/* Move it correctly then */
playlistWidget
->
move
(
getSettings
()
->
value
(
"Playlist/GlobalPos"
).
toPoint
()
);
}
else
{
...
...
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