diff options
author | Andras Becsi <andras.becsi@theqtcompany.com> | 2015-03-16 13:14:02 +0100 |
---|---|---|
committer | Andras Becsi <andras.becsi@theqtcompany.com> | 2015-03-16 12:53:23 +0000 |
commit | 57ff278efad83f360a92785f3b9b6fae7445aff3 (patch) | |
tree | 4710563973df77a95bc898ec1c0a935a14f587ec /src/core/file_picker_controller.h | |
parent | 6e356d55c8eabcc96223e25182458b78378dd5a4 (diff) |
Not all public functions of FilePickerController need to be slots
For the sake of correct semantics move some function declarations
to be plain old public functions instead of slots.
Change-Id: I2ea645f49cfc2d0297352c3e7cc237ef59b69e69
Reviewed-by: Michael BrĂ¼ning <michael.bruning@theqtcompany.com>
Diffstat (limited to 'src/core/file_picker_controller.h')
-rw-r--r-- | src/core/file_picker_controller.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/core/file_picker_controller.h b/src/core/file_picker_controller.h index 851dec174..ba45b6ca7 100644 --- a/src/core/file_picker_controller.h +++ b/src/core/file_picker_controller.h @@ -57,17 +57,16 @@ public: }; FilePickerController(FileChooserMode mode, content::WebContents *contents, const QString &defaultFileName, const QStringList &acceptedMimeTypes, QObject * = 0); + QStringList acceptedMimeTypes(); + QString defaultFileName(); + FileChooserMode mode(); + void filesSelectedInChooser(const QStringList &filesList, content::WebContents *contents); public Q_SLOTS: void accepted(const QStringList &files); void accepted(const QVariant &files); void rejected(); - QStringList acceptedMimeTypes(); - QString defaultFileName(); - FileChooserMode mode(); - void filesSelectedInChooser(const QStringList &filesList, content::WebContents *contents); - private: QString m_defaultFileName; QStringList m_acceptedMimeTypes; |