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
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
Show 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 @@
...
@@ -38,8 +38,8 @@
* Playlist Widget. The embedded playlist
* Playlist Widget. The embedded playlist
**********************************************************************/
**********************************************************************/
PlaylistWidget
::
PlaylistWidget
(
intf_thread_t
*
_p_i
,
QSettings
*
settings
)
:
PlaylistWidget
::
PlaylistWidget
(
intf_thread_t
*
_p_i
,
QSettings
*
settings
,
QWidget
*
_parent
)
:
p_intf
(
_p_i
)
p_intf
(
_p_i
)
,
parent
(
_parent
)
{
{
/* Left Part and design */
/* Left Part and design */
QSplitter
*
leftW
=
new
QSplitter
(
Qt
::
Vertical
,
this
);
QSplitter
*
leftW
=
new
QSplitter
(
Qt
::
Vertical
,
this
);
...
@@ -126,9 +126,9 @@ PlaylistWidget::~PlaylistWidget()
...
@@ -126,9 +126,9 @@ PlaylistWidget::~PlaylistWidget()
void
PlaylistWidget
::
savingSettings
(
QSettings
*
settings
)
void
PlaylistWidget
::
savingSettings
(
QSettings
*
settings
)
{
{
settings
->
beginGroup
(
"playlist"
);
settings
->
beginGroup
(
"playlist"
);
settings
->
setValue
(
"pos"
,
pos
()
);
settings
->
setValue
(
"pos"
,
p
arent
->
p
os
()
);
settings
->
setValue
(
"size"
,
size
()
);
settings
->
setValue
(
"size"
,
parent
->
size
()
);
settings
->
setValue
(
"splitterSizes"
,
saveState
()
);
settings
->
setValue
(
"splitterSizes"
,
saveState
()
);
settings
->
endGroup
();
settings
->
endGroup
();
}
}
modules/gui/qt4/components/playlist/playlist.hpp
View file @
8fc1be22
...
@@ -41,7 +41,7 @@ class PlaylistWidget : public QSplitter
...
@@ -41,7 +41,7 @@ class PlaylistWidget : public QSplitter
{
{
Q_OBJECT
;
Q_OBJECT
;
public:
public:
PlaylistWidget
(
intf_thread_t
*
_p_i
,
QSettings
*
settings
)
;
PlaylistWidget
(
intf_thread_t
*
_p_i
,
QSettings
*
settings
,
QWidget
*
parent
)
;
virtual
~
PlaylistWidget
();
virtual
~
PlaylistWidget
();
QSize
sizeHint
()
const
;
QSize
sizeHint
()
const
;
void
savingSettings
(
QSettings
*
settings
);
void
savingSettings
(
QSettings
*
settings
);
...
@@ -51,6 +51,7 @@ private:
...
@@ -51,6 +51,7 @@ private:
QPushButton
*
addButton
;
QPushButton
*
addButton
;
QLabel
*
art
;
QLabel
*
art
;
QString
prevArt
;
QString
prevArt
;
QWidget
*
parent
;
protected:
protected:
intf_thread_t
*
p_intf
;
intf_thread_t
*
p_intf
;
private
slots
:
private
slots
:
...
...
modules/gui/qt4/dialogs/playlist.cpp
View file @
8fc1be22
...
@@ -47,16 +47,14 @@ PlaylistDialog::PlaylistDialog( intf_thread_t *_p_intf )
...
@@ -47,16 +47,14 @@ PlaylistDialog::PlaylistDialog( intf_thread_t *_p_intf )
QHBoxLayout
*
l
=
new
QHBoxLayout
(
centralWidget
()
);
QHBoxLayout
*
l
=
new
QHBoxLayout
(
centralWidget
()
);
QSettings
*
settings
=
new
QSettings
(
"vlc"
,
"vlc-qt-interface"
);
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
);
l
->
addWidget
(
plw
);
readSettings
(
"playlist"
,
QSize
(
600
,
700
)
);
readSettings
(
"playlist"
,
QSize
(
600
,
700
)
);
}
}
PlaylistDialog
::~
PlaylistDialog
()
PlaylistDialog
::~
PlaylistDialog
()
{
{}
writeSettings
(
"playlist"
);
}
void
PlaylistDialog
::
dropEvent
(
QDropEvent
*
event
)
void
PlaylistDialog
::
dropEvent
(
QDropEvent
*
event
)
{
{
...
...
modules/gui/qt4/main_interface.cpp
View file @
8fc1be22
...
@@ -397,9 +397,6 @@ void MainInterface::handleMainUi( QSettings *settings )
...
@@ -397,9 +397,6 @@ void MainInterface::handleMainUi( QSettings *settings )
if
(
videoEmbeddedFlag
)
if
(
videoEmbeddedFlag
)
{
{
videoWidget
=
new
VideoWidget
(
p_intf
);
videoWidget
=
new
VideoWidget
(
p_intf
);
//videoWidget->widgetSize = QSize( 16, 16 );
//videoWidget->hide();
//videoWidget->resize( videoWidget->widgetSize );
mainLayout
->
insertWidget
(
0
,
videoWidget
);
mainLayout
->
insertWidget
(
0
,
videoWidget
);
p_intf
->
pf_request_window
=
::
DoRequest
;
p_intf
->
pf_request_window
=
::
DoRequest
;
...
@@ -702,7 +699,7 @@ void MainInterface::togglePlaylist()
...
@@ -702,7 +699,7 @@ void MainInterface::togglePlaylist()
If no playlist exist, then create one and attach it to the DockPL*/
If no playlist exist, then create one and attach it to the DockPL*/
if
(
!
playlistWidget
)
if
(
!
playlistWidget
)
{
{
playlistWidget
=
new
PlaylistWidget
(
p_intf
,
settings
);
playlistWidget
=
new
PlaylistWidget
(
p_intf
,
settings
,
dockPL
);
/* Add it to the parent DockWidget */
/* Add it to the parent DockWidget */
dockPL
->
setWidget
(
playlistWidget
);
dockPL
->
setWidget
(
playlistWidget
);
...
@@ -718,6 +715,10 @@ void MainInterface::togglePlaylist()
...
@@ -718,6 +715,10 @@ void MainInterface::togglePlaylist()
dockPL
->
setFloating
(
true
);
dockPL
->
setFloating
(
true
);
}
}
settings
->
endGroup
();
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
();
dockPL
->
show
();
}
}
else
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