// static
void initEffects::parseCustomEffectsFile()
{
- MainWindow::customEffects.clear();
+ MainWindow::customEffects.clearList();
QString path = KStandardDirs::locateLocal("appdata", "effects/", true);
QDir directory = QDir(path);
QStringList filter;
filters << "*.pgm" << "*.png";
QStringList customLumas = KGlobal::dirs()->findDirs("appdata", "lumas");
- foreach(const QString &folder, customLumas) {
+ foreach(QString folder, customLumas) {
+ if (!folder.endsWith('/')) folder.append('/');
QStringList filesnames = QDir(folder).entryList(filters, QDir::Files);
foreach(const QString &fname, filesnames) {
imagenamelist.append(fname);
- imagefiles.append(folder + '/' + fname);
+ imagefiles.append(folder + fname);
}
}
}
if (name == "luma") {
- ktrans.setAttribute("id", "luma");
+ ktrans.setAttribute("id", name);
tname.appendChild(ret.createTextNode("Wipe"));
desc.appendChild(ret.createTextNode("Applies a stationary transition between the current and next frames"));
paramList.append(quickParameterFill(ret, "Geometry", "geometry", "geometry", "0%,0%:100%x100%:100", "-500;-500;-500;-500;0", "500;500;500;500;100"));
paramList.append(quickParameterFill(ret, "Alpha Channel Operation", "operator", "list", "over", "", "", "over,and,or,xor", "over,and,or,xor"));
paramList.append(quickParameterFill(ret, "Align", "aligned", "bool", "1", "0", "1"));
- paramList.append(quickParameterFill(ret, "Fill", "fill", "bool", "0", "0", "1"));
+ paramList.append(quickParameterFill(ret, "Fill", "fill", "bool", "1", "0", "1"));
paramList.append(quickParameterFill(ret, "Distort", "distort", "bool", "0", "0", "1"));
paramList.append(quickParameterFill(ret, "Wipe File", "luma", "list", "", "", "", imagefiles.join(","), imagenamelist.join(",")));
paramList.append(quickParameterFill(ret, "Wipe Softness", "softness", "double", "0", "0", "100", "", "", "100"));