qdoc: better copying of .css files
This fix searches for the css files specified in the stylesheets variable. It searches for them in the directory specified as the templatedir. It copies them into the style subdirectory of the outputdir. Task-number: QTBUG-27878 Change-Id: Ic9ff43ab6f939cb50f1b41a9cc58f3f8686ebaf5 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
This commit is contained in:
parent
ec1cd70a71
commit
2cf7aceb4e
@ -1546,17 +1546,12 @@ void Generator::initialize(const Config &config)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Documentation template handling
|
// Documentation template handling
|
||||||
QString templateDir = config.getString((*g)->format() + Config::dot + CONFIG_TEMPLATEDIR);
|
|
||||||
|
|
||||||
QStringList searchDirs;
|
QStringList searchDirs;
|
||||||
if (!templateDir.isEmpty()) {
|
QString templateDir = config.getString((*g)->format() + Config::dot + CONFIG_TEMPLATEDIR);
|
||||||
|
if (templateDir.isEmpty())
|
||||||
|
templateDir = ".";
|
||||||
searchDirs.append(templateDir);
|
searchDirs.append(templateDir);
|
||||||
}
|
|
||||||
if (!Config::installDir.isEmpty()) {
|
|
||||||
searchDirs.append(Config::installDir);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!searchDirs.isEmpty()) {
|
|
||||||
QStringList noExts;
|
QStringList noExts;
|
||||||
QStringList scripts = config.getCleanPathList((*g)->format()+Config::dot+CONFIG_SCRIPTS);
|
QStringList scripts = config.getCleanPathList((*g)->format()+Config::dot+CONFIG_SCRIPTS);
|
||||||
e = scripts.constBegin();
|
e = scripts.constBegin();
|
||||||
@ -1596,7 +1591,6 @@ void Generator::initialize(const Config &config)
|
|||||||
++e;
|
++e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
++g;
|
++g;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user