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
27e9a1b0
Commit
27e9a1b0
authored
Nov 28, 2009
by
JP Dinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: Save a couple temporaries.
parent
35eb6b1c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+5
-7
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
27e9a1b0
...
@@ -619,12 +619,10 @@ void TimeLabel::setDisplayPosition( float pos, int time, int length )
...
@@ -619,12 +619,10 @@ void TimeLabel::setDisplayPosition( float pos, int time, int length )
:
time
);
:
time
);
QString
timestr
;
QString
timestr
;
timestr
.
sprintf
(
"
%s/%s"
,
psz_time
,
timestr
.
sprintf
(
"
%s%s/%s "
,
(
b_remainingTime
&&
length
)
?
"-"
:
""
,
(
!
length
&&
time
)
?
"--:--"
:
psz_length
);
psz_time
,
(
!
length
&&
time
)
?
"--:--"
:
psz_length
);
/* Add a minus to remaining time*/
setText
(
timestr
);
if
(
b_remainingTime
&&
length
)
setText
(
" -"
+
timestr
+
" "
);
else
setText
(
" "
+
timestr
+
" "
);
}
}
void
TimeLabel
::
toggleTimeDisplay
()
void
TimeLabel
::
toggleTimeDisplay
()
...
@@ -635,8 +633,8 @@ void TimeLabel::toggleTimeDisplay()
...
@@ -635,8 +633,8 @@ void TimeLabel::toggleTimeDisplay()
void
TimeLabel
::
setCaching
(
float
f_cache
)
void
TimeLabel
::
setCaching
(
float
f_cache
)
{
{
QString
amount
;
QString
amount
;
amount
.
s
etNum
(
(
int
)(
100
*
f_cache
)
);
amount
.
s
printf
(
"Buff: %i%%"
,
(
int
)(
100
*
f_cache
)
);
setText
(
"Buff: "
+
amount
+
"%"
);
setText
(
amount
);
}
}
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