Created
September 8, 2014 22:17
-
-
Save gnufied/115f1a4fae3538534511 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "sortobjectproxymodel.h" | |
SortObjectProxyModel::SortObjectProxyModel(QObject *parent) : | |
QSortFilterProxyModel(parent) | |
{ | |
} | |
bool SortObjectProxyModel::hasChildren(const QModelIndex &parent) const | |
{ | |
const QModelIndex sourceIndex = mapToSource(parent); | |
return sourceModel()->hasChildren(sourceIndex); | |
} | |
int SortObjectProxyModel::rowCount(const QModelIndex &parent) const | |
{ | |
const QModelIndex sourceIndex = mapToSource(parent); | |
return sourceModel()->rowCount(sourceIndex); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment