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
b87bc705
Commit
b87bc705
authored
Dec 31, 2013
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: allow smaller size on start
Ref #9740
parent
d10f8066
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+10
-4
No files found.
modules/gui/qt4/main_interface.cpp
View file @
b87bc705
...
@@ -253,11 +253,11 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
...
@@ -253,11 +253,11 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
setVisible
(
!
b_hideAfterCreation
);
setVisible
(
!
b_hideAfterCreation
);
computeMinimumSize
();
/* Switch to minimal view if needed, must be called after the show() */
/* Switch to minimal view if needed, must be called after the show() */
if
(
b_minimalView
)
if
(
b_minimalView
)
toggleMinimalView
(
true
);
toggleMinimalView
(
true
);
computeMinimumSize
();
}
}
MainInterface
::~
MainInterface
()
MainInterface
::~
MainInterface
()
...
@@ -316,9 +316,9 @@ MainInterface::~MainInterface()
...
@@ -316,9 +316,9 @@ MainInterface::~MainInterface()
void
MainInterface
::
computeMinimumSize
()
void
MainInterface
::
computeMinimumSize
()
{
{
int
minWidth
=
3
0
;
int
minWidth
=
8
0
;
if
(
menuBar
()
->
isVisible
()
)
if
(
menuBar
()
->
isVisible
()
)
minWidth
+=
__MAX
(
controls
->
sizeHint
().
width
(),
menuBar
()
->
sizeHint
().
width
()
);
minWidth
+=
controls
->
sizeHint
().
width
(
);
setMinimumWidth
(
minWidth
);
setMinimumWidth
(
minWidth
);
}
}
...
@@ -519,6 +519,12 @@ inline void MainInterface::createStatusBar()
...
@@ -519,6 +519,12 @@ inline void MainInterface::createStatusBar()
void
MainInterface
::
debug
()
void
MainInterface
::
debug
()
{
{
#ifdef DEBUG_INTF
#ifdef DEBUG_INTF
if
(
controls
)
{
msg_Dbg
(
p_intf
,
"Controls size: %i - %i"
,
controls
->
size
().
height
(),
controls
->
size
().
width
()
);
msg_Dbg
(
p_intf
,
"Controls minimumsize: %i - %i"
,
controls
->
minimumSize
().
height
(),
controls
->
minimumSize
().
width
()
);
msg_Dbg
(
p_intf
,
"Controls sizeHint: %i - %i"
,
controls
->
sizeHint
().
height
(),
controls
->
sizeHint
().
width
()
);
}
msg_Dbg
(
p_intf
,
"size: %i - %i"
,
size
().
height
(),
size
().
width
()
);
msg_Dbg
(
p_intf
,
"size: %i - %i"
,
size
().
height
(),
size
().
width
()
);
msg_Dbg
(
p_intf
,
"sizeHint: %i - %i"
,
sizeHint
().
height
(),
sizeHint
().
width
()
);
msg_Dbg
(
p_intf
,
"sizeHint: %i - %i"
,
sizeHint
().
height
(),
sizeHint
().
width
()
);
msg_Dbg
(
p_intf
,
"minimumsize: %i - %i"
,
minimumSize
().
height
(),
minimumSize
().
width
()
);
msg_Dbg
(
p_intf
,
"minimumsize: %i - %i"
,
minimumSize
().
height
(),
minimumSize
().
width
()
);
...
...
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