Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
JuK
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
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
Multimedia
JuK
Commits
6aa0b52c
Commit
6aa0b52c
authored
Dec 31, 2005
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Q3StyleSheet--
svn path=/trunk/KDE/kdemultimedia/juk/; revision=492896
parent
c083adf3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
nowplaying.cpp
nowplaying.cpp
+5
-4
systemtray.cpp
systemtray.cpp
+3
-2
No files found.
nowplaying.cpp
View file @
6aa0b52c
...
...
@@ -35,6 +35,7 @@
#include <QDragEnterEvent>
#include <QMouseEvent>
#include <krandom.h>
#include <QTextDocument>
#include "nowplaying.h"
#include "playlistcollection.h"
...
...
@@ -260,9 +261,9 @@ void TrackItem::slotOpenLink(const QString &link)
void
TrackItem
::
slotUpdate
()
{
QString
title
=
Q
3StyleShee
t
::
escape
(
m_file
.
tag
()
->
title
());
QString
artist
=
Q
3StyleShee
t
::
escape
(
m_file
.
tag
()
->
artist
());
QString
album
=
Q
3StyleShee
t
::
escape
(
m_file
.
tag
()
->
album
());
QString
title
=
Qt
::
escape
(
m_file
.
tag
()
->
title
());
QString
artist
=
Qt
::
escape
(
m_file
.
tag
()
->
artist
());
QString
album
=
Qt
::
escape
(
m_file
.
tag
()
->
album
());
QString
separator
=
(
artist
.
isNull
()
||
album
.
isNull
())
?
QString
::
null
:
QString
(
" - "
);
// This block-o-nastiness makes the font smaller and smaller until it actually fits.
...
...
@@ -320,7 +321,7 @@ void HistoryItem::update(const FileHandle &file)
it
!=
m_history
.
end
();
++
it
)
{
previous
=
current
;
current
.
append
(
format
.
arg
((
*
it
).
anchor
).
arg
(
Q
3StyleShee
t
::
escape
((
*
it
).
file
.
tag
()
->
title
())));
current
.
append
(
format
.
arg
((
*
it
).
anchor
).
arg
(
Qt
::
escape
((
*
it
).
file
.
tag
()
->
title
())));
setText
(
current
);
if
(
heightForWidth
(
width
())
>
imageSize
)
{
setText
(
previous
);
...
...
systemtray.cpp
View file @
6aa0b52c
...
...
@@ -43,6 +43,7 @@
#include <netwm.h>
#include <QX11Info>
#include <QTextDocument>
#include "tag.h"
#include "systemtray.h"
...
...
@@ -392,14 +393,14 @@ void SystemTray::createPopup()
int
labelCount
=
0
;
QString
title
=
Q
3StyleShee
t
::
escape
(
playingInfo
->
title
());
QString
title
=
Qt
::
escape
(
playingInfo
->
title
());
m_labels
[
labelCount
++
]
->
setText
(
QString
(
"<qt><nobr><h2>%1</h2></nobr><qt>"
).
arg
(
title
));
if
(
!
playingInfo
->
artist
().
isEmpty
())
m_labels
[
labelCount
++
]
->
setText
(
playingInfo
->
artist
());
if
(
!
playingInfo
->
album
().
isEmpty
())
{
QString
album
=
Q
3StyleShee
t
::
escape
(
playingInfo
->
album
());
QString
album
=
Qt
::
escape
(
playingInfo
->
album
());
QString
s
=
playingInfo
->
year
()
>
0
?
QString
(
"<qt><nobr>%1 (%2)</nobr></qt>"
).
arg
(
album
).
arg
(
playingInfo
->
year
())
:
QString
(
"<qt><nobr>%1</nobr></qt>"
).
arg
(
album
);
...
...
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