- change: clear tools output panel when start to compile
- change: don't show syntax check messages in the tools output panel
This commit is contained in:
parent
25ac4d5048
commit
39c56aeff2
2
NEWS.md
2
NEWS.md
|
@ -4,6 +4,8 @@ Red Panda C++ Version 1.5
|
|||
- enhancement: add/new/remove/rename project files won't rebuild project tree
|
||||
- fix: gliches in UI's left panel in some OS
|
||||
- fix: correctly restore project layout when reopen it
|
||||
- change: clear tools output panel when start to compile
|
||||
- change: don't show syntax check messages in the tools output panel
|
||||
|
||||
Red Panda C++ Version 1.4
|
||||
|
||||
|
|
|
@ -207,7 +207,7 @@ void Compiler::processOutput(QString &line)
|
|||
if(mLastIssue && line.startsWith(referencePrefix)) {
|
||||
line.remove(0,referencePrefix.length());
|
||||
mLastIssue->filename = getFileNameFromOutputLine(line);
|
||||
qDebug()<<line;
|
||||
//qDebug()<<line;
|
||||
mLastIssue->line = getLineNumberFromOutputLine(line);
|
||||
emit compileIssue(mLastIssue);
|
||||
mLastIssue.reset();
|
||||
|
@ -352,7 +352,7 @@ QString Compiler::getCharsetArgument(const QByteArray& encoding,FileType fileTyp
|
|||
} else {
|
||||
execEncodingName = compilerSetExecCharset;
|
||||
}
|
||||
qDebug()<<encodingName<<execEncodingName;
|
||||
//qDebug()<<encodingName<<execEncodingName;
|
||||
if (checkSyntax) {
|
||||
result += QString(" -finput-charset=%1")
|
||||
.arg(encodingName);
|
||||
|
|
|
@ -87,6 +87,7 @@ void CompilerManager::compile(const QString& filename, const QByteArray& encodin
|
|||
connect(mCompiler, &Compiler::compileFinished, this, &CompilerManager::onCompileFinished);
|
||||
connect(mCompiler, &Compiler::compileIssue, this, &CompilerManager::onCompileIssue);
|
||||
connect(mCompiler, &Compiler::compileStarted, pMainWindow, &MainWindow::onCompileStarted);
|
||||
connect(mCompiler, &Compiler::compileStarted, pMainWindow, &MainWindow::clearToolsOutput);
|
||||
|
||||
connect(mCompiler, &Compiler::compileOutput, pMainWindow, &MainWindow::logToolsOutput);
|
||||
connect(mCompiler, &Compiler::compileIssue, pMainWindow, &MainWindow::onCompileIssue);
|
||||
|
@ -117,6 +118,7 @@ void CompilerManager::compileProject(std::shared_ptr<Project> project, bool rebu
|
|||
|
||||
connect(mCompiler, &Compiler::compileIssue, this, &CompilerManager::onCompileIssue);
|
||||
connect(mCompiler, &Compiler::compileStarted, pMainWindow, &MainWindow::onCompileStarted);
|
||||
connect(mCompiler, &Compiler::compileStarted, pMainWindow, &MainWindow::clearToolsOutput);
|
||||
|
||||
connect(mCompiler, &Compiler::compileOutput, pMainWindow, &MainWindow::logToolsOutput);
|
||||
connect(mCompiler, &Compiler::compileIssue, pMainWindow, &MainWindow::onCompileIssue);
|
||||
|
@ -149,6 +151,7 @@ void CompilerManager::cleanProject(std::shared_ptr<Project> project)
|
|||
|
||||
connect(mCompiler, &Compiler::compileIssue, this, &CompilerManager::onCompileIssue);
|
||||
connect(mCompiler, &Compiler::compileStarted, pMainWindow, &MainWindow::onCompileStarted);
|
||||
connect(mCompiler, &Compiler::compileStarted, pMainWindow, &MainWindow::clearToolsOutput);
|
||||
|
||||
connect(mCompiler, &Compiler::compileOutput, pMainWindow, &MainWindow::logToolsOutput);
|
||||
connect(mCompiler, &Compiler::compileIssue, pMainWindow, &MainWindow::onCompileIssue);
|
||||
|
@ -199,7 +202,7 @@ void CompilerManager::checkSyntax(const QString &filename, const QByteArray& enc
|
|||
connect(mBackgroundSyntaxChecker, &Compiler::compileIssue, this, &CompilerManager::onSyntaxCheckIssue);
|
||||
connect(mBackgroundSyntaxChecker, &Compiler::compileStarted, pMainWindow, &MainWindow::onCompileStarted);
|
||||
connect(mBackgroundSyntaxChecker, &Compiler::compileFinished, this, &CompilerManager::onSyntaxCheckFinished);
|
||||
connect(mBackgroundSyntaxChecker, &Compiler::compileOutput, pMainWindow, &MainWindow::logToolsOutput);
|
||||
//connect(mBackgroundSyntaxChecker, &Compiler::compileOutput, pMainWindow, &MainWindow::logToolsOutput);
|
||||
connect(mBackgroundSyntaxChecker, &Compiler::compileIssue, pMainWindow, &MainWindow::onCompileIssue);
|
||||
connect(mBackgroundSyntaxChecker, &Compiler::compileErrorOccured, pMainWindow, &MainWindow::onCompileErrorOccured);
|
||||
mBackgroundSyntaxChecker->start();
|
||||
|
|
|
@ -895,7 +895,7 @@
|
|||
<enum>QTabWidget::South</enum>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
<number>6</number>
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
|
|
Loading…
Reference in New Issue