Beispiel #1
0
CardOverview::CardOverview(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::CardOverview)
{
    ui->setupUi(this);

    ui->tableWidget->setColumnWidth(0, 80);
    ui->tableWidget->setColumnWidth(1, 60);
    ui->tableWidget->setColumnWidth(2, 30);
    ui->tableWidget->setColumnWidth(3, 60);
    ui->tableWidget->setColumnWidth(4, 70);

    if(ServerInfo.FreeChoose)
        connect(ui->getCardButton, SIGNAL(clicked()), this, SLOT(askCard()));
    else
        ui->getCardButton->hide();
}
Beispiel #2
0
CardOverview::CardOverview(QWidget *parent)
    : QDialog(parent), ui(new Ui::CardOverview)
{
    ui->setupUi(this);

    ui->tableWidget->setColumnWidth(0, 80);
    ui->tableWidget->setColumnWidth(1, 60);
    ui->tableWidget->setColumnWidth(2, 30);
    ui->tableWidget->setColumnWidth(3, 60);
    ui->tableWidget->setColumnWidth(4, 70);

    if (ServerInfo.EnableCheat)
        connect(ui->getCardButton, SIGNAL(clicked()), this, SLOT(askCard()));
    else
        ui->getCardButton->hide();

    ui->cardDescriptionBox->setProperty("description", true);
}
CardOverview::CardOverview(QWidget *parent)
    : QDialog(parent), ui(new Ui::CardOverview)
{
    ui->setupUi(this);

    ui->tableWidget->setColumnWidth(0, 80);
    ui->tableWidget->setColumnWidth(1, 60);
    ui->tableWidget->setColumnWidth(2, 30);
    ui->tableWidget->setColumnWidth(3, 60);
    ui->tableWidget->setColumnWidth(4, 70);

    connect(ui->getCardButton, SIGNAL(clicked()), this, SLOT(askCard()));

    ui->cardDescriptionBox->setProperty("description", true);
    ui->malePlayButton->hide();
    ui->femalePlayButton->hide();
    ui->playAudioEffectButton->hide();
}
Beispiel #4
0
CardOverview::CardOverview(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::CardOverview)
{
    ui->setupUi(this);

    ui->tableWidget->setColumnWidth(0, 80);
    ui->tableWidget->setColumnWidth(1, 60);
    ui->tableWidget->setColumnWidth(2, 30);
    ui->tableWidget->setColumnWidth(3, 60);
    ui->tableWidget->setColumnWidth(4, 70);

    if(ServerInfo.isPlay && Config.FreeChooseCards){
        ui->getCardButton->show();
        connect(ui->getCardButton, SIGNAL(clicked()), this, SLOT(askCard()));
    }else
        ui->getCardButton->hide();

    //ui->cardDescriptionBox->setProperty("type", "description");
}
Beispiel #5
0
CardOverview::CardOverview(QWidget *parent)
    : QDialog(parent), ui(new Ui::CardOverview)
{
    ui->setupUi(this);

    ui->tableWidget->setColumnWidth(0, 80);
    ui->tableWidget->setColumnWidth(1, 60);
    ui->tableWidget->setColumnWidth(2, 30);
    ui->tableWidget->setColumnWidth(3, 60);
    ui->tableWidget->setColumnWidth(4, 70);

    if (ServerInfo.EnableCheat)
        connect(ui->getCardButton, SIGNAL(clicked()), this, SLOT(askCard()));
    else
        ui->getCardButton->hide();

    ui->cardDescriptionBox->setProperty("description", true);
    ui->playAudioEffectButton->hide();
    ui->illustratorLineEdit->setText(Sanguosha->translate("DefaultIllustrator"));
}
Beispiel #6
0
void CardOverview::on_tableWidget_itemDoubleClicked(QTableWidgetItem* item)
{
    if(Self)
        askCard();
}