forked from qt-creator/qt-creator
Fix missing header guards in UI files
If you can call "uic < file_name" instead of "uic file_name" you get no header guards. Change-Id: I05c425aa896eead85123aea420bcd82edc9953b5 Fixes: QTCREATORBUG-22396 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -65,10 +65,9 @@ Utils::FileName UicGenerator::command() const
|
||||
return Utils::FileName::fromString(version->uicCommand());
|
||||
}
|
||||
|
||||
void UicGenerator::handleProcessStarted(QProcess *process, const QByteArray &sourceContents)
|
||||
QStringList UicGenerator::arguments() const
|
||||
{
|
||||
process->write(sourceContents);
|
||||
process->closeWriteChannel();
|
||||
return {source().toString()};
|
||||
}
|
||||
|
||||
FileNameToContentsHash UicGenerator::handleProcessFinished(QProcess *process)
|
||||
|
@@ -41,7 +41,7 @@ public:
|
||||
|
||||
protected:
|
||||
Utils::FileName command() const override;
|
||||
void handleProcessStarted(QProcess *process, const QByteArray &sourceContents) override;
|
||||
QStringList arguments() const override;
|
||||
ProjectExplorer::FileNameToContentsHash handleProcessFinished(QProcess *process) override;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user