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
Hide 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
...
@@ -317,6 +317,7 @@ QVariant ExtensionListModel::ExtensionCopy::data( int role ) const
case
Qt
:
:
DisplayRole
:
case
Qt
:
:
DisplayRole
:
return
title
;
return
title
;
case
Qt
:
:
DecorationRole
:
case
Qt
:
:
DecorationRole
:
if
(
!
icon
)
return
QPixmap
(
":/logo/vlc48.png"
);
return
*
icon
;
return
*
icon
;
case
DescriptionRole
:
case
DescriptionRole
:
return
shortdesc
;
return
shortdesc
;
...
@@ -531,11 +532,8 @@ ExtensionInfoDialog::ExtensionInfoDialog( const QModelIndex &index,
...
@@ -531,11 +532,8 @@ ExtensionInfoDialog::ExtensionInfoDialog( const QModelIndex &index,
// Icon
// Icon
QLabel
*
icon
=
new
QLabel
(
this
);
QLabel
*
icon
=
new
QLabel
(
this
);
QPixmap
pix
=
index
.
data
(
Qt
::
DecorationRole
).
value
<
QPixmap
>
();
QPixmap
pix
=
index
.
data
(
Qt
::
DecorationRole
).
value
<
QPixmap
>
();
if
(
pix
.
isNull
()
)
Q_ASSERT
(
!
pix
.
isNull
()
);
{
icon
->
setPixmap
(
pix
);
pix
=
QPixmap
(
":/logo/vlc48.png"
);
icon
->
setPixmap
(
pix
);
}
icon
->
setAlignment
(
Qt
::
AlignCenter
);
icon
->
setAlignment
(
Qt
::
AlignCenter
);
icon
->
setFixedSize
(
48
,
48
);
icon
->
setFixedSize
(
48
,
48
);
layout
->
addWidget
(
icon
,
1
,
0
,
2
,
1
);
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