mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 00:49:55 +00:00
Python GC.athlete()
Basic proof of concept for CPP binding using SIP but with our own type conversion (to avoid overhead of SIP lib/deploy). Its far from perfect but will serve as a starting point. .. needed to fixup type conversion in goldencheetah.sip to convert returning QString as PyUnicode .. needed to fixup passing context when multi-threaded .. needed to fixup Bindings.h/cpp to offer new API
This commit is contained in:
@@ -90,7 +90,7 @@ PythonSyntax::PythonSyntax(QTextDocument *parent) : QSyntaxHighlighter(parent)
|
||||
// detach source require
|
||||
commonFunctionFormat.setForeground(QColor(40,255,40));
|
||||
QStringList commonFunctionPatterns;
|
||||
commonFunctionPatterns << "\\bdef\\b" << "\\bself\\b";
|
||||
commonFunctionPatterns << "\\bGC\\b" << "\\bdef\\b" << "\\bself\\b";
|
||||
foreach (QString pattern, commonFunctionPatterns) {
|
||||
rule.pattern = QRegExp(pattern);
|
||||
rule.format = commonFunctionFormat;
|
||||
|
||||
Reference in New Issue
Block a user