~ubuntu-branches/ubuntu/wily/smplayer/wily

« back to all changes in this revision

Viewing changes to src/recents.cpp

  • Committer: Package Import Robot
  • Author(s): Mateusz Łukasik, Mateusz Łukasik, Alessio Treglia
  • Date: 2014-09-10 13:50:48 UTC
  • mfrom: (1.3.3)
  • mto: This revision was merged to the branch mainline in revision 27.
  • Revision ID: package-import@ubuntu.com-20140910135048-t043hd88bhpfvfow
[ Mateusz Łukasik ]
* New upstream release.

[ Alessio Treglia ]
* Repackaging upstream sources to get rid of
  zlib/contrib/dotzlib/DotZLib.chm.
* Enable parallel builds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
        if (l.count() > max_items) l.removeLast();
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
 
57
76
void Recents::list() {