Move Qt Toast Notifications from GraphCanvas into Framework
Move the existing Qt Toast Notification QWidgets, EBuses and logic from the GraphCanvas gem into AzQtComponents and AzToolsFramework so they can be re-used. Signed-off-by: AMZN-alexpete <26804013+AMZN-alexpete@users.noreply.github.com>
This commit is contained in:
@@ -12,6 +12,8 @@
|
||||
#include <qsizepolicy.h>
|
||||
#include <QGraphicsSceneDragDropEvent>
|
||||
|
||||
#include <AzQtComponents/Components/ToastNotification.h>
|
||||
|
||||
#include <Components/Slots/Data/DataSlotLayoutComponent.h>
|
||||
|
||||
#include <Components/Slots/Data/DataSlotConnectionPin.h>
|
||||
@@ -157,8 +159,8 @@ namespace GraphCanvas
|
||||
anchorPoint = QPointF(1.0f, 0.5f);
|
||||
}
|
||||
|
||||
ToastConfiguration toastConfiguration(ToastType::Error, "Unable to drop onto to slot", error);
|
||||
toastConfiguration.SetCloseOnClick(false);
|
||||
AzQtComponents::ToastConfiguration toastConfiguration(AzQtComponents::ToastType::Error, "Unable to drop onto to slot", error.c_str());
|
||||
toastConfiguration.m_closeOnClick = false;
|
||||
|
||||
m_toastId = viewHandler->ShowToastAtPoint(globalConnectionPoint.toPoint(), anchorPoint, toastConfiguration);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user