Changeset 179 for smplayer/vendor/current/src/infofile.cpp
- Timestamp:
- Aug 31, 2016, 5:19:25 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/src/infofile.cpp
r175 r179 24 24 #include <QCoreApplication> 25 25 #include <QFile> 26 #include <QDateTime> 26 27 #include <QDebug> 27 28 … … 96 97 if (!md.clip_album.isEmpty()) c+= addItem( tr("Album"), md.clip_album ); 97 98 if (!md.clip_genre.isEmpty()) c+= addItem( tr("Genre"), md.clip_genre ); 98 if (!md.clip_date.isEmpty()) c+= addItem( tr("Date"), md.clip_date ); 99 if (!md.clip_date.isEmpty()) { 100 QString s = md.clip_date; 101 QDateTime d = QDateTime::fromString(md.clip_date, Qt::ISODate); 102 if (d.isValid()) { 103 s = d.toString("yyyy-MM-dd hh:mm:ss"); 104 /* s = QLocale::system().toString(d, QLocale::ShortFormat); */ 105 } 106 c+= addItem( tr("Date"), s ); 107 } 99 108 if (!md.clip_track.isEmpty()) c+= addItem( tr("Track"), md.clip_track ); 100 109 if (!md.clip_copyright.isEmpty()) c+= addItem( tr("Copyright"), md.clip_copyright );
Note:
See TracChangeset
for help on using the changeset viewer.