QStringList names = sections( QStringList() << section );
QMutableListIterator<QString> it( names );
while ( it.hasNext() ) {
- QString name = it.next().mid( section.size() ).trimmed();
+ QString name = it.next().mid( section.size() + 1 ).trimmed();
if ( name.isEmpty() ) {
it.remove();
continue;
return pmap.keys();
}
+/*!
+ \brief Get all parameters name in specified
+ list of sub-sections names.
+
+ Sub-sections are separated inside the section name by the sections
+ separator token, for example "splash:color:label".
+
+ \param names parent sub-sections names
+ \return list of settings names
+*/
+QStringList QtxResourceMgr::parameters( const QStringList& names ) const
+{
+ return parameters( names.join( sectionsToken() ) );
+}
+
/*!
\brief Get absolute path to the file which name is defined by the parameter.
QStringList sections(const QStringList&) const;
QStringList subSections(const QString&, const bool = true) const;
QStringList parameters( const QString& ) const;
+ QStringList parameters( const QStringList& ) const;
void refresh();