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
7353924f
Commit
7353924f
authored
Feb 15, 2009
by
Joseph Tulou
Committed by
Jean-Baptiste Kempf
Feb 20, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure cone is hidden before video is shown in qt4 interface
Signed-off-by:
Jean-Baptiste Kempf
<
jb@sasmira.jbkempf.com
>
parent
087123fe
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
9 deletions
+10
-9
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+0
-6
modules/gui/qt4/components/interface_widgets.hpp
modules/gui/qt4/components/interface_widgets.hpp
+0
-3
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+9
-0
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/main_interface.hpp
+1
-0
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
7353924f
...
@@ -76,11 +76,6 @@ VideoWidget::VideoWidget( intf_thread_t *_p_i ) : QFrame( NULL ), p_intf( _p_i )
...
@@ -76,11 +76,6 @@ VideoWidget::VideoWidget( intf_thread_t *_p_i ) : QFrame( NULL ), p_intf( _p_i )
Widgets with this attribute set do not participate in composition
Widgets with this attribute set do not participate in composition
management */
management */
setAttribute
(
Qt
::
WA_PaintOnScreen
,
true
);
setAttribute
(
Qt
::
WA_PaintOnScreen
,
true
);
/* The core can ask through a callback to show the video. */
connect
(
this
,
SIGNAL
(
askVideoWidgetToShow
(
unsigned
int
,
unsigned
int
)),
this
,
SLOT
(
SetSizing
(
unsigned
int
,
unsigned
int
)),
Qt
::
BlockingQueuedConnection
);
}
}
void
VideoWidget
::
paintEvent
(
QPaintEvent
*
ev
)
void
VideoWidget
::
paintEvent
(
QPaintEvent
*
ev
)
...
@@ -112,7 +107,6 @@ WId VideoWidget::request( vout_thread_t *p_nvout, int *pi_x, int *pi_y,
...
@@ -112,7 +107,6 @@ WId VideoWidget::request( vout_thread_t *p_nvout, int *pi_x, int *pi_y,
*
pi_height
=
size
().
height
();
*
pi_height
=
size
().
height
();
}
}
emit
askVideoWidgetToShow
(
*
pi_width
,
*
pi_height
);
if
(
p_vout
)
if
(
p_vout
)
{
{
msg_Dbg
(
p_intf
,
"embedded video already in use"
);
msg_Dbg
(
p_intf
,
"embedded video already in use"
);
...
...
modules/gui/qt4/components/interface_widgets.hpp
View file @
7353924f
...
@@ -80,9 +80,6 @@ private:
...
@@ -80,9 +80,6 @@ private:
QSize
videoSize
;
QSize
videoSize
;
signals:
void
askVideoWidgetToShow
(
unsigned
int
,
unsigned
int
);
public
slots
:
public
slots
:
void
SetSizing
(
unsigned
int
,
unsigned
int
);
void
SetSizing
(
unsigned
int
,
unsigned
int
);
...
...
modules/gui/qt4/main_interface.cpp
View file @
7353924f
...
@@ -214,9 +214,15 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
...
@@ -214,9 +214,15 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
this
,
SLOT
(
releaseVideoSlot
(
void
)),
Qt
::
BlockingQueuedConnection
);
this
,
SLOT
(
releaseVideoSlot
(
void
)),
Qt
::
BlockingQueuedConnection
);
if
(
videoWidget
)
if
(
videoWidget
)
{
CONNECT
(
this
,
askVideoToResize
(
unsigned
int
,
unsigned
int
),
CONNECT
(
this
,
askVideoToResize
(
unsigned
int
,
unsigned
int
),
videoWidget
,
SetSizing
(
unsigned
int
,
unsigned
int
)
);
videoWidget
,
SetSizing
(
unsigned
int
,
unsigned
int
)
);
connect
(
this
,
SIGNAL
(
askVideoToShow
(
unsigned
int
,
unsigned
int
)),
videoWidget
,
SLOT
(
SetSizing
(
unsigned
int
,
unsigned
int
)),
Qt
::
BlockingQueuedConnection
);
}
CONNECT
(
this
,
askUpdate
(),
this
,
doComponentsUpdate
()
);
CONNECT
(
this
,
askUpdate
(),
this
,
doComponentsUpdate
()
);
/* Size and placement of interface */
/* Size and placement of interface */
...
@@ -662,6 +668,9 @@ WId MainInterface::requestVideo( vout_thread_t *p_nvout, int *pi_x,
...
@@ -662,6 +668,9 @@ WId MainInterface::requestVideo( vout_thread_t *p_nvout, int *pi_x,
else
else
bgWasVisible
=
false
;
bgWasVisible
=
false
;
/* ask videoWidget to show */
emit
askVideoToShow
(
*
pi_width
,
*
pi_height
);
/* Consider the video active now */
/* Consider the video active now */
videoIsActive
=
true
;
videoIsActive
=
true
;
...
...
modules/gui/qt4/main_interface.hpp
View file @
7353924f
...
@@ -174,6 +174,7 @@ private slots:
...
@@ -174,6 +174,7 @@ private slots:
signals:
signals:
void
askReleaseVideo
(
);
void
askReleaseVideo
(
);
void
askVideoToResize
(
unsigned
int
,
unsigned
int
);
void
askVideoToResize
(
unsigned
int
,
unsigned
int
);
void
askVideoToShow
(
unsigned
int
,
unsigned
int
);
void
askVideoToToggle
();
void
askVideoToToggle
();
void
askBgWidgetToToggle
();
void
askBgWidgetToToggle
();
void
askUpdate
();
void
askUpdate
();
...
...
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