Convert rest of source to 4-space indent

This commit is contained in:
Matt Kelly 2014-02-11 11:14:19 -05:00
parent a171df744d
commit 1bc48a7849
146 changed files with 12810 additions and 12810 deletions

View file

@ -6,32 +6,32 @@
#include "carddatabase.h"
class SetsMimeData : public QMimeData {
Q_OBJECT
Q_OBJECT
private:
int oldRow;
int oldRow;
public:
SetsMimeData(int _oldRow) : oldRow(_oldRow) { }
int getOldRow() const { return oldRow; }
QStringList formats() const { return QStringList() << "application/x-cockatricecardset"; }
SetsMimeData(int _oldRow) : oldRow(_oldRow) { }
int getOldRow() const { return oldRow; }
QStringList formats() const { return QStringList() << "application/x-cockatricecardset"; }
};
class SetsModel : public QAbstractTableModel {
Q_OBJECT
Q_OBJECT
public:
SetsModel(CardDatabase *_db, QObject *parent = 0);
~SetsModel();
int rowCount(const QModelIndex &parent = QModelIndex()) const;
int columnCount(const QModelIndex &/*parent*/) const { return 2; }
QVariant data(const QModelIndex &index, int role) const;
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
Qt::ItemFlags flags(const QModelIndex &index) const;
Qt::DropActions supportedDropActions() const;
SetsModel(CardDatabase *_db, QObject *parent = 0);
~SetsModel();
int rowCount(const QModelIndex &parent = QModelIndex()) const;
int columnCount(const QModelIndex &/*parent*/) const { return 2; }
QVariant data(const QModelIndex &index, int role) const;
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
Qt::ItemFlags flags(const QModelIndex &index) const;
Qt::DropActions supportedDropActions() const;
QMimeData *mimeData(const QModelIndexList &indexes) const;
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent);
QStringList mimeTypes() const;
QMimeData *mimeData(const QModelIndexList &indexes) const;
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent);
QStringList mimeTypes() const;
private:
SetList sets;
SetList sets;
};
#endif