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
7240444d
Commit
7240444d
authored
Jun 16, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: external progressBar, simplification for win32 style
parent
89c1b2c7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
modules/gui/qt4/dialogs/external.cpp
modules/gui/qt4/dialogs/external.cpp
+8
-6
modules/gui/qt4/dialogs/external.hpp
modules/gui/qt4/dialogs/external.hpp
+0
-2
No files found.
modules/gui/qt4/dialogs/external.cpp
View file @
7240444d
...
...
@@ -183,11 +183,15 @@ void DialogHandler::requestAnswer (vlc_object_t *, void *value)
QVLCProgressDialog
::
QVLCProgressDialog
(
DialogHandler
*
parent
,
struct
dialog_progress_bar_t
*
data
)
:
QProgressDialog
(
qfu
(
data
->
message
),
data
->
cancel
?
(
"&"
+
qfu
(
data
->
cancel
))
:
0
,
0
,
1000
),
:
QProgressDialog
(
),
handler
(
parent
),
cancelled
(
false
)
{
setLabelText
(
qfu
(
data
->
message
)
);
setRange
(
0
,
0
);
if
(
data
->
cancel
)
setCancelButton
(
new
QPushButton
(
"&"
+
qfu
(
data
->
cancel
)
)
);
if
(
data
->
title
!=
NULL
)
setWindowTitle
(
qfu
(
data
->
title
));
setWindowRole
(
"vlc-progress"
);
...
...
@@ -205,14 +209,12 @@ QVLCProgressDialog::QVLCProgressDialog (DialogHandler *parent,
data
->
p_sys
=
this
;
}
QVLCProgressDialog
::~
QVLCProgressDialog
(
void
)
{
}
void
QVLCProgressDialog
::
update
(
void
*
priv
,
const
char
*
text
,
float
value
)
{
QVLCProgressDialog
*
self
=
static_cast
<
QVLCProgressDialog
*>
(
priv
);
if
(
value
>
0
)
self
->
setRange
(
0
,
1000
);
if
(
text
!=
NULL
)
emit
self
->
described
(
qfu
(
text
));
emit
self
->
progressed
((
int
)(
value
*
1000.
));
...
...
modules/gui/qt4/dialogs/external.hpp
View file @
7240444d
...
...
@@ -68,8 +68,6 @@ class QVLCProgressDialog : public QProgressDialog
public:
QVLCProgressDialog
(
DialogHandler
*
parent
,
struct
dialog_progress_bar_t
*
);
virtual
~
QVLCProgressDialog
(
void
);
private:
DialogHandler
*
handler
;
bool
cancelled
;
...
...
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