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
12732792
Commit
12732792
authored
Jul 08, 2002
by
Scott Wheeler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a couple of things to remove zeros from showing up in the FileList.
svn path=/trunk/kdemultimedia/juk/; revision=165496
parent
20b2886e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
tag.cpp
tag.cpp
+15
-2
No files found.
tag.cpp
View file @
12732792
...
...
@@ -60,6 +60,10 @@ Tag::Tag(QString file)
trackNumberString
=
temp
;
delete
[]
temp
;
QRegExp
zeros
(
"0+"
);
if
(
zeros
.
exactMatch
(
trackNumberString
))
trackNumberString
=
QString
::
null
;
trackNumber
=
ID3_GetTrackNum
(
&
tag
);
temp
=
ID3_GetComment
(
&
tag
);
...
...
@@ -96,6 +100,9 @@ Tag::Tag(QString file)
// convert the year
year
=
yearString
.
toInt
();
if
(
year
<=
0
)
yearString
=
QString
::
null
;
}
...
...
@@ -211,14 +218,20 @@ void Tag::setTrackNumber(int value)
{
changed
=
true
;
trackNumber
=
value
;
trackNumberString
.
setNum
(
value
);
if
(
trackNumber
>
0
)
trackNumberString
.
setNum
(
value
);
else
trackNumberString
=
QString
::
null
;
};
void
Tag
::
setYear
(
int
value
)
{
changed
=
true
;
year
=
value
;
yearString
.
setNum
(
value
);
if
(
year
>
0
)
yearString
.
setNum
(
value
);
else
yearString
=
QString
::
null
;
};
void
Tag
::
setComment
(
QString
value
)
...
...
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