Hide cart popup when going back to previous page

This commit is contained in:
pconroy
2021-06-24 15:28:09 -07:00
parent b224a47e0c
commit 875cd0c858
2 changed files with 10 additions and 0 deletions
@@ -175,6 +175,14 @@ namespace O3DE::ProjectManager
ShowOverlay();
}
void CartButton::hideEvent(QHideEvent*)
{
if (m_cartOverlay)
{
m_cartOverlay->hide();
}
}
void CartButton::ShowOverlay()
{
const QVector<QModelIndex> toBeAdded = m_gemModel->GatherGemsToBeAdded();
@@ -16,6 +16,7 @@
#include <QLabel>
#include <QDialog>
#include <QMoveEvent>
#include <QHideEvent>
#include <QVBoxLayout>
#endif
@@ -59,6 +60,7 @@ namespace O3DE::ProjectManager
private:
void mousePressEvent(QMouseEvent* event) override;
void hideEvent(QHideEvent*) override;
GemModel* m_gemModel = nullptr;
QHBoxLayout* m_layout = nullptr;