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(); }
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(); }
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"); }
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")); }
void CardOverview::on_tableWidget_itemDoubleClicked(QTableWidgetItem* item) { if(Self) askCard(); }