mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
configurable set priority for card pictures
This commit is contained in:
parent
e0d773e4e5
commit
fb03c5cdbb
10 changed files with 242 additions and 17 deletions
33
cockatrice/src/window_sets.cpp
Normal file
33
cockatrice/src/window_sets.cpp
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
#include "window_sets.h"
|
||||
#include "setsmodel.h"
|
||||
#include <QtGui>
|
||||
|
||||
WndSets::WndSets(CardDatabase *_db, QWidget *parent)
|
||||
: QMainWindow(parent)
|
||||
{
|
||||
model = new SetsModel(_db, this);
|
||||
view = new QTreeView;
|
||||
view->setModel(model);
|
||||
view->setAlternatingRowColors(true);
|
||||
view->setUniformRowHeights(true);
|
||||
view->setAllColumnsShowFocus(true);
|
||||
|
||||
view->setDragEnabled(true);
|
||||
view->setAcceptDrops(true);
|
||||
view->setDropIndicatorShown(true);
|
||||
view->setDragDropMode(QAbstractItemView::InternalMove);
|
||||
|
||||
QHBoxLayout *mainLayout = new QHBoxLayout;
|
||||
mainLayout->addWidget(view);
|
||||
|
||||
QWidget *centralWidget = new QWidget;
|
||||
centralWidget->setLayout(mainLayout);
|
||||
setCentralWidget(centralWidget);
|
||||
|
||||
setWindowTitle(tr("Edit sets"));
|
||||
resize(400, 400);
|
||||
}
|
||||
|
||||
WndSets::~WndSets()
|
||||
{
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue