Ignore:
Timestamp:
Oct 9, 2014, 2:54:21 PM (11 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: updated trunk to 14.9.0

Location:
smplayer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

  • smplayer/trunk/src/recents.cpp

    r165 r170  
    5151}
    5252
     53void Recents::addItem(QString s, QString title) {
     54        s += "|title]=" + title;
     55        addItem(s);
     56}
     57
    5358QString 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
     67QString 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;
    5574}
    5675
Note: See TracChangeset for help on using the changeset viewer.