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
733ac09f
Commit
733ac09f
authored
Aug 30, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4: uses setMinimumSize from the good thread using signal/slot
parent
2d1afccd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+7
-1
modules/gui/qt4/components/interface_widgets.hpp
modules/gui/qt4/components/interface_widgets.hpp
+4
-0
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
733ac09f
...
...
@@ -55,7 +55,7 @@ VideoWidget::VideoWidget( intf_thread_t *_p_i ) : QFrame( NULL ), p_intf( _p_i )
{
vlc_mutex_init
(
p_intf
,
&
lock
);
p_vout
=
NULL
;
CONNECT
(
this
,
askResize
(),
this
,
SetMinSize
()
);
setSizePolicy
(
QSizePolicy
::
Preferred
,
QSizePolicy
::
Preferred
);
}
...
...
@@ -93,9 +93,15 @@ void *VideoWidget::request( vout_thread_t *p_nvout, int *pi_x, int *pi_y,
return
NULL
;
}
p_vout
=
p_nvout
;
emit
askResize
();
return
(
void
*
)
winId
();
}
void
VideoWidget
::
SetMinSize
()
{
setMinimumSize
(
16
,
16
);
}
void
VideoWidget
::
release
(
void
*
p_win
)
{
p_vout
=
NULL
;
...
...
modules/gui/qt4/components/interface_widgets.hpp
View file @
733ac09f
...
...
@@ -62,6 +62,10 @@ private:
QWidget
*
frame
;
intf_thread_t
*
p_intf
;
vlc_mutex_t
lock
;
signals:
void
askResize
();
private
slots
:
void
SetMinSize
();
};
/******************** Background Widget ****************/
...
...
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