Qt4 compatibility

This commit is contained in:
Matthias Koefferlein 2024-04-16 21:50:30 +02:00
parent daa2df159e
commit e3dc4e7310
1 changed files with 2 additions and 1 deletions

View File

@ -274,7 +274,8 @@ HelpSource::initialize_index ()
bool ok = false;
QString help_index_cache_file = tl::to_qstring (tl::sprintf ("help-index-%s-qt%d.xml.gz", lay::Version::version (), int (QT_VERSION_MAJOR)));
int qt = int (QT_VERSION >> 16);
QString help_index_cache_file = tl::to_qstring (tl::sprintf ("help-index-%s-qt%d.xml.gz", lay::Version::version (), qt));
std::string per_user_cache_file;
if (! lay::ApplicationBase::instance ()->appdata_path ().empty ()) {