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
98d71a44
Commit
98d71a44
authored
May 16, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: add QVLCInteger
parent
d15c2052
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
modules/gui/qt4/variables.cpp
modules/gui/qt4/variables.cpp
+12
-0
modules/gui/qt4/variables.hpp
modules/gui/qt4/variables.hpp
+14
-0
No files found.
modules/gui/qt4/variables.cpp
View file @
98d71a44
...
...
@@ -65,3 +65,15 @@ void QVLCPointer::trigger (vlc_object_t *obj, vlc_value_t old, vlc_value_t cur)
emit
pointerChanged
(
obj
,
old
.
p_address
,
cur
.
p_address
);
emit
pointerChanged
(
obj
,
cur
.
p_address
);
}
QVLCInteger
::
QVLCInteger
(
vlc_object_t
*
obj
,
const
char
*
varname
,
bool
inherit
)
:
QVLCVariable
(
obj
,
varname
,
VLC_VAR_INTEGER
,
inherit
)
{
}
void
QVLCInteger
::
trigger
(
vlc_object_t
*
obj
,
vlc_value_t
old
,
vlc_value_t
cur
)
{
emit
integerChanged
(
obj
,
old
.
i_int
,
cur
.
i_int
);
emit
integerChanged
(
obj
,
cur
.
i_int
);
}
modules/gui/qt4/variables.hpp
View file @
98d71a44
...
...
@@ -53,4 +53,18 @@ signals:
void
pointerChanged
(
vlc_object_t
*
,
void
*
);
};
class
QVLCInteger
:
public
QVLCVariable
{
Q_OBJECT
private:
virtual
void
trigger
(
vlc_object_t
*
,
vlc_value_t
,
vlc_value_t
);
public:
QVLCInteger
(
vlc_object_t
*
,
const
char
*
,
bool
inherit
=
false
);
signals:
void
integerChanged
(
vlc_object_t
*
,
int
,
int
);
void
integerChanged
(
vlc_object_t
*
,
int
);
};
#endif
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