remove debug output

This commit is contained in:
Roy Qu 2022-01-24 21:46:38 +08:00
parent ee9db9cdfd
commit 0e620381d3
1 changed files with 0 additions and 9 deletions

View File

@ -94,17 +94,12 @@ Editor::Editor(QWidget *parent, const QString& filename,
mCurrentHighlightedWord(), mCurrentHighlightedWord(),
mSaving(false) mSaving(false)
{ {
qDebug()<<"inited1 ";
mCurrentLineModified = false; mCurrentLineModified = false;
mUseCppSyntax = pSettings->editor().defaultFileCpp(); mUseCppSyntax = pSettings->editor().defaultFileCpp();
if (mFilename.isEmpty()) { if (mFilename.isEmpty()) {
mFilename = tr("untitled")+QString("%1").arg(getNewFileNumber()); mFilename = tr("untitled")+QString("%1").arg(getNewFileNumber());
} }
qDebug()<<"inited2 ";
QFileInfo fileInfo(mFilename); QFileInfo fileInfo(mFilename);
qDebug()<<"inited3 ";
PSynHighlighter highlighter; PSynHighlighter highlighter;
if (!isNew) { if (!isNew) {
loadFile(); loadFile();
@ -117,8 +112,6 @@ Editor::Editor(QWidget *parent, const QString& filename,
highlighter=highlighterManager.getCppHighlighter(); highlighter=highlighterManager.getCppHighlighter();
} }
qDebug()<<"----------inited";
if (highlighter) { if (highlighter) {
setHighlighter(highlighter); setHighlighter(highlighter);
setUseCodeFolding(true); setUseCodeFolding(true);
@ -1190,7 +1183,6 @@ void Editor::closeEvent(QCloseEvent *)
void Editor::showEvent(QShowEvent */*event*/) void Editor::showEvent(QShowEvent */*event*/)
{ {
qDebug()<<"show event";
if (pSettings->codeCompletion().clearWhenEditorHidden() if (pSettings->codeCompletion().clearWhenEditorHidden()
&& !inProject()) { && !inProject()) {
initParser(); initParser();
@ -2435,7 +2427,6 @@ void Editor::reparse()
if (highlighter()->language() != SynHighlighterLanguage::Cpp if (highlighter()->language() != SynHighlighterLanguage::Cpp
&& highlighter()->language() != SynHighlighterLanguage::GLSL) && highlighter()->language() != SynHighlighterLanguage::GLSL)
return; return;
qDebug()<<"reparse"<<mParser.get()<<mFilename<<mInProject;
parseFile(mParser,mFilename,mInProject); parseFile(mParser,mFilename,mInProject);
} }