~ubuntu-branches/ubuntu/maverick/kdemultimedia/maverick-proposed

« back to all changes in this revision

Viewing changes to juk/historyplaylist.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-06-26 02:22:25 UTC
  • mfrom: (1.2.45 upstream)
  • Revision ID: james.westby@ubuntu.com-20100626022225-omfadqnrsdbinnnu
Tags: 4:4.4.90-0ubuntu1
* New upstream rc release
  - Bump kde-sc-dev-latest to 4.4.90
  - Add not-installed file
  - Update KUBUNTU-DEBIAN-DIFFERENCES
  - Update symbol file and confirmed on i386 amd64
  - Bump library version in rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
////////////////////////////////////////////////////////////////////////////////
30
30
 
31
31
HistoryPlaylist::HistoryPlaylist(PlaylistCollection *collection) :
32
 
    Playlist(collection, true),
 
32
    Playlist(collection, true, 1),
33
33
    m_timer(new QTimer(this))
34
34
{
35
35
    setAllowDuplicates(true);
36
36
 
37
37
    m_timer->setSingleShot(true);
38
38
    connect(m_timer, SIGNAL(timeout()), this, SLOT(slotCreateNewItem()));
 
39
 
 
40
    setSorting(-1);
 
41
    setColumnText(0, i18n("Time"));
39
42
}
40
43
 
41
44
HistoryPlaylist::~HistoryPlaylist()
57
60
}
58
61
 
59
62
////////////////////////////////////////////////////////////////////////////////
60
 
// HistoryPlaylist protected members
61
 
////////////////////////////////////////////////////////////////////////////////
62
 
 
63
 
void HistoryPlaylist::polish()
64
 
{
65
 
    addColumn(i18n("Time"));
66
 
    Playlist::ensurePolished();
67
 
    setSorting(-1);
68
 
}
69
 
 
70
 
////////////////////////////////////////////////////////////////////////////////
71
63
// private slots
72
64
////////////////////////////////////////////////////////////////////////////////
73
65