equal
deleted
inserted
replaced
66 BtnPlayDemo->setText(QPushButton::tr("Load")); |
66 BtnPlayDemo->setText(QPushButton::tr("Load")); |
67 } |
67 } |
68 dir.setFilter(QDir::Files); |
68 dir.setFilter(QDir::Files); |
69 |
69 |
70 QStringList sl = dir.entryList(QStringList(QString("*.%1").arg(extension))); |
70 QStringList sl = dir.entryList(QStringList(QString("*.%1").arg(extension))); |
71 sl.replaceInStrings(QRegExp(QString("^(.*).%1$").arg(extension)), "\\1"); |
71 sl.replaceInStrings(QRegExp(QString("^(.*)\\.%1$").arg(extension)), "\\1"); |
72 |
72 |
73 DemosList->clear(); |
73 DemosList->clear(); |
74 DemosList->addItems(sl); |
74 DemosList->addItems(sl); |
75 |
75 |
76 for (int i = 0; i < DemosList->count(); ++i) |
76 for (int i = 0; i < DemosList->count(); ++i) |