Skip to content
Extraits de code Groupes Projets
Sélectionner une révision Git
  • f16b14bf3d324e8cd6ec4b8ef4b9254f8887848d
  • master par défaut protégée
  • menu
3 résultats

test2.unity

Blame
  • elementslistmodel.cpp 1,13 Kio
    #include "elementslistmodel.h"
    
    ElementsListModel::ElementsListModel(QObject *parent)
        : QAbstractListModel(parent)
    {
    }
    
    QVariant ElementsListModel::headerData(int section, Qt::Orientation orientation, int role) const
    {
        // FIXME: Implement me!
    }
    
    int ElementsListModel::rowCount(const QModelIndex &parent) const
    {
        // For list models only the root node (an invalid parent) should return the list's size. For all
        // other (valid) parents, rowCount() should return 0 so that it does not become a tree model.
        if (parent.isValid())
            return 0;
    
        // FIXME: Implement me!
    }
    
    QVariant ElementsListModel::data(const QModelIndex &index, int role) const
    {
        if (!index.isValid())
            return QVariant();
    
        // FIXME: Implement me!
        return QVariant();
    }
    
    bool ElementsListModel::insertRows(int row, int count, const QModelIndex &parent)
    {
        beginInsertRows(parent, row, row + count - 1);
        // FIXME: Implement me!
        endInsertRows();
    }
    
    bool ElementsListModel::removeRows(int row, int count, const QModelIndex &parent)
    {
        beginRemoveRows(parent, row, row + count - 1);
        // FIXME: Implement me!
        endRemoveRows();
    }