revert cardinfowidget to its original content
reverted cardinfowidget to its original form at commit
95c6058dc3
before i messed with
it. i didnt intend to make changes to it.
This commit is contained in:
parent
f77054f20d
commit
f6e9676c75
1 changed files with 16 additions and 18 deletions
|
@ -51,9 +51,8 @@ CardInfoWidget::CardInfoWidget(ResizeMode _mode, const QString &cardName, QWidge
|
||||||
textLabel->setReadOnly(true);
|
textLabel->setReadOnly(true);
|
||||||
|
|
||||||
QGridLayout *grid = new QGridLayout(this);
|
QGridLayout *grid = new QGridLayout(this);
|
||||||
if (mode == ModeGameTab) {
|
|
||||||
int row = 0;
|
int row = 0;
|
||||||
|
if (mode == ModeGameTab)
|
||||||
grid->addWidget(dropList, row++, 1, 1, 1, Qt::AlignRight);
|
grid->addWidget(dropList, row++, 1, 1, 1, Qt::AlignRight);
|
||||||
grid->addWidget(cardPicture, row++, 0, 1, 2);
|
grid->addWidget(cardPicture, row++, 0, 1, 2);
|
||||||
grid->addWidget(nameLabel1, row, 0);
|
grid->addWidget(nameLabel1, row, 0);
|
||||||
|
@ -69,7 +68,6 @@ CardInfoWidget::CardInfoWidget(ResizeMode _mode, const QString &cardName, QWidge
|
||||||
grid->addWidget(textLabel, row, 0, -1, 2);
|
grid->addWidget(textLabel, row, 0, -1, 2);
|
||||||
grid->setRowStretch(row, 1);
|
grid->setRowStretch(row, 1);
|
||||||
grid->setColumnStretch(1, 1);
|
grid->setColumnStretch(1, 1);
|
||||||
}
|
|
||||||
|
|
||||||
retranslateUi();
|
retranslateUi();
|
||||||
setFrameStyle(QFrame::Panel | QFrame::Raised);
|
setFrameStyle(QFrame::Panel | QFrame::Raised);
|
||||||
|
|
Loading…
Reference in a new issue