~keithsalisbury/mixxx/mixxx

« back to all changes in this revision

Viewing changes to mixxx/src/library/mixxxlibraryfeature.cpp

  • Committer: Keith Salisbury
  • Date: 2012-05-06 13:44:20 UTC
  • mfrom: (2994.1.100 mixxx-trunk)
  • Revision ID: keithsalisbury@gmail.com-20120506134420-8k1dqq10aqmx0ecq
merge with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#include "library/trackcollection.h"
13
13
#include "treeitem.h"
14
14
 
15
 
#define CHILD_MISSING "Missing Songs"
16
 
 
17
15
MixxxLibraryFeature::MixxxLibraryFeature(QObject* parent,
18
16
                                         TrackCollection* pTrackCollection)
19
 
        : LibraryFeature(parent) {
 
17
        : LibraryFeature(parent),
 
18
          kMissingTitle(tr("Missing Tracks")) {
20
19
    QStringList columns;
21
20
    columns << "library." + LIBRARYTABLE_ID
22
21
            << "library." + LIBRARYTABLE_PLAYED
83
82
    m_pMissingTableModel = new MissingTableModel(this, pTrackCollection);
84
83
 
85
84
    TreeItem *rootItem = new TreeItem();
86
 
    TreeItem *childItem = new TreeItem(CHILD_MISSING, CHILD_MISSING,
 
85
    TreeItem *childItem = new TreeItem(kMissingTitle, kMissingTitle,
87
86
                                       this, rootItem);
88
87
    rootItem->appendChild(childItem);
89
88
    m_childModel.setRootItem(rootItem);
130
129
    /*if (itemName == m_childModel.stringList().at(0))
131
130
        emit(showTrackModel(m_pMissingTableModel));
132
131
     */
133
 
    if (itemName == CHILD_MISSING)
 
132
    if (itemName == kMissingTitle) {
134
133
        emit(showTrackModel(m_pMissingTableModel));
 
134
    }
135
135
}
136
136
 
137
137
void MixxxLibraryFeature::onRightClick(const QPoint& globalPos) {