mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 22:42:14 -07:00
Finally yeet the bug warning in PrintingSelector
Took 3 minutes
This commit is contained in:
parent
f12e63423c
commit
1af304a603
2 changed files with 0 additions and 25 deletions
|
|
@ -33,24 +33,6 @@ PrintingSelector::PrintingSelector(QWidget *parent, AbstractTabDeckEditor *_deck
|
||||||
layout = new QVBoxLayout(this);
|
layout = new QVBoxLayout(this);
|
||||||
setLayout(layout);
|
setLayout(layout);
|
||||||
|
|
||||||
if (PictureLoader::hasCustomArt()) {
|
|
||||||
QFrame *warningFrame = new QFrame(this);
|
|
||||||
warningFrame->setFrameShape(QFrame::StyledPanel);
|
|
||||||
|
|
||||||
warningLabel = new QLabel(this);
|
|
||||||
warningLabel->setTextFormat(Qt::RichText);
|
|
||||||
warningLabel->setWordWrap(true);
|
|
||||||
|
|
||||||
auto *warningLayout = new QVBoxLayout(warningFrame);
|
|
||||||
warningFrame->setLayout(warningLayout);
|
|
||||||
|
|
||||||
warningLayout->addWidget(warningLabel);
|
|
||||||
|
|
||||||
layout->addWidget(warningFrame);
|
|
||||||
} else {
|
|
||||||
warningLabel = nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
widgetLoadingBufferTimer = new QTimer(this);
|
widgetLoadingBufferTimer = new QTimer(this);
|
||||||
|
|
||||||
flowWidget = new FlowWidget(this, Qt::Horizontal, Qt::ScrollBarAlwaysOff, Qt::ScrollBarAsNeeded);
|
flowWidget = new FlowWidget(this, Qt::Horizontal, Qt::ScrollBarAlwaysOff, Qt::ScrollBarAsNeeded);
|
||||||
|
|
@ -107,12 +89,6 @@ PrintingSelector::PrintingSelector(QWidget *parent, AbstractTabDeckEditor *_deck
|
||||||
void PrintingSelector::retranslateUi()
|
void PrintingSelector::retranslateUi()
|
||||||
{
|
{
|
||||||
navigationCheckBox->setText(tr("Display Navigation Buttons"));
|
navigationCheckBox->setText(tr("Display Navigation Buttons"));
|
||||||
|
|
||||||
if (warningLabel) {
|
|
||||||
warningLabel->setText(
|
|
||||||
tr("<b>Warning:</b> You appear to be using custom card art, which has known bugs when also "
|
|
||||||
"using the printing selector in this version of Cockatrice."));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void PrintingSelector::printingsInDeckChanged()
|
void PrintingSelector::printingsInDeckChanged()
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,6 @@ private:
|
||||||
QWidget *sortAndOptionsContainer;
|
QWidget *sortAndOptionsContainer;
|
||||||
QHBoxLayout *sortAndOptionsLayout;
|
QHBoxLayout *sortAndOptionsLayout;
|
||||||
QCheckBox *navigationCheckBox;
|
QCheckBox *navigationCheckBox;
|
||||||
QLabel *warningLabel;
|
|
||||||
PrintingSelectorCardSortingWidget *sortToolBar;
|
PrintingSelectorCardSortingWidget *sortToolBar;
|
||||||
PrintingSelectorCardSearchWidget *searchBar;
|
PrintingSelectorCardSearchWidget *searchBar;
|
||||||
FlowWidget *flowWidget;
|
FlowWidget *flowWidget;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue