PropertyHandlerLayoutPadding.cpp 836 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #include "EditorCommon.h"
  9. #include "PropertyHandlerLayoutPadding.h"
  10. QWidget* PropertyHandlerLayoutPadding::CreateGUI(QWidget* pParent)
  11. {
  12. AzQtComponents::VectorInput* ctrl = m_common.ConstructGUI(pParent);
  13. ctrl->setLabel(0, "Left");
  14. ctrl->setLabel(1, "Top");
  15. ctrl->setLabel(2, "Right");
  16. ctrl->setLabel(3, "Bottom");
  17. return ctrl;
  18. }
  19. void PropertyHandlerLayoutPadding::Register()
  20. {
  21. AzToolsFramework::PropertyTypeRegistrationMessages::Bus::Broadcast(
  22. &AzToolsFramework::PropertyTypeRegistrationMessages::Bus::Events::RegisterPropertyType, aznew PropertyHandlerLayoutPadding());
  23. }