Fixing non-Qt builds

This commit is contained in:
Matthias Koefferlein 2026-07-19 16:01:04 +02:00
parent 4e6834d92d
commit efe12377ac
1 changed files with 3 additions and 3 deletions

View File

@ -119,7 +119,7 @@ GridNetPluginDeclaration::get_options (std::vector < std::pair<std::string, std:
lay::ConfigPage * lay::ConfigPage *
GridNetPluginDeclaration::config_page (QWidget *parent, std::string &title) const GridNetPluginDeclaration::config_page (QWidget *parent, std::string &title) const
{ {
title = tl::to_string (QObject::tr ("Display|Background")); title = tl::to_string (tr ("Display|Background"));
return new GridNetConfigPage (parent); return new GridNetConfigPage (parent);
} }
#endif #endif
@ -224,9 +224,9 @@ GridNet::configure (const std::string &name, const std::string &value)
std::string gs; std::string gs;
if (m_grid < 0.4) { if (m_grid < 0.4) {
// pick nm units below 400nm // pick nm units below 400nm
gs = tl::to_string (m_grid * 1000.0) + tl::to_string (QObject::tr (" nm")); gs = tl::to_string (m_grid * 1000.0) + tl::to_string (tr (" nm"));
} else { } else {
gs = tl::to_string (m_grid) + tl::to_string (QObject::tr (" um")); gs = tl::to_string (m_grid) + tl::to_string (tr (" um"));
} }
mp_view->message (tl::sprintf (tl::to_string (tr ("Grid: %s")), gs)); mp_view->message (tl::sprintf (tl::to_string (tr ("Grid: %s")), gs));