math/speedcrunch: fix build with qt5.14

PR:		246033
Approved by:	danfe (maintainer)
This commit is contained in:
Mikael Urankar 2020-05-02 11:46:06 +00:00
parent 06df2fc873
commit 7fce5965ae
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=533686
2 changed files with 11 additions and 2 deletions

View File

@ -13,8 +13,6 @@ COMMENT= Keyboard-oriented desktop scientific calculator
LICENSE= GPLv2+
BROKEN= Does not build with Qt5-5.14
BB_ACCOUNT= heldercorreia
BB_PROJECT= ${PORTNAME}
BB_COMMIT= c0fc9c68d292

View File

@ -0,0 +1,11 @@
--- gui/syntaxhighlighter.cpp.orig 2020-04-29 20:42:12 UTC
+++ gui/syntaxhighlighter.cpp
@@ -128,7 +128,7 @@ ColorScheme ColorScheme::loadFromFile(const QString& p
ColorScheme ColorScheme::loadByName(const QString& name)
{
for (auto& path : colorSchemeSearchPaths()) {
- auto fileName = QString("%1/%2.%3").arg(path, name, m_colorSchemeExtension);
+ auto fileName = QString("%1/%2.%3").arg(path).arg(name).arg(m_colorSchemeExtension);
auto colorScheme = loadFromFile(fileName);
if (colorScheme.isValid())
return colorScheme;