Added toast notifications to the gem catalog
This commit is contained in:
+10
@@ -177,4 +177,14 @@ namespace AzToolsFramework
|
||||
DisplayQueuedNotification();
|
||||
}
|
||||
}
|
||||
|
||||
void ToastNotificationsView::SetOffset(const QPoint& offset)
|
||||
{
|
||||
m_offset = offset;
|
||||
}
|
||||
|
||||
void ToastNotificationsView::SetAnchorPoint(const QPointF& anchorPoint)
|
||||
{
|
||||
m_anchorPoint = anchorPoint;
|
||||
}
|
||||
}
|
||||
|
||||
+3
@@ -50,6 +50,9 @@ namespace AzToolsFramework
|
||||
void OnShow();
|
||||
void UpdateToastPosition();
|
||||
|
||||
void SetOffset(const QPoint& offset);
|
||||
void SetAnchorPoint(const QPointF& anchorPoint);
|
||||
|
||||
private:
|
||||
ToastId CreateToastNotification(const AzQtComponents::ToastConfiguration& toastConfiguration);
|
||||
void DisplayQueuedNotification();
|
||||
|
||||
Reference in New Issue
Block a user