Forced all ControlWrapper instances to ignore styling 49/269849/1
authorDavid Steele <david.steele@samsung.com>
Thu, 20 Jan 2022 14:06:07 +0000 (14:06 +0000)
committerDavid Steele <david.steele@samsung.com>
Thu, 20 Jan 2022 14:06:07 +0000 (14:06 +0000)
This turns off all native styling for NUI Views.

Change-Id: I28edb8401bad6a732bc6e1f2922740e02ffb8c6b
Signed-off-by: David Steele <david.steele@samsung.com>
dali-toolkit/devel-api/controls/control-wrapper-impl.cpp

index 2056d66..78e4428 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -84,7 +84,7 @@ Dali::Toolkit::ControlWrapper ControlWrapper::New(const std::string& typeName, C
 }
 
 ControlWrapper::ControlWrapper(CustomControlBehaviour behaviourFlags)
-: Control(static_cast<ControlBehaviour>(behaviourFlags))
+: Control(static_cast<ControlBehaviour>(behaviourFlags | DISABLE_STYLE_CHANGE_SIGNALS))
 {
 }