forked from qt-creator/qt-creator
EffectComposer: Remove unused attributes
Change-Id: Ib87cb2b1add0496e6cc15927a91a87976eb95a4d Reviewed-by: Shrief Gabr <shrief.gabr@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
@@ -1666,7 +1666,7 @@ void EffectComposerModel::saveResources(const QString &name)
|
||||
}
|
||||
}
|
||||
|
||||
writeToFile(qmlUtf8, qmlFilePath, FileType::Text);
|
||||
writeToFile(qmlUtf8, qmlFilePath);
|
||||
newFileNames.insert(qmlFilename);
|
||||
|
||||
// Save shaders and images
|
||||
@@ -2298,11 +2298,11 @@ void EffectComposerModel::bakeShaders()
|
||||
|
||||
setVertexShader(generateVertexShader());
|
||||
QString vs = m_vertexShader;
|
||||
writeToFile(vs.toUtf8(), m_vertexSourceFilename, FileType::Text);
|
||||
writeToFile(vs.toUtf8(), m_vertexSourceFilename);
|
||||
|
||||
setFragmentShader(generateFragmentShader());
|
||||
QString fs = m_fragmentShader;
|
||||
writeToFile(fs.toUtf8(), m_fragmentSourceFilename, FileType::Text);
|
||||
writeToFile(fs.toUtf8(), m_fragmentSourceFilename);
|
||||
|
||||
QtSupport::QtVersion *qtVer = QtSupport::QtKitAspect::qtVersion(kit);
|
||||
if (!qtVer) {
|
||||
@@ -2835,8 +2835,7 @@ void EffectComposerModel::addOrUpdateNodeUniform(int idx, const QVariantMap &dat
|
||||
startRebakeTimer();
|
||||
}
|
||||
|
||||
bool EffectComposerModel::writeToFile(
|
||||
const QByteArray &buf, const QString &fileName, [[maybe_unused]] FileType fileType)
|
||||
bool EffectComposerModel::writeToFile(const QByteArray &buf, const QString &fileName)
|
||||
{
|
||||
Utils::FilePath fp = Utils::FilePath::fromString(fileName);
|
||||
fp.absolutePath().createDir();
|
||||
|
@@ -10,7 +10,6 @@
|
||||
|
||||
#include <QAbstractListModel>
|
||||
#include <QColor>
|
||||
#include <QFileSystemWatcher>
|
||||
#include <QMap>
|
||||
#include <QRegularExpression>
|
||||
#include <QSet>
|
||||
@@ -264,12 +263,7 @@ private:
|
||||
QList<QUrl> defaultPreviewImages() const;
|
||||
QUrl defaultPreviewImage() const;
|
||||
|
||||
enum class FileType
|
||||
{
|
||||
Binary,
|
||||
Text
|
||||
};
|
||||
bool writeToFile(const QByteArray &buf, const QString &filename, FileType fileType);
|
||||
bool writeToFile(const QByteArray &buf, const QString &filename);
|
||||
|
||||
QList<CompositionNode *> m_nodes;
|
||||
QPointer<EffectComposerNodesModel> m_effectComposerNodesModel;
|
||||
@@ -303,7 +297,6 @@ private:
|
||||
// Used in preview QML, at ShaderEffect component of the file
|
||||
QString m_previewEffectPropertiesString;
|
||||
QString m_qmlComponentString;
|
||||
bool m_loadComponentImages = true;
|
||||
bool m_isEnabled = true;
|
||||
bool m_hasValidTarget = false;
|
||||
QString m_currentComposition;
|
||||
|
Reference in New Issue
Block a user