Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
5f1ea6d3
Commit
5f1ea6d3
authored
Jun 23, 2013
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: Extensions: fix showing cone when no custom logo
parent
dd29c917
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
modules/gui/qt4/dialogs/plugins.cpp
modules/gui/qt4/dialogs/plugins.cpp
+3
-5
No files found.
modules/gui/qt4/dialogs/plugins.cpp
View file @
5f1ea6d3
...
...
@@ -317,6 +317,7 @@ QVariant ExtensionListModel::ExtensionCopy::data( int role ) const
case
Qt
:
:
DisplayRole
:
return
title
;
case
Qt
:
:
DecorationRole
:
if
(
!
icon
)
return
QPixmap
(
":/logo/vlc48.png"
);
return
*
icon
;
case
DescriptionRole
:
return
shortdesc
;
...
...
@@ -531,11 +532,8 @@ ExtensionInfoDialog::ExtensionInfoDialog( const QModelIndex &index,
// Icon
QLabel
*
icon
=
new
QLabel
(
this
);
QPixmap
pix
=
index
.
data
(
Qt
::
DecorationRole
).
value
<
QPixmap
>
();
if
(
pix
.
isNull
()
)
{
pix
=
QPixmap
(
":/logo/vlc48.png"
);
Q_ASSERT
(
!
pix
.
isNull
()
);
icon
->
setPixmap
(
pix
);
}
icon
->
setAlignment
(
Qt
::
AlignCenter
);
icon
->
setFixedSize
(
48
,
48
);
layout
->
addWidget
(
icon
,
1
,
0
,
2
,
1
);
...
...
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