Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
1cc91766
Commit
1cc91766
authored
Aug 17, 2012
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: UpdateDialog: use dynamic event IDs
parent
11279e38
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
modules/gui/qt4/dialogs/help.cpp
modules/gui/qt4/dialogs/help.cpp
+7
-2
modules/gui/qt4/dialogs/help.hpp
modules/gui/qt4/dialogs/help.hpp
+2
-3
No files found.
modules/gui/qt4/dialogs/help.cpp
View file @
1cc91766
...
...
@@ -141,13 +141,18 @@ static void UpdateCallback( void *data, bool b_ret )
QEvent
*
event
;
if
(
b_ret
)
event
=
new
QEvent
(
(
QEvent
::
Type
)
UDOkEvent
);
event
=
new
QEvent
(
UpdateDialog
::
UDOkEvent
);
else
event
=
new
QEvent
(
(
QEvent
::
Type
)
UDErrorEvent
);
event
=
new
QEvent
(
UpdateDialog
::
UDErrorEvent
);
QApplication
::
postEvent
(
UDialog
,
event
);
}
const
QEvent
::
Type
UpdateDialog
::
UDOkEvent
=
(
QEvent
::
Type
)
QEvent
::
registerEventType
();
const
QEvent
::
Type
UpdateDialog
::
UDErrorEvent
=
(
QEvent
::
Type
)
QEvent
::
registerEventType
();
UpdateDialog
::
UpdateDialog
(
intf_thread_t
*
_p_intf
)
:
QVLCFrame
(
_p_intf
)
{
/* build Ui */
...
...
modules/gui/qt4/dialogs/help.hpp
View file @
1cc91766
...
...
@@ -65,13 +65,12 @@ public slots:
#ifdef UPDATE_CHECK
static
const
int
UDOkEvent
=
QEvent
::
User
+
DialogEventTypeOffset
+
21
;
static
const
int
UDErrorEvent
=
QEvent
::
User
+
DialogEventTypeOffset
+
22
;
class
UpdateDialog
:
public
QVLCFrame
,
public
Singleton
<
UpdateDialog
>
{
Q_OBJECT
public:
static
const
QEvent
::
Type
UDOkEvent
;
static
const
QEvent
::
Type
UDErrorEvent
;
void
updateNotify
(
bool
);
private:
...
...
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