Exemplo n.º 1
0
void Music::add_folder_triggered()
{
    auto path = QFileDialog::getExistingDirectory(NULL, tr("选择mp3所在文件夹"), QDir::homePath(), QFileDialog::ShowDirsOnly);
    QDir *dir = new QDir(path);
    QStringList filter;

    filter << "*.mp3";
    dir->setNameFilters(filter);
    QList<QFileInfo> *fileInfolist = new QList<QFileInfo>(dir->entryInfoList(filter));

    auto a = ToStringList(fileInfolist);
    thread->setStrings(a);
    thread->start();
}
Exemplo n.º 2
0
void FUStringConversion::ToStringList(const fchar* value, StringList& array)
{
	// Performance could be improved...
	ToStringList(ToString(value), array);
}