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
2cd90236
Commit
2cd90236
authored
Jan 28, 2010
by
Jakob Leben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: locationBar: update when browsing back/up, show current bold
parent
d1b06eaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
modules/gui/qt4/components/playlist/standardpanel.cpp
modules/gui/qt4/components/playlist/standardpanel.cpp
+7
-2
No files found.
modules/gui/qt4/components/playlist/standardpanel.cpp
View file @
2cd90236
...
...
@@ -433,21 +433,25 @@ void LocationBar::setIndex( const QModelIndex &index )
QModelIndex
i
=
index
;
QFont
font
;
QFontMetrics
metrics
(
font
);
font
.
setBold
(
true
);
while
(
true
)
{
QToolButton
*
btn
=
new
QToolButton
;
PLItem
*
item
=
model
->
getItem
(
i
);
QToolButton
*
btn
=
new
QToolButton
;
char
*
fb_name
=
input_item_GetTitleFbName
(
item
->
inputItem
()
);
QString
text
=
qfu
(
fb_name
);
free
(
fb_name
);
text
=
QString
(
"/ "
)
+
metrics
.
elidedText
(
text
,
Qt
::
ElideRight
,
150
);
btn
->
setText
(
text
);
btn
->
set
ToolButtonStyle
(
Qt
::
ToolButtonTextBesideIcon
);
btn
->
set
Font
(
font
);
prev
=
insertWidget
(
prev
,
btn
);
mapper
->
setMapping
(
btn
,
item
->
id
()
);
CONNECT
(
btn
,
clicked
(
),
mapper
,
map
(
)
);
font
=
QFont
();
if
(
i
.
isValid
()
)
i
=
i
.
parent
();
else
break
;
}
...
...
@@ -456,5 +460,6 @@ void LocationBar::setIndex( const QModelIndex &index )
void
LocationBar
::
invoke
(
int
i_id
)
{
QModelIndex
index
=
model
->
index
(
i_id
,
0
);
setIndex
(
index
);
emit
invoked
(
index
);
}
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