mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
some gui code
This commit is contained in:
parent
cb9a2bf23a
commit
77f5ec29eb
37 changed files with 260 additions and 282 deletions
|
|
@ -5,6 +5,7 @@
|
|||
#include "carddatabasemodel.h"
|
||||
#include "decklistmodel.h"
|
||||
#include "cardinfowidget.h"
|
||||
#include "main.h"
|
||||
|
||||
void SearchLineEdit::keyPressEvent(QKeyEvent *event)
|
||||
{
|
||||
|
|
@ -13,8 +14,8 @@ void SearchLineEdit::keyPressEvent(QKeyEvent *event)
|
|||
QLineEdit::keyPressEvent(event);
|
||||
}
|
||||
|
||||
WndDeckEditor::WndDeckEditor(CardDatabase *_db, QWidget *parent)
|
||||
: QMainWindow(parent), db(_db)
|
||||
WndDeckEditor::WndDeckEditor(QWidget *parent)
|
||||
: QMainWindow(parent)
|
||||
{
|
||||
QLabel *searchLabel = new QLabel(tr("&Search for:"));
|
||||
searchEdit = new SearchLineEdit;
|
||||
|
|
@ -281,7 +282,7 @@ void WndDeckEditor::actPrintDeck()
|
|||
|
||||
void WndDeckEditor::actEditSets()
|
||||
{
|
||||
WndSets *w = new WndSets(db, this);
|
||||
WndSets *w = new WndSets(this);
|
||||
w->setWindowModality(Qt::WindowModal);
|
||||
w->show();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue