mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-30 10:33:54 -07:00
Sets window: implemented save and restore buttons
This commit is contained in:
parent
ac43fa23b9
commit
f48f386f35
4 changed files with 48 additions and 3 deletions
|
|
@ -6,6 +6,8 @@
|
|||
#include <QMimeData>
|
||||
#include "carddatabase.h"
|
||||
|
||||
class SetsProxyModel;
|
||||
|
||||
class SetsMimeData : public QMimeData {
|
||||
Q_OBJECT
|
||||
private:
|
||||
|
|
@ -18,6 +20,7 @@ public:
|
|||
|
||||
class SetsModel : public QAbstractTableModel {
|
||||
Q_OBJECT
|
||||
friend class SetsProxyModel;
|
||||
private:
|
||||
static const int NUM_COLS = 5;
|
||||
SetList sets;
|
||||
|
|
@ -42,5 +45,6 @@ class SetsProxyModel : public QSortFilterProxyModel {
|
|||
Q_OBJECT
|
||||
public:
|
||||
SetsProxyModel(QObject *parent = 0);
|
||||
void saveOrder();
|
||||
};
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue