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
d2bbd68d
Commit
d2bbd68d
authored
Oct 18, 2008
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use normal QCloseEvent to signal maininterface to closeup
parent
8ce3a352
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
7 deletions
+1
-7
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+0
-5
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.cpp
+1
-1
modules/gui/qt4/qt4.hpp
modules/gui/qt4/qt4.hpp
+0
-1
No files found.
modules/gui/qt4/main_interface.cpp
View file @
d2bbd68d
...
@@ -1088,11 +1088,6 @@ void MainInterface::customEvent( QEvent *event )
...
@@ -1088,11 +1088,6 @@ void MainInterface::customEvent( QEvent *event )
setWindowFlags
(
windowFlags
()
&
~
Qt
::
WindowStaysOnTopHint
);
setWindowFlags
(
windowFlags
()
&
~
Qt
::
WindowStaysOnTopHint
);
show
();
/* necessary to apply window flags?? */
show
();
/* necessary to apply window flags?? */
}
}
if
(
event
->
type
()
==
MainInterfaceClose_Type
)
{
QApplication
::
closeAllWindows
();
QApplication
::
quit
();
}
}
}
void
MainInterface
::
keyPressEvent
(
QKeyEvent
*
e
)
void
MainInterface
::
keyPressEvent
(
QKeyEvent
*
e
)
...
...
modules/gui/qt4/qt4.cpp
View file @
d2bbd68d
...
@@ -325,7 +325,7 @@ static QWaitCondition windowWait;
...
@@ -325,7 +325,7 @@ static QWaitCondition windowWait;
static
void
ThreadCleanup
(
void
*
param
)
static
void
ThreadCleanup
(
void
*
param
)
{
{
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
param
;
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
param
;
Q
Event
*
event
=
new
QEvent
((
QEvent
::
Type
)(
MainInterfaceClose_Type
)
);
Q
CloseEvent
*
event
=
new
QCloseEvent
(
);
QApplication
::
postEvent
(
p_intf
->
p_sys
->
p_mi
,
event
);
QApplication
::
postEvent
(
p_intf
->
p_sys
->
p_mi
,
event
);
}
}
...
...
modules/gui/qt4/qt4.hpp
View file @
d2bbd68d
...
@@ -158,7 +158,6 @@ static const int DialogEvent_Type = QEvent::User + DialogEventType + 1;
...
@@ -158,7 +158,6 @@ static const int DialogEvent_Type = QEvent::User + DialogEventType + 1;
//static const int PLUndockEvent_Type = QEvent::User + DialogEventType + 2;
//static const int PLUndockEvent_Type = QEvent::User + DialogEventType + 2;
//static const int PLDockEvent_Type = QEvent::User + DialogEventType + 3;
//static const int PLDockEvent_Type = QEvent::User + DialogEventType + 3;
static
const
int
SetVideoOnTopEvent_Type
=
QEvent
::
User
+
DialogEventType
+
4
;
static
const
int
SetVideoOnTopEvent_Type
=
QEvent
::
User
+
DialogEventType
+
4
;
static
const
int
MainInterfaceClose_Type
=
QEvent
::
User
+
404
;
class
DialogEvent
:
public
QEvent
class
DialogEvent
:
public
QEvent
{
{
...
...
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