boost::optional<HostingService> FromString (const QString& str) { for (auto s : GetAllServices ()) if (ToInfo (s).Name_ == str) return s; qWarning () << Q_FUNC_INFO << "unknown hosting service" << str; return {}; }
void CtrlPosTest::OnSelect(Ctrl& c, Point p, dword keyflags) { String inf = "Selected: "; inf << String(typeid(c).name()); ToInfo(inf); }