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
8fc1be22
Commit
8fc1be22
authored
Dec 22, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Remember playlist's size.
parent
46c88072
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
14 deletions
+14
-14
modules/gui/qt4/components/playlist/playlist.cpp
modules/gui/qt4/components/playlist/playlist.cpp
+5
-5
modules/gui/qt4/components/playlist/playlist.hpp
modules/gui/qt4/components/playlist/playlist.hpp
+2
-1
modules/gui/qt4/dialogs/playlist.cpp
modules/gui/qt4/dialogs/playlist.cpp
+2
-4
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+5
-4
No files found.
modules/gui/qt4/components/playlist/playlist.cpp
View file @
8fc1be22
...
...
@@ -38,8 +38,8 @@
* Playlist Widget. The embedded playlist
**********************************************************************/
PlaylistWidget
::
PlaylistWidget
(
intf_thread_t
*
_p_i
,
QSettings
*
settings
)
:
p_intf
(
_p_i
)
PlaylistWidget
::
PlaylistWidget
(
intf_thread_t
*
_p_i
,
QSettings
*
settings
,
QWidget
*
_parent
)
:
p_intf
(
_p_i
)
,
parent
(
_parent
)
{
/* Left Part and design */
QSplitter
*
leftW
=
new
QSplitter
(
Qt
::
Vertical
,
this
);
...
...
@@ -126,9 +126,9 @@ PlaylistWidget::~PlaylistWidget()
void
PlaylistWidget
::
savingSettings
(
QSettings
*
settings
)
{
settings
->
beginGroup
(
"playlist"
);
settings
->
setValue
(
"pos"
,
pos
()
);
settings
->
setValue
(
"size"
,
size
()
);
settings
->
setValue
(
"splitterSizes"
,
saveState
()
);
settings
->
setValue
(
"pos"
,
p
arent
->
p
os
()
);
settings
->
setValue
(
"size"
,
parent
->
size
()
);
settings
->
setValue
(
"splitterSizes"
,
saveState
()
);
settings
->
endGroup
();
}
modules/gui/qt4/components/playlist/playlist.hpp
View file @
8fc1be22
...
...
@@ -41,7 +41,7 @@ class PlaylistWidget : public QSplitter
{
Q_OBJECT
;
public:
PlaylistWidget
(
intf_thread_t
*
_p_i
,
QSettings
*
settings
)
;
PlaylistWidget
(
intf_thread_t
*
_p_i
,
QSettings
*
settings
,
QWidget
*
parent
)
;
virtual
~
PlaylistWidget
();
QSize
sizeHint
()
const
;
void
savingSettings
(
QSettings
*
settings
);
...
...
@@ -51,6 +51,7 @@ private:
QPushButton
*
addButton
;
QLabel
*
art
;
QString
prevArt
;
QWidget
*
parent
;
protected:
intf_thread_t
*
p_intf
;
private
slots
:
...
...
modules/gui/qt4/dialogs/playlist.cpp
View file @
8fc1be22
...
...
@@ -47,16 +47,14 @@ PlaylistDialog::PlaylistDialog( intf_thread_t *_p_intf )
QHBoxLayout
*
l
=
new
QHBoxLayout
(
centralWidget
()
);
QSettings
*
settings
=
new
QSettings
(
"vlc"
,
"vlc-qt-interface"
);
PlaylistWidget
*
plw
=
new
PlaylistWidget
(
p_intf
,
settings
);
PlaylistWidget
*
plw
=
new
PlaylistWidget
(
p_intf
,
settings
,
this
);
l
->
addWidget
(
plw
);
readSettings
(
"playlist"
,
QSize
(
600
,
700
)
);
}
PlaylistDialog
::~
PlaylistDialog
()
{
writeSettings
(
"playlist"
);
}
{}
void
PlaylistDialog
::
dropEvent
(
QDropEvent
*
event
)
{
...
...
modules/gui/qt4/main_interface.cpp
View file @
8fc1be22
...
...
@@ -397,9 +397,6 @@ void MainInterface::handleMainUi( QSettings *settings )
if
(
videoEmbeddedFlag
)
{
videoWidget
=
new
VideoWidget
(
p_intf
);
//videoWidget->widgetSize = QSize( 16, 16 );
//videoWidget->hide();
//videoWidget->resize( videoWidget->widgetSize );
mainLayout
->
insertWidget
(
0
,
videoWidget
);
p_intf
->
pf_request_window
=
::
DoRequest
;
...
...
@@ -702,7 +699,7 @@ void MainInterface::togglePlaylist()
If no playlist exist, then create one and attach it to the DockPL*/
if
(
!
playlistWidget
)
{
playlistWidget
=
new
PlaylistWidget
(
p_intf
,
settings
);
playlistWidget
=
new
PlaylistWidget
(
p_intf
,
settings
,
dockPL
);
/* Add it to the parent DockWidget */
dockPL
->
setWidget
(
playlistWidget
);
...
...
@@ -718,6 +715,10 @@ void MainInterface::togglePlaylist()
dockPL
->
setFloating
(
true
);
}
settings
->
endGroup
();
settings
->
beginGroup
(
"playlist"
);
dockPL
->
move
(
settings
->
value
(
"pos"
,
QPoint
(
0
,
0
)
).
toPoint
()
);
dockPL
->
resize
(
settings
->
value
(
"size"
,
QSize
(
400
,
300
)
).
toSize
()
);
settings
->
endGroup
();
dockPL
->
show
();
}
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