mirror of
https://github.com/QuasarApp/SoundBand.git
synced 2025-04-29 16:54:31 +00:00
added property into files
This commit is contained in:
parent
bde80e94da
commit
0f77d794b6
@ -2,8 +2,6 @@
|
|||||||
#define FILEDIALOG_H
|
#define FILEDIALOG_H
|
||||||
|
|
||||||
#ifdef Q_OS_ANDROID
|
#ifdef Q_OS_ANDROID
|
||||||
#ifndef ANDROIDFILEDIALOG_H
|
|
||||||
#define ANDROIDFILEDIALOG_H
|
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QAndroidJniObject>
|
#include <QAndroidJniObject>
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
#include "filedialog.h"
|
#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_OBJECT
|
||||||
Q_PROPERTY(QStringList filesUrl READ filesUrl NOTIFY loadComlete)
|
Q_PROPERTY(QStringList filesUrl READ filesUrl NOTIFY loadComlete)
|
||||||
Q_PROPERTY(QString saveUrl READ saveUrl NOTIFY saveComplete)
|
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:
|
private:
|
||||||
|
|
||||||
#ifdef Q_OS_ANDROID
|
#ifdef Q_OS_ANDROID
|
||||||
@ -20,7 +24,7 @@ private:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
public:
|
public:
|
||||||
FileDialog();
|
FileDialog(QObject *ptr = nullptr);
|
||||||
~FileDialog();
|
~FileDialog();
|
||||||
public slots:
|
public slots:
|
||||||
|
|
||||||
@ -34,6 +38,7 @@ public slots:
|
|||||||
* @brief save get save file url
|
* @brief save get save file url
|
||||||
*/
|
*/
|
||||||
void save();
|
void save();
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user