- fix: ctrl+click on the enum value will jump to the wrong line in it's definition file
- fix: line info in the mouse tip of statement not correct
This commit is contained in:
parent
c595b6e9da
commit
df323d30c8
2
NEWS.md
2
NEWS.md
|
@ -9,6 +9,8 @@ Red Panda C++ Version 0.13.3
|
||||||
- fix: app will become very slow when processing very long lines.
|
- fix: app will become very slow when processing very long lines.
|
||||||
- enhancement: If console pauser doesn't exist, warn and stop running programs.
|
- enhancement: If console pauser doesn't exist, warn and stop running programs.
|
||||||
- fix: app crash when ctrl+click on a #include statement that point to a directory instead of header file.
|
- fix: app crash when ctrl+click on a #include statement that point to a directory instead of header file.
|
||||||
|
- fix: ctrl+click on the enum value will jump to the wrong line in it's definition file
|
||||||
|
- fix: line info in the mouse tip of statement not correct
|
||||||
|
|
||||||
Red Panda C++ Version 0.13.2
|
Red Panda C++ Version 0.13.2
|
||||||
- fix: "delete and exit" button in the environtment / folder option page doesn't work correctly
|
- fix: "delete and exit" button in the environtment / folder option page doesn't work correctly
|
||||||
|
|
|
@ -3116,7 +3116,7 @@ QString Editor::getParserHint(const QStringList& expression,const QString &s, in
|
||||||
} else if (statement->line>0) {
|
} else if (statement->line>0) {
|
||||||
QFileInfo fileInfo(statement->fileName);
|
QFileInfo fileInfo(statement->fileName);
|
||||||
result = mParser->prettyPrintStatement(statement,mFilename, line) + " - "
|
result = mParser->prettyPrintStatement(statement,mFilename, line) + " - "
|
||||||
+ QString("%1(%2) ").arg(fileInfo.fileName()).arg(line)
|
+ QString("%1(%2) ").arg(fileInfo.fileName()).arg(statement->line)
|
||||||
+ tr("Ctrl+click for more info");
|
+ tr("Ctrl+click for more info");
|
||||||
} else { // hard defines
|
} else { // hard defines
|
||||||
result = mParser->prettyPrintStatement(statement, mFilename);
|
result = mParser->prettyPrintStatement(statement, mFilename);
|
||||||
|
@ -3170,7 +3170,7 @@ QString Editor::getHintForFunction(const PStatement &statement, const PStatement
|
||||||
result += "<BR />";
|
result += "<BR />";
|
||||||
QFileInfo fileInfo(childStatement->fileName);
|
QFileInfo fileInfo(childStatement->fileName);
|
||||||
result = mParser->prettyPrintStatement(childStatement,filename,line) + " - "
|
result = mParser->prettyPrintStatement(childStatement,filename,line) + " - "
|
||||||
+ QString("%1(%2) ").arg(fileInfo.fileName()).arg(line)
|
+ QString("%1(%2) ").arg(fileInfo.fileName()).arg(childStatement->line)
|
||||||
+ tr("Ctrl+click for more info");
|
+ tr("Ctrl+click for more info");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1974,8 +1974,7 @@ void CppParser::handleEnum()
|
||||||
cmd,
|
cmd,
|
||||||
args,
|
args,
|
||||||
"",
|
"",
|
||||||
//mTokenizer[mIndex]^.Line,
|
mTokenizer[mIndex]->line,
|
||||||
startLine,
|
|
||||||
StatementKind::skEnum,
|
StatementKind::skEnum,
|
||||||
getScope(),
|
getScope(),
|
||||||
mClassScope,
|
mClassScope,
|
||||||
|
@ -1992,8 +1991,7 @@ void CppParser::handleEnum()
|
||||||
cmd,
|
cmd,
|
||||||
args,
|
args,
|
||||||
"",
|
"",
|
||||||
//mTokenizer[mIndex]^.Line,
|
mTokenizer[mIndex]->line,
|
||||||
startLine,
|
|
||||||
StatementKind::skEnum,
|
StatementKind::skEnum,
|
||||||
getScope(),
|
getScope(),
|
||||||
mClassScope,
|
mClassScope,
|
||||||
|
@ -2008,8 +2006,7 @@ void CppParser::handleEnum()
|
||||||
cmd,
|
cmd,
|
||||||
args,
|
args,
|
||||||
"",
|
"",
|
||||||
//mTokenizer[mIndex]^.Line,
|
mTokenizer[mIndex]->line,
|
||||||
startLine,
|
|
||||||
StatementKind::skEnum,
|
StatementKind::skEnum,
|
||||||
getScope(),
|
getScope(),
|
||||||
mClassScope,
|
mClassScope,
|
||||||
|
|
Loading…
Reference in New Issue