Skip to content

Commit

Permalink
Merge pull request #36 from mihailim/fix-qt5-ftbfs
Browse files Browse the repository at this point in the history
Restore Qt5 source compatibility in UIDictionary.cpp
  • Loading branch information
kevinhendricks authored Apr 4, 2024
2 parents eecaf00 + b8335cd commit 4f60198
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions UIDictionary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ QString UIDictionary::GetDictionaryPath()

// finally look inside the installed Qt directories
#ifndef Q_OS_MAC
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
dict_path = QLibraryInfo::location(QLibraryInfo::DataPath) + "/qtwebengine_dictionaries";
#else
dict_path = QLibraryInfo::path(QLibraryInfo::DataPath) + "/qtwebengine_dictionaries";
#endif
#else
dict_path = QCoreApplication::applicationDirPath() +
"/../Frameworks/QtWebEngineCore.framework/Resources/qtwebengine_dictionaries";
Expand Down

0 comments on commit 4f60198

Please sign in to comment.