Finally yeet the bug warning in PrintingSelector

Took 3 minutes
This commit is contained in:
Lukas Brübach 2025-07-09 21:51:21 +02:00
parent f12e63423c
commit 1af304a603
2 changed files with 0 additions and 25 deletions

View file

@ -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()

View file

@ -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;