diff options
Diffstat (limited to 'src/qmmpui')
| -rw-r--r-- | src/qmmpui/songinfo.cpp | 5 | ||||
| -rw-r--r-- | src/qmmpui/songinfo.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/qmmpui/songinfo.cpp b/src/qmmpui/songinfo.cpp index 178f6eee6..15d134723 100644 --- a/src/qmmpui/songinfo.cpp +++ b/src/qmmpui/songinfo.cpp @@ -115,6 +115,11 @@ const QString SongInfo::path () const return m_path; } +const QString SongInfo::fileName () const +{ + return m_path.section('/',-1); +} + const uint SongInfo::year () const { return m_numValues[YEAR]; diff --git a/src/qmmpui/songinfo.h b/src/qmmpui/songinfo.h index 0180f35a5..af49b0b67 100644 --- a/src/qmmpui/songinfo.h +++ b/src/qmmpui/songinfo.h @@ -61,6 +61,7 @@ public: const QString comment () const; const QString genre () const; const QString path () const; + const QString fileName () const; const uint year () const; const uint track () const; const uint length () const; |
