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
9ff5775d
Commit
9ff5775d
authored
Sep 29, 2013
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: show extension short description in menu
Else fallback to title
parent
5f588537
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
modules/gui/qt4/extensions_manager.cpp
modules/gui/qt4/extensions_manager.cpp
+5
-2
No files found.
modules/gui/qt4/extensions_manager.cpp
View file @
9ff5775d
...
...
@@ -153,7 +153,9 @@ void ExtensionsManager::menu( QMenu *current )
if
(
b_Active
&&
extension_HasMenu
(
p_extensions_manager
,
p_ext
)
)
{
QMenu
*
submenu
=
new
QMenu
(
qfu
(
p_ext
->
psz_title
),
current
);
QMenu
*
submenu
=
new
QMenu
(
qfu
(
p_ext
->
psz_shortdescription
?
p_ext
->
psz_shortdescription
:
p_ext
->
psz_title
),
current
);
char
**
ppsz_titles
=
NULL
;
uint16_t
*
pi_ids
=
NULL
;
size_t
i_num
=
0
;
...
...
@@ -198,7 +200,8 @@ void ExtensionsManager::menu( QMenu *current )
}
else
{
action
=
current
->
addAction
(
qfu
(
p_ext
->
psz_title
)
);
action
=
current
->
addAction
(
qfu
(
p_ext
->
psz_shortdescription
?
p_ext
->
psz_shortdescription
:
p_ext
->
psz_title
)
);
menuMapper
->
setMapping
(
action
,
MENU_MAP
(
0
,
i_ext
)
);
CONNECT
(
action
,
triggered
(),
menuMapper
,
map
()
);
...
...
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