A?adidos los par?metros por defecto correctos para el servidor.

Corregidos los sliders de las opciones de imagen
This commit is contained in:
Luis Ángel San Martín
2013-04-09 17:49:49 +02:00
parent 88c99a390b
commit a3a555cc93
9 changed files with 41 additions and 16 deletions

View File

@ -6,7 +6,7 @@
TemplateCache::TemplateCache(QSettings* settings, QObject* parent)
:TemplateLoader(settings,parent)
{
cache.setMaxCost(settings->value("cacheSize","1000000").toInt());
cache.setMaxCost(settings->value("cacheSize","160000").toInt());//este tama<6D>o antes era 1000000
cacheTimeout=settings->value("cacheTime","60000").toInt();
qDebug("TemplateCache: timeout=%i, size=%i",cacheTimeout,cache.maxCost());
}

View File

@ -13,7 +13,7 @@
TemplateLoader::TemplateLoader(QSettings* settings, QObject* parent)
: QObject(parent)
{
templatePath=settings->value("path",".").toString();
templatePath=settings->value("path","./server/templates").toString();
// Convert relative path to absolute, based on the directory of the config file.
#ifdef Q_OS_WIN32
if (QDir::isRelativePath(templatePath) && settings->format()!=QSettings::NativeFormat)
@ -25,7 +25,7 @@ TemplateLoader::TemplateLoader(QSettings* settings, QObject* parent)
templatePath=QFileInfo(configFile.absolutePath(),templatePath).absoluteFilePath();
}
fileNameSuffix=settings->value("suffix",".tpl").toString();
QString encoding=settings->value("encoding").toString();
QString encoding=settings->value("encoding","UTF-8").toString();
if (encoding.isEmpty()) {
textCodec=QTextCodec::codecForLocale();
}