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
96eeaffd
Commit
96eeaffd
authored
May 16, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: use a better name for artWork function to avoid the issue we had by the past...
doSomehting() is not a good function name.
parent
89b6530d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+8
-7
modules/gui/qt4/components/interface_widgets.hpp
modules/gui/qt4/components/interface_widgets.hpp
+2
-2
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
96eeaffd
...
...
@@ -404,24 +404,25 @@ void SpeedControlWidget::resetRate()
}
CoverArtLabel
::
CoverArtLabel
(
QWidget
*
parent
,
intf_thread_t
*
_p_i
)
:
QLabel
(
parent
),
p_intf
(
_p_i
)
:
QLabel
(
parent
),
p_intf
(
_p_i
)
{
setContextMenuPolicy
(
Qt
::
ActionsContextMenu
);
CONNECT
(
this
,
updateRequested
(),
this
,
do
Update
()
);
CONNECT
(
this
,
updateRequested
(),
this
,
askFor
Update
()
);
CONNECT
(
THEMIM
->
getIM
(),
artChanged
(
QString
),
this
,
do
Update
(
const
QString
&
)
);
this
,
showArt
Update
(
const
QString
&
)
);
setMinimumHeight
(
128
);
setMinimumWidth
(
128
);
setMaximumHeight
(
128
);
setMaximumWidth
(
128
);
setScaledContents
(
true
);
QList
<
QAction
*
>
artActions
=
actions
();
QAction
*
action
=
new
QAction
(
qtr
(
"Download cover art"
),
this
);
CONNECT
(
action
,
triggered
(),
this
,
askForUpdate
()
);
addAction
(
action
);
CONNECT
(
action
,
triggered
(),
this
,
doUpdate
()
);
do
Update
(
""
);
showArt
Update
(
""
);
}
CoverArtLabel
::~
CoverArtLabel
()
...
...
@@ -431,7 +432,7 @@ CoverArtLabel::~CoverArtLabel()
removeAction
(
act
);
}
void
CoverArtLabel
::
do
Update
(
const
QString
&
url
)
void
CoverArtLabel
::
showArt
Update
(
const
QString
&
url
)
{
QPixmap
pix
;
if
(
!
url
.
isEmpty
()
&&
pix
.
load
(
url
)
)
...
...
@@ -444,7 +445,7 @@ void CoverArtLabel::doUpdate( const QString& url )
}
}
void
CoverArtLabel
::
do
Update
()
void
CoverArtLabel
::
askFor
Update
()
{
THEMIM
->
getIM
()
->
requestArtUpdate
();
}
...
...
modules/gui/qt4/components/interface_widgets.hpp
View file @
96eeaffd
...
...
@@ -207,8 +207,8 @@ public slots:
}
private
slots
:
void
do
Update
();
void
do
Update
(
const
QString
&
);
void
askFor
Update
();
void
showArt
Update
(
const
QString
&
);
signals:
void
updateRequested
();
...
...
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