Commit 14dd067e authored by Karel Slaný's avatar Karel Slaný

Removed QObject inheritance from classes that don't need it.

parent f8edac30
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#pragma once #pragma once
#include <QObject>
#include <QString> #include <QString>
#include <QStringList> #include <QStringList>
#include <QUrl> #include <QUrl>
...@@ -31,9 +30,7 @@ ...@@ -31,9 +30,7 @@
/*! /*!
* @brief Provides objective-C IO methods for interaction with iCLoud. * @brief Provides objective-C IO methods for interaction with iCLoud.
*/ */
class ICloudIo : public QObject { class ICloudIo {
Q_OBJECT
public: public:
/*! /*!
* @brief Return state describing what happened. * @brief Return state describing what happened.
...@@ -49,10 +46,8 @@ public: ...@@ -49,10 +46,8 @@ public:
private: private:
/*! /*!
* @brief Constructor. * @brief Constructor.
*
* @param[in] parent Parent object.
*/ */
explicit ICloudIo(QObject *parent = Q_NULLPTR); ICloudIo(void);
public: public:
/*! /*!
......
...@@ -24,11 +24,6 @@ ...@@ -24,11 +24,6 @@
#include "ios/src/doc_picker_controller.h" #include "ios/src/doc_picker_controller.h"
#include "ios/src/icloud_io.h" #include "ios/src/icloud_io.h"
ICloudIo::ICloudIo(QObject *parent)
: QObject(parent)
{
}
static static
NSURL *getCloudBaseUrl(void) NSURL *getCloudBaseUrl(void)
{ {
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#pragma once #pragma once
#include <QObject>
#include <QString> #include <QString>
/* /*
...@@ -34,16 +33,12 @@ ...@@ -34,16 +33,12 @@
/*! /*!
* @brief Used for opening URLs and create email with attachments on iOS. * @brief Used for opening URLs and create email with attachments on iOS.
*/ */
class UrlOpener : public QObject { class UrlOpener {
Q_OBJECT
private: private:
/*! /*!
* @brief Constructor. * @brief Constructor.
*
* @param[in] parent Parent object.
*/ */
explicit UrlOpener(QObject *parent = Q_NULLPTR); UrlOpener(void);
public: public:
/*! /*!
......
...@@ -35,11 +35,6 @@ ...@@ -35,11 +35,6 @@
#include "ios/src/url_opener.h" #include "ios/src/url_opener.h"
#endif /* Q_OS_IOS */ #endif /* Q_OS_IOS */
UrlOpener::UrlOpener(QObject *parent)
: QObject(parent)
{
}
void UrlOpener::openFile(const QString &filePath) void UrlOpener::openFile(const QString &filePath)
{ {
#ifndef Q_OS_IOS #ifndef Q_OS_IOS
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include <QDesktopServices> #include <QDesktopServices>
#include <QMimeDatabase> #include <QMimeDatabase>
#include <QMimeType> #include <QMimeType>
#include <QObject>
#include <QUrl> #include <QUrl>
#include "ios/src/url_opener.h" #include "ios/src/url_opener.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment