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
2fd9216f
Commit
2fd9216f
authored
Dec 22, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT4 - sizing (still not fix... anyone can look at it ?) and remember if the playlist is floating.
parent
eb7a0af3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
13 deletions
+10
-13
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+10
-13
No files found.
modules/gui/qt4/main_interface.cpp
View file @
2fd9216f
...
...
@@ -298,7 +298,7 @@ MainInterface::~MainInterface()
ExtendedDialog
::
getInstance
(
p_intf
)
->
savingSettings
();
settings
->
beginGroup
(
"MainWindow"
);
settings
->
setValue
(
"playlist-floats"
,
dockPL
->
isFloating
(
)
);
settings
->
setValue
(
"playlist-floats"
,
(
int
)(
dockPL
->
isFloating
()
)
);
settings
->
setValue
(
"adv-controls"
,
getControlsVisibilityStatus
()
&
CONTROLS_ADVANCED
);
settings
->
setValue
(
"pos"
,
pos
()
);
...
...
@@ -502,8 +502,8 @@ int MainInterface::privacyDialog( QList<ConfigControl *> controls )
//FIXME remove me at the end...
void
MainInterface
::
debug
()
{
msg_Dbg
(
p_intf
,
"size: %i - %i"
,
controls
->
size
().
height
(),
controls
->
size
().
width
()
);
msg_Dbg
(
p_intf
,
"sizeHint: %i - %i"
,
controls
->
sizeHint
().
height
(),
controls
->
sizeHint
().
width
()
);
msg_Dbg
(
p_intf
,
"size: %i - %i"
,
size
().
height
(),
size
().
width
()
);
msg_Dbg
(
p_intf
,
"sizeHint: %i - %i"
,
sizeHint
().
height
(),
sizeHint
().
width
()
);
}
/**********************************************************************
...
...
@@ -537,7 +537,7 @@ QSize MainInterface::sizeHint() const
nwidth
=
videoWidget
->
size
().
width
();
msg_Dbg
(
p_intf
,
"2 %i %i"
,
nheight
,
nwidth
);
}
if
(
!
dockPL
->
isFloating
()
&&
dockPL
->
widget
()
)
if
(
!
dockPL
->
isFloating
()
&&
dockPL
->
isVisible
()
&&
dockPL
->
widget
()
)
{
nheight
+=
dockPL
->
size
().
height
();
nwidth
=
MAX
(
nwidth
,
dockPL
->
size
().
width
()
);
...
...
@@ -711,31 +711,28 @@ void MainInterface::togglePlaylist()
addDockWidget
(
Qt
::
BottomDockWidgetArea
,
dockPL
);
/* Make the playlist floating is requested. Default is not. */
//FIXME
if
(
settings
->
value
(
"playlist-floats"
,
false
).
toBool
()
);
settings
->
beginGroup
(
"MainWindow"
);
if
(
settings
->
value
(
"playlist-floats"
,
1
).
toInt
()
)
{
msg_Dbg
(
p_intf
,
"we don't want the playlist inside"
);
dockPL
->
setFloating
(
true
);
}
settings
->
endGroup
();
dockPL
->
show
();
}
else
{
/* toggle the visibility of the playlist */
TOGGLEV
(
dockPL
);
//resize(sizeHint()
);
resize
(
sizeHint
()
);
}
#if 0
doComponentsUpdate();
#endif
updateGeometry
();
}
/* Function called from the menu to undock the playlist */
void
MainInterface
::
undockPlaylist
()
{
dockPL
->
setFloating
(
true
);
updateGeometry
(
);
resize
(
sizeHint
()
);
}
void
MainInterface
::
toggleMinimalView
()
...
...
@@ -750,9 +747,9 @@ void MainInterface::toggleMinimalView()
/* Well, could it, actually ? Probably dangerous ... */
void
MainInterface
::
doComponentsUpdate
()
{
resize
(
sizeHint
()
);
msg_Dbg
(
p_intf
,
"Updating the geometry"
);
updateGeometry
();
resize
(
sizeHint
()
);
}
/* toggling advanced controls buttons */
...
...
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