~ubuntu-branches/ubuntu/precise/kdenetwork/precise

« back to all changes in this revision

Viewing changes to kget/ui/history/transferhistorycategorizedview.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-01-20 12:10:23 UTC
  • mfrom: (1.1.66)
  • Revision ID: package-import@ubuntu.com-20120120121023-5dqnjhqvzt7e9g6l
Tags: 4:4.8.0-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
        m_delegate->categorizeItem(item);
113
113
    }
114
114
 
115
 
    m_proxyModel = new KCategorizedSortFilterProxyModel();
 
115
    m_proxyModel = new KCategorizedSortFilterProxyModel(this);
116
116
    m_proxyModel->setCategorizedModel(true);
117
117
    m_proxyModel->sort(0);
118
118
    m_proxyModel->setSourceModel(m_model);
 
119
    QAbstractItemModel *oldProxy = m_view->model();
119
120
    m_view->setModel(m_proxyModel);
 
121
    oldProxy->deleteLater();
120
122
}
121
123
 
122
124
#include "transferhistorycategorizedview.moc"