forked from qt-creator/qt-creator
JsonWizard: Add File- and Summary pages
These reuse the existing pages we use for other wizards. Change-Id: Ic505204e0988a6b44d112da35748f81d9f8e2c1f Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -65,6 +65,11 @@ Utils::AbstractMacroExpander *JsonWizard::expander() const
|
||||
return m_expander;
|
||||
}
|
||||
|
||||
void JsonWizard::resetFileList()
|
||||
{
|
||||
m_files.clear();
|
||||
}
|
||||
|
||||
JsonWizard::GeneratorFiles JsonWizard::fileList()
|
||||
{
|
||||
QString errorMessage;
|
||||
@@ -130,6 +135,12 @@ bool JsonWizard::boolFromVariant(const QVariant &v, Utils::AbstractMacroExpander
|
||||
return v.toBool();
|
||||
}
|
||||
|
||||
void JsonWizard::removeAttributeFromAllFiles(Core::GeneratedFile::Attribute a)
|
||||
{
|
||||
for (int i = 0; i < m_files.count(); ++i)
|
||||
m_files[i].file.setAttributes(m_files.at(i).file.attributes() ^ a);
|
||||
}
|
||||
|
||||
void JsonWizard::accept()
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user