11 #include <QApplication>
37 if(QFileInfo(dirName).isDir())
40 const QFileInfoList &fileList = dir.entryInfoList(QDir::Files | QDir::Dirs | QDir::Hidden | QDir::NoSymLinks | QDir::NoDotAndDotDot);
41 for(
const QFileInfo &fin :
qAsConst(fileList))
69 const QFileInfoList &fileList = QDir(path).entryInfoList(QDir::Dirs | QDir::NoDotAndDotDot);
70 for(
const QFileInfo &fin :
qAsConst(fileList))
73 QFile::remove(fin.absoluteFilePath());
87 case 0:
return lan.append(
"cn.ln");
88 case 1:
return lan.append(
"tc.ln");
89 case 2:
return lan.append(
"en.ln");
99 case 0:
return lan.append(
"cnq.ln");
100 case 1:
return lan.append(
"tcq.ln");
101 case 2:
return lan.append(
"enq.ln");
111 #if !TTK_QT_VERSION_CHECK(5,0,0)
121 status &= QFile::copy(path +
"libeay32.dll",
PLUGINS_DIR_FULL +
"libeay32.dll");
122 status &= QFile::copy(path +
"ssleay32.dll",
PLUGINS_DIR_FULL +
"ssleay32.dll");
124 TTK_INFO_STREAM(
"Install openssl library to plugin dir is" << (status ?
"success" :
"failed"));
125 #elif defined Q_OS_UNIX
127 font.setPixelSize(13);
static QString languageQmmp(int index)
bool fromFile(const QString &name)
static quint64 directorySize(const QString &dirName)
static QString languageCore(int index)
The class of the xml config manager.
#define TTK_INFO_STREAM(msg)
The namespace of the process utils.
#define LANGUAGE_DIR_FULL
TTK_MODULE_EXPORT void updateBaseConfig()
static void checkCacheSize()
bool configVersionCheck() const
TTK_MODULE_EXPORT void setLocalCodec(const char *format="UTF-8")
static QString applicationPath()
QStringList translator() const
#define TTK_CONFIG_VERSION_STR