[dummyqml] Minor polishing in Qml module

- document the default filename better
 - mark TODO actually loading the instance-id file
This commit is contained in:
Adriaan de Groot 2020-01-24 17:14:45 +01:00
parent 0c65ecf53e
commit abdeb07bd3
2 changed files with 9 additions and 5 deletions

View File

@ -247,9 +247,10 @@ Calamares::QmlViewStep::setConfigurationMap( const QVariantMap& configurationMap
QString qmlFile = CalamaresUtils::getString( configurationMap, "filename" );
if ( qmlFile.isEmpty() )
{
cWarning() << "No QML file for module" << m_name;
// TODO use the module instance
}
else if ( !m_qmlComponent )
if ( !m_qmlComponent )
{
m_qmlFileName = searchQmlFile( m_searchMethod, qmlFile, m_name );

View File

@ -18,8 +18,11 @@
# Search mode. Valid values are "both", "qrc" and "branding"
search: both
# Name of the QML file. If not set, uses the name of the module.
filename: dummyqml
# Name of the QML file. If not set, uses the name of the instance
# of the module (e.g. if you list this module in `settings.conf`
# in the *instances* section, you get *id*, otherwise it would
# normally be "dummyqml").
# filename: dummyqml
qmlLabel:
notes: "Release Notes"