| 1133 | } |
| 1134 | |
| 1135 | void Widget::setProperty(std::string_view _key, std::string_view _value) |
| 1136 | { |
| 1137 | std::string key{_key}; |
| 1138 | std::string value{_value}; |
| 1139 | |
| 1140 | if (BackwardCompatibility::checkProperty(this, key, value)) |
| 1141 | { |
| 1142 | size_t index = key.find('_'); |
| 1143 | if (index != std::string::npos) |
| 1144 | { |
| 1145 | MYGUI_LOG( |
| 1146 | Warning, |
| 1147 | "Widget property '" << key << "' have type prefix - use '" << key.substr(index + 1) << "' instead [" |
| 1148 | << LayoutManager::getInstance().getCurrentLayout() << "]"); |
| 1149 | key = key.substr(index + 1); |
| 1150 | } |
| 1151 | |
| 1152 | setPropertyOverride(key, value); |
| 1153 | } |
| 1154 | } |
| 1155 | |
| 1156 | VectorWidgetPtr Widget::getSkinWidgetsByName(std::string_view _name) const |
| 1157 | { |
no test coverage detected