Port to cpp bindings
This commit is contained in:
parent
0f06c83484
commit
70da726f52
20 changed files with 333 additions and 331 deletions
|
@ -60,19 +60,19 @@ SkinDisplay::paintEvent (QPaintEvent *event)
|
|||
void
|
||||
SkinDisplay::fileOpen (void)
|
||||
{
|
||||
XMMSHandler *xmmsh = XMMSHandler::getInstance();
|
||||
QStringList files;
|
||||
|
||||
files = QFileDialog::getOpenFileNames (this, "Select files to play",
|
||||
QDir::homePath(),
|
||||
"Music (*.mp3 *.ogg *.flac *.wav *.mpc *.mp4)");
|
||||
|
||||
XMMSHandler &xmmsh = XMMSHandler::getInstance();
|
||||
if (files.count() > 0) {
|
||||
xmmsh->playlistClear ();
|
||||
xmmsh.playlistClear ();
|
||||
}
|
||||
|
||||
for (int i = 0; i < files.count(); i++) {
|
||||
xmmsh->playlistAddURL ("file://" + files.value(i));
|
||||
xmmsh.playlistAddURL ("file://" + files.value(i));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue