sure:
QFileInfoList styles::getCssFileList()
{
#ifdef Q_WS_X11
#ifdef DEBUGGING
qDebug() << PWD_PRO;
// CSSpath.setPath(QDir::currentPath()+"/css/");
#else
CSSpath.
set Path
(QDir::homePath()+"/.mediadownloader/");
#endif
#endif
#ifdef Q_WS_WIN
CSSpath.
setPath(QDir::currentPath()+"/css/");
#endif
if (!CSSpath.exists()) CSSpath.mkdir(CSSpath.absolutePath());
CSSpath=CSSpath.toNativeSeparators(CSSpath.absolutePath());
}
QFileInfoList styles::getCssFileList()
{
#ifdef Q_WS_X11
#ifdef DEBUGGING
qDebug() << PWD_PRO;
// CSSpath.setPath(QDir::currentPath()+"/css/");
#else
CSSpath.set Path(QDir::homePath()+"/.mediadownloader/");
#endif
#endif
#ifdef Q_WS_WIN
CSSpath.setPath(QDir::currentPath()+"/css/");
#endif
if (!CSSpath.exists()) CSSpath.mkdir(CSSpath.absolutePath());
CSSpath=CSSpath.toNativeSeparators(CSSpath.absolutePath());
return CSSpath.entryInfoList(QStringList("*.css"),QDir::Files,QDir::Name);
}
To copy to clipboard, switch view to plain text mode
the function is declared static, but even if I put the qDebug() into constructor it gives error
Bookmarks