- fix: should use c++ syntax to check ".h" files
- fix: can't copy contents in a readonly editor - fix: project's file not correctly syntaxed when open in editor
This commit is contained in:
parent
88cd992159
commit
83b99c99de
2
NEWS.md
2
NEWS.md
|
@ -1,5 +1,7 @@
|
||||||
Version 0.6.3
|
Version 0.6.3
|
||||||
- fix: should use c++ syntax to check ".h" files
|
- fix: should use c++ syntax to check ".h" files
|
||||||
|
- fix: can't copy contents in a readonly editor
|
||||||
|
- fix: project's file not correctly syntaxed when open in editor
|
||||||
|
|
||||||
Version 0.6.2
|
Version 0.6.2
|
||||||
- fix: The Enter key in the numpad doesn't work
|
- fix: The Enter key in the numpad doesn't work
|
||||||
|
|
|
@ -2842,9 +2842,19 @@ void Editor::setInProject(bool newInProject)
|
||||||
return;
|
return;
|
||||||
mInProject = newInProject;
|
mInProject = newInProject;
|
||||||
if (mInProject) {
|
if (mInProject) {
|
||||||
initParser();
|
|
||||||
} else {
|
|
||||||
mParser = pMainWindow->project()->cppParser();
|
mParser = pMainWindow->project()->cppParser();
|
||||||
|
if (isVisible()) {
|
||||||
|
if (mParser && mParser->parsing()) {
|
||||||
|
connect(mParser.get(),
|
||||||
|
&CppParser::onEndParsing,
|
||||||
|
this,
|
||||||
|
&SynEdit::invalidate);
|
||||||
|
} else {
|
||||||
|
invalidate();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
initParser();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5047,7 +5047,7 @@ void SynEdit::ExecuteCommand(SynEditorCommand Command, QChar AChar, void *pData)
|
||||||
doCutToClipboard();
|
doCutToClipboard();
|
||||||
break;
|
break;
|
||||||
case SynEditorCommand::ecCopy:
|
case SynEditorCommand::ecCopy:
|
||||||
if (!mReadOnly && selAvail())
|
if (selAvail())
|
||||||
doCopyToClipboard();
|
doCopyToClipboard();
|
||||||
break;
|
break;
|
||||||
case SynEditorCommand::ecPaste:
|
case SynEditorCommand::ecPaste:
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
|
|
||||||
#define DEVCPP_VERSION "0.6.1"
|
#define DEVCPP_VERSION "0.6.3"
|
||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
#define APP_SETTSINGS_FILENAME "redpandacpp.ini"
|
#define APP_SETTSINGS_FILENAME "redpandacpp.ini"
|
||||||
|
|
Loading…
Reference in New Issue