QTfrontend/playrecordpage.cpp
changeset 603 d7877468653b
parent 581 909141b17f68
child 627 92e136c3eb46
equal deleted inserted replaced
602:f7628ebfccde 603:d7877468653b
    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)