18 lines
619 B
C++
18 lines
619 B
C++
#include <QListView>
|
|
#include "memcard.h"
|
|
|
|
class PSXMemoryCardModel : public QAbstractTableModel {
|
|
private:
|
|
MemoryCard *memCard;
|
|
QList<Block*> blocks;
|
|
QList<int> blockId;
|
|
public:
|
|
PSXMemoryCardModel( MemoryCard *memCard, QObject *parent = 0 );
|
|
int rowCount( const QModelIndex & parent = QModelIndex() ) const;
|
|
int columnCount( const QModelIndex & parent = QModelIndex() ) const;
|
|
QVariant data( const QModelIndex & index, int role = Qt::DisplayRole ) const;
|
|
QVariant headerData( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const;
|
|
};
|
|
|
|
QString unicodeToAscii( QString text );
|
|
|