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
657a734b
Commit
657a734b
authored
Dec 19, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: connect TimeLabel to the inputStateChange to display the buffering status.
DOesn't show anything yet.
parent
669634fb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+10
-0
modules/gui/qt4/components/interface_widgets.hpp
modules/gui/qt4/components/interface_widgets.hpp
+1
-0
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
657a734b
...
@@ -486,6 +486,8 @@ TimeLabel::TimeLabel( intf_thread_t *_p_intf ) :QLabel(), p_intf( _p_intf )
...
@@ -486,6 +486,8 @@ TimeLabel::TimeLabel( intf_thread_t *_p_intf ) :QLabel(), p_intf( _p_intf )
setToolTip
(
qtr
(
"Toggle between elapsed and remaining time"
)
);
setToolTip
(
qtr
(
"Toggle between elapsed and remaining time"
)
);
CONNECT
(
THEMIM
->
getIM
(),
statusChanged
(
int
),
this
,
setStatus
(
int
)
);
CONNECT
(
THEMIM
->
getIM
(),
positionUpdated
(
float
,
int
,
int
),
CONNECT
(
THEMIM
->
getIM
(),
positionUpdated
(
float
,
int
,
int
),
this
,
setDisplayPosition
(
float
,
int
,
int
)
);
this
,
setDisplayPosition
(
float
,
int
,
int
)
);
}
}
...
@@ -511,6 +513,14 @@ void TimeLabel::toggleTimeDisplay()
...
@@ -511,6 +513,14 @@ void TimeLabel::toggleTimeDisplay()
b_remainingTime
=
!
b_remainingTime
;
b_remainingTime
=
!
b_remainingTime
;
}
}
void
TimeLabel
::
setStatus
(
int
i_status
)
{
msg_Warn
(
p_intf
,
"Status: %i"
,
i_status
);
if
(
i_status
==
OPENING_S
)
setText
(
"Buffering"
);
}
bool
VolumeClickHandler
::
eventFilter
(
QObject
*
obj
,
QEvent
*
e
)
bool
VolumeClickHandler
::
eventFilter
(
QObject
*
obj
,
QEvent
*
e
)
{
{
if
(
e
->
type
()
==
QEvent
::
MouseButtonPress
)
if
(
e
->
type
()
==
QEvent
::
MouseButtonPress
)
...
...
modules/gui/qt4/components/interface_widgets.hpp
View file @
657a734b
...
@@ -159,6 +159,7 @@ signals:
...
@@ -159,6 +159,7 @@ signals:
void
timeLabelDoubleClicked
();
void
timeLabelDoubleClicked
();
private
slots
:
private
slots
:
void
setDisplayPosition
(
float
pos
,
int
time
,
int
length
);
void
setDisplayPosition
(
float
pos
,
int
time
,
int
length
);
void
setStatus
(
int
i_status
);
};
};
class
SpeedLabel
:
public
QLabel
class
SpeedLabel
:
public
QLabel
...
...
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