mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 08:22:15 -07:00
remove showEvent
This commit is contained in:
parent
686645c1e4
commit
b57103ed3a
4 changed files with 0 additions and 17 deletions
|
|
@ -50,13 +50,6 @@ void VisualDeckStorageSortWidget::retranslateUi()
|
||||||
sortComboBox->blockSignals(false);
|
sortComboBox->blockSignals(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void VisualDeckStorageSortWidget::showEvent(QShowEvent *event)
|
|
||||||
{
|
|
||||||
QWidget::showEvent(event);
|
|
||||||
sortComboBox->setCurrentIndex(SettingsCache::instance().getVisualDeckStorageSortingOrder());
|
|
||||||
updateSortOrder();
|
|
||||||
}
|
|
||||||
|
|
||||||
void VisualDeckStorageSortWidget::updateSortOrder()
|
void VisualDeckStorageSortWidget::updateSortOrder()
|
||||||
{
|
{
|
||||||
sortOrder = static_cast<SortOrder>(sortComboBox->currentIndex());
|
sortOrder = static_cast<SortOrder>(sortComboBox->currentIndex());
|
||||||
|
|
|
||||||
|
|
@ -19,9 +19,6 @@ public:
|
||||||
QString getSearchText();
|
QString getSearchText();
|
||||||
QList<DeckPreviewWidget *> &filterFiles(QList<DeckPreviewWidget *> &widgets);
|
QList<DeckPreviewWidget *> &filterFiles(QList<DeckPreviewWidget *> &widgets);
|
||||||
|
|
||||||
public slots:
|
|
||||||
void showEvent(QShowEvent *event) override;
|
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void sortOrderChanged();
|
void sortOrderChanged();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -44,12 +44,6 @@ VisualDeckStorageWidget::VisualDeckStorageWidget(QWidget *parent) : QWidget(pare
|
||||||
&VisualDeckStorageWidget::refreshBannerCards);
|
&VisualDeckStorageWidget::refreshBannerCards);
|
||||||
}
|
}
|
||||||
|
|
||||||
void VisualDeckStorageWidget::showEvent(QShowEvent *event)
|
|
||||||
{
|
|
||||||
QWidget::showEvent(event);
|
|
||||||
updateSortOrder();
|
|
||||||
}
|
|
||||||
|
|
||||||
void VisualDeckStorageWidget::updateSortOrder()
|
void VisualDeckStorageWidget::updateSortOrder()
|
||||||
{
|
{
|
||||||
refreshBannerCards(); // Refresh the banner cards with the new sort order
|
refreshBannerCards(); // Refresh the banner cards with the new sort order
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,6 @@ public slots:
|
||||||
void refreshBannerCards(); // Refresh the display of cards based on the current sorting option
|
void refreshBannerCards(); // Refresh the display of cards based on the current sorting option
|
||||||
QStringList gatherAllTagsFromFlowWidget() const;
|
QStringList gatherAllTagsFromFlowWidget() const;
|
||||||
QStringList gatherAllTags(const QList<DeckPreviewWidget *> &allDecks);
|
QStringList gatherAllTags(const QList<DeckPreviewWidget *> &allDecks);
|
||||||
void showEvent(QShowEvent *event) override;
|
|
||||||
void updateSortOrder();
|
void updateSortOrder();
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue