You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
737 B
22 lines
737 B
// commandmodel.h emacs, this is written in -*-c++-*-
|
|
//
|
|
// This program is free software. See the file COPYING for details.
|
|
// Author: Mattias Engdegård, 1997-1999
|
|
|
|
#include <QAbstractItemModel>
|
|
|
|
class CommandModel : public QAbstractItemModel
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
CommandModel(QObject *parent = 0);
|
|
~CommandModel();
|
|
QModelIndex index(int row, int column, const QModelIndex &parent) const;
|
|
QModelIndex parent(const QModelIndex &child) const;
|
|
int rowCount(const QModelIndex &parent) const;
|
|
int columnCount(const QModelIndex &parent) const { return 1; };
|
|
QVariant data(const QModelIndex &index, int role) const;
|
|
// Qt::ItemFlags flags(const QModelIndex &index) const;
|
|
void update(); // TEMP
|
|
};
|