Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tools/tests/ui_number_clipboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ def validation_source():
struct Mock {
struct String {std::string text;};
std::map<std::string,std::map<std::string,String>> authored{{"validation",{{"text",{"#str_authored"}}}}};
// The view reads authored properties through Authored() since 8fb8cd3e.
const std::map<std::string,String>& Authored(const std::string& id) const {return authored.at(id);}
std::function<std::string(const NumberSpec&,const NumberEditView&,bool)> validation;
std::function<std::string(const std::string&)> translate=[](const auto& key){return "translated:"+key;};
std::string text;bool visible=false;
Expand Down
Loading