Changeset 168 for smplayer/vendor/current/src/recents.cpp
- Timestamp:
- Oct 9, 2014, 11:54:00 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/src/recents.cpp
r163 r168 51 51 } 52 52 53 void Recents::addItem(QString s, QString title) { 54 s += "|title]=" + title; 55 addItem(s); 56 } 57 53 58 QString Recents::item(int n) { 54 return l[n]; 59 QString res; 60 61 QStringList s = l[n].split("|title]="); 62 if (s.count() > 0) res = s[0]; 63 64 return res; 65 } 66 67 QString Recents::title(int n) { 68 QString res; 69 70 QStringList s = l[n].split("|title]="); 71 if (s.count() > 1) res = s[1]; 72 73 return res; 55 74 } 56 75
Note:
See TracChangeset
for help on using the changeset viewer.