Changeset 170 for smplayer/trunk/src/recents.cpp
- Timestamp:
- Oct 9, 2014, 2:54:21 PM (11 years ago)
- Location:
- smplayer/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/trunk
- Property svn:mergeinfo changed
/smplayer/vendor/current merged: 168
- Property svn:mergeinfo changed
-
smplayer/trunk/src/recents.cpp
r165 r170 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.