mirror of
https://github.com/QuasarApp/SoundBand.git
synced 2025-04-27 15:54:31 +00:00
added property into files
This commit is contained in:
parent
bde80e94da
commit
0f77d794b6
@ -2,8 +2,6 @@
|
||||
#define FILEDIALOG_H
|
||||
|
||||
#ifdef Q_OS_ANDROID
|
||||
#ifndef ANDROIDFILEDIALOG_H
|
||||
#define ANDROIDFILEDIALOG_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QAndroidJniObject>
|
||||
|
@ -1,6 +1,10 @@
|
||||
#include "filedialog.h"
|
||||
|
||||
FileDialog::FileDialog()
|
||||
FileDialog::FileDialog(QObject *ptr):
|
||||
QObject(ptr)
|
||||
{
|
||||
|
||||
#ifdef Q_OS_ANDROID
|
||||
#else
|
||||
QFileDialog *dialog = new QFileDialog(this, );
|
||||
#endif
|
||||
}
|
||||
|
@ -11,6 +11,10 @@ class FileDialog: public QObject
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QStringList filesUrl READ filesUrl NOTIFY loadComlete)
|
||||
Q_PROPERTY(QString saveUrl READ saveUrl NOTIFY saveComplete)
|
||||
Q_PROPERTY(QString title READ title WRITE setTitle)
|
||||
Q_PROPERTY(QString dir READ dir WRITE setDir)
|
||||
Q_PROPERTY(QString filter READ filter WRITE setfilter)
|
||||
|
||||
private:
|
||||
|
||||
#ifdef Q_OS_ANDROID
|
||||
@ -20,7 +24,7 @@ private:
|
||||
#endif
|
||||
|
||||
public:
|
||||
FileDialog();
|
||||
FileDialog(QObject *ptr = nullptr);
|
||||
~FileDialog();
|
||||
public slots:
|
||||
|
||||
@ -34,6 +38,7 @@ public slots:
|
||||
* @brief save get save file url
|
||||
*/
|
||||
void save();
|
||||
|
||||
signals:
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user