Hide cart popup when going back to previous page
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user