Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
dabe66a7
Commit
dabe66a7
authored
Jun 13, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Make the update() update the art in mediaInfo.
parent
fa0c3cd5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
13 deletions
+10
-13
modules/gui/qt4/components/infopanels.cpp
modules/gui/qt4/components/infopanels.cpp
+7
-8
modules/gui/qt4/components/infopanels.hpp
modules/gui/qt4/components/infopanels.hpp
+0
-2
modules/gui/qt4/dialogs/mediainfo.cpp
modules/gui/qt4/dialogs/mediainfo.cpp
+3
-3
No files found.
modules/gui/qt4/components/infopanels.cpp
View file @
dabe66a7
...
@@ -173,15 +173,14 @@ void MetaPanel::update( input_item_t *p_item )
...
@@ -173,15 +173,14 @@ void MetaPanel::update( input_item_t *p_item )
UPDATE_META_INT
(
rating
,
rating_text
);
UPDATE_META_INT
(
rating
,
rating_text
);
#undef UPDATE_META
#undef UPDATE_META
}
psz_meta
=
p_item
->
p_meta
->
psz_arturl
;
if
(
psz_meta
&&
!
strncmp
(
psz_meta
,
"file://"
,
7
)
)
void
MetaPanel
::
setArt
(
QString
artUrl
)
{
{
QString
artUrl
=
qfu
(
psz_meta
).
replace
(
"file://"
,
QString
(
""
)
);
msg_Dbg
(
p_intf
,
"Trying to update art"
);
if
(
artUrl
.
isNull
()
)
art_cover
->
setPixmap
(
QPixmap
(
":/noart.png"
)
);
else
art_cover
->
setPixmap
(
QPixmap
(
artUrl
)
);
art_cover
->
setPixmap
(
QPixmap
(
artUrl
)
);
}
else
art_cover
->
setPixmap
(
QPixmap
(
":/noart.png"
)
);
}
}
void
MetaPanel
::
clear
(){}
void
MetaPanel
::
clear
(){}
...
...
modules/gui/qt4/components/infopanels.hpp
View file @
dabe66a7
...
@@ -74,8 +74,6 @@ private:
...
@@ -74,8 +74,6 @@ private:
public
slots
:
public
slots
:
void
update
(
input_item_t
*
);
void
update
(
input_item_t
*
);
void
clear
();
void
clear
();
private
slots
:
void
setArt
(
QString
);
signals:
signals:
void
uriSet
(
QString
);
void
uriSet
(
QString
);
};
};
...
...
modules/gui/qt4/dialogs/mediainfo.cpp
View file @
dabe66a7
...
@@ -92,7 +92,7 @@ MediaInfoDialog::~MediaInfoDialog()
...
@@ -92,7 +92,7 @@ MediaInfoDialog::~MediaInfoDialog()
writeSettings
(
"mediainfo"
);
writeSettings
(
"mediainfo"
);
}
}
void
MediaInfoDialog
::
showTab
(
int
i_tab
=
0
)
void
MediaInfoDialog
::
showTab
(
int
i_tab
=
0
)
{
{
this
->
show
();
this
->
show
();
IT
->
setCurrentIndex
(
i_tab
);
IT
->
setCurrentIndex
(
i_tab
);
...
@@ -106,7 +106,7 @@ static int ItemChanged( vlc_object_t *p_this, const char *psz_var,
...
@@ -106,7 +106,7 @@ static int ItemChanged( vlc_object_t *p_this, const char *psz_var,
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
void
MediaInfoDialog
::
setInput
(
input_item_t
*
p_input
)
void
MediaInfoDialog
::
setInput
(
input_item_t
*
p_input
)
{
{
clear
();
clear
();
vlc_mutex_lock
(
&
p_input
->
lock
);
vlc_mutex_lock
(
&
p_input
->
lock
);
...
@@ -117,7 +117,7 @@ void MediaInfoDialog::setInput(input_item_t *p_input)
...
@@ -117,7 +117,7 @@ void MediaInfoDialog::setInput(input_item_t *p_input)
void
MediaInfoDialog
::
update
()
void
MediaInfoDialog
::
update
()
{
{
/* Timer runs at 150 ms, dont' update more than 2 times per second */
/* Timer runs at 150 ms, dont' update more than 2 times per second */
if
(
i_runs
%
3
!=
0
)
return
;
if
(
i_runs
%
4
!=
0
)
return
;
i_runs
++
;
i_runs
++
;
/* Get Input and clear if non-existant */
/* Get Input and clear if non-existant */
...
...
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