math/speedcrunch: fix build with qt5.14
PR: 246033 Approved by: danfe (maintainer)
This commit is contained in:
parent
06df2fc873
commit
7fce5965ae
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=533686
@ -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
|
||||
|
11
math/speedcrunch/files/patch-gui_syntaxhighlighter.cpp
Normal file
11
math/speedcrunch/files/patch-gui_syntaxhighlighter.cpp
Normal 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;
|
Loading…
Reference in New Issue
Block a user