mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 17:02:15 -07:00
Fix Timer & Builds on Qt5
This commit is contained in:
parent
facb9a030f
commit
cc4f8a4761
2 changed files with 6 additions and 2 deletions
|
|
@ -48,7 +48,11 @@ AllZonesCardAmountWidget::AllZonesCardAmountWidget(QWidget *parent,
|
|||
setMouseTracking(true);
|
||||
}
|
||||
|
||||
void AllZonesCardAmountWidget::enterEvent(QEnterEvent *event)
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
|
||||
void AllZonesCardAmountWidget::enterEvent(QEnterEvent *event) override
|
||||
#else
|
||||
void AllZonesCardAmountWidget::enterEvent(QEvent *event) override
|
||||
#endif
|
||||
{
|
||||
QWidget::enterEvent(event);
|
||||
update();
|
||||
|
|
|
|||
|
|
@ -105,6 +105,7 @@ void PrintingSelector::updateSortOrder()
|
|||
void PrintingSelector::updateDisplay()
|
||||
{
|
||||
timer->stop();
|
||||
timer->deleteLater();
|
||||
timer = new QTimer(this);
|
||||
flowWidget->clearLayout();
|
||||
if (selectedCard != nullptr) {
|
||||
|
|
@ -316,7 +317,6 @@ void PrintingSelector::getAllSetsForCurrentCard()
|
|||
// Stop timer when done
|
||||
if (currentIndex >= prependedSets.size()) {
|
||||
timer->stop();
|
||||
timer->deleteLater();
|
||||
}
|
||||
});
|
||||
currentIndex = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue