mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 16:44:48 -07:00
Renamed "dlg_add_set.*" to "dlg_add_set_result.*" and updated references.
This commit is contained in:
parent
9d3c4f20a1
commit
5a975831d4
4 changed files with 3 additions and 3 deletions
|
|
@ -1,37 +0,0 @@
|
|||
#include "dlg_add_set.h"
|
||||
|
||||
#include <QDialogButtonBox>
|
||||
#include <QPushButton>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
DlgAddSet::DlgAddSet(QWidget *parent, bool success) : QDialog(parent) {
|
||||
status = new QLabel(this);
|
||||
restart = new QLabel(this);
|
||||
|
||||
if (success) {
|
||||
setWindowTitle(tr("Success"));
|
||||
status->setText(QString("Sets/cards added to Cockatrice."));
|
||||
restart->setText(QString("You must restart Cockatrice to use the new sets/cards."));
|
||||
}
|
||||
else {
|
||||
setWindowTitle(tr("Failed"));
|
||||
status->setText(QString("Sets/cards failed to import."));
|
||||
}
|
||||
|
||||
QDialogButtonBox *buttonBox = new QDialogButtonBox(this);
|
||||
ok = new QPushButton(tr("Ok"), this);
|
||||
buttonBox->addButton(ok, QDialogButtonBox::AcceptRole);
|
||||
connect(ok, SIGNAL(clicked()), this, SLOT(closeDialog()));
|
||||
|
||||
QVBoxLayout *parentLayout = new QVBoxLayout(this);
|
||||
parentLayout->addWidget(status);
|
||||
parentLayout->addWidget(restart);
|
||||
parentLayout->addWidget(buttonBox);
|
||||
|
||||
setLayout(parentLayout);
|
||||
}
|
||||
|
||||
void DlgAddSet::closeDialog()
|
||||
{
|
||||
accept();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue