Use FileDialog in Display also.
This commit is contained in:
parent
67bf4215bf
commit
84d0c3b3b5
1 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
#include "TitleBar.h"
|
#include "TitleBar.h"
|
||||||
|
|
||||||
#include <QFileDialog>
|
#include "FileDialog.h"
|
||||||
|
|
||||||
SkinDisplay::SkinDisplay (QWidget *parent) : QWidget(parent)
|
SkinDisplay::SkinDisplay (QWidget *parent) : QWidget(parent)
|
||||||
{
|
{
|
||||||
|
@ -60,10 +60,10 @@ SkinDisplay::paintEvent (QPaintEvent *event)
|
||||||
void
|
void
|
||||||
SkinDisplay::fileOpen (void)
|
SkinDisplay::fileOpen (void)
|
||||||
{
|
{
|
||||||
|
FileDialog fd (this, "main_addfiles");
|
||||||
QStringList files;
|
QStringList files;
|
||||||
|
|
||||||
files = QFileDialog::getOpenFileNames (this, "Select files to play",
|
files = fd.getFiles ();
|
||||||
QDir::homePath());
|
|
||||||
|
|
||||||
XMMSHandler &xmmsh = XMMSHandler::getInstance();
|
XMMSHandler &xmmsh = XMMSHandler::getInstance();
|
||||||
if (files.count() > 0) {
|
if (files.count() > 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue