diff options
Diffstat (limited to 'qmpplistwindow.cpp')
-rw-r--r-- | qmpplistwindow.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/qmpplistwindow.cpp b/qmpplistwindow.cpp index dd6f67d..85c33a3 100644 --- a/qmpplistwindow.cpp +++ b/qmpplistwindow.cpp @@ -100,6 +100,15 @@ void qmpPlistWindow::moveEvent(QMoveEvent *event) } } +void qmpPlistWindow::emptyList() +{ + ui->lwFiles->clear(); +} +void qmpPlistWindow::insertItem(QString i) +{ + ui->lwFiles->addItem(new QListWidgetItem(i)); +} + void qmpPlistWindow::on_pbAdd_clicked() { QStringList sl; @@ -123,7 +132,7 @@ void qmpPlistWindow::on_pbAddFolder_clicked() while(di.hasNext()) { QString c=di.next(); - if(c.endsWith(".mid")||c.endsWith(".midi")) + if((c.endsWith(".mid")||c.endsWith(".midi"))&&fluid_is_midifile(c.toStdString().c_str())) ui->lwFiles->addItem(new QListWidgetItem(c)); } } |