summaryrefslogtreecommitdiff
path: root/src/plugins/qtsupport
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@qt.io>2019-05-02 16:46:24 +0200
committerMarco Bubke <marco.bubke@qt.io>2019-05-02 16:08:51 +0000
commitfb3e18bd4ba7c08346290cf498f28bf82a7162d9 (patch)
tree7ecf1d2d6d6126ca3ffb8d68d605b4c919ab6792 /src/plugins/qtsupport
parent5ec55bc10bc112fbbf3f91d3d2f29a6583587776 (diff)
downloadqt-creator-fb3e18bd4ba7c08346290cf498f28bf82a7162d9.tar.gz
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>
Diffstat (limited to 'src/plugins/qtsupport')
-rw-r--r--src/plugins/qtsupport/uicgenerator.cpp5
-rw-r--r--src/plugins/qtsupport/uicgenerator.h2
2 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/qtsupport/uicgenerator.cpp b/src/plugins/qtsupport/uicgenerator.cpp
index 2029d69a56..e0cddab37d 100644
--- a/src/plugins/qtsupport/uicgenerator.cpp
+++ b/src/plugins/qtsupport/uicgenerator.cpp
@@ -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)
diff --git a/src/plugins/qtsupport/uicgenerator.h b/src/plugins/qtsupport/uicgenerator.h
index b0253eb73c..115343ae95 100644
--- a/src/plugins/qtsupport/uicgenerator.h
+++ b/src/plugins/qtsupport/uicgenerator.h
@@ -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;
};