Merge pull request #1576 from aws-lumberyard-dev/LYN-4566

Hide cart popup in project manager when going back to previous page
This commit is contained in:
AMZN-Phil
2021-06-25 08:52:05 -07:00
committed by GitHub
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;