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 @@
#pragma once
#include <QObject>
#include <QString>
#include <QStringList>
#include <QUrl>
......@@ -31,9 +30,7 @@
/*!
* @brief Provides objective-C IO methods for interaction with iCLoud.
*/
class ICloudIo : public QObject {
Q_OBJECT
class ICloudIo {
public:
/*!
* @brief Return state describing what happened.
......@@ -49,10 +46,8 @@ public:
private:
/*!
* @brief Constructor.
*
* @param[in] parent Parent object.
*/
explicit ICloudIo(QObject *parent = Q_NULLPTR);
ICloudIo(void);
public:
/*!
......
......@@ -24,11 +24,6 @@
#include "ios/src/doc_picker_controller.h"
#include "ios/src/icloud_io.h"
ICloudIo::ICloudIo(QObject *parent)
: QObject(parent)
{
}
static
NSURL *getCloudBaseUrl(void)
{
......
......@@ -23,7 +23,6 @@
#pragma once
#include <QObject>
#include <QString>
/*
......@@ -34,16 +33,12 @@
/*!
* @brief Used for opening URLs and create email with attachments on iOS.
*/
class UrlOpener : public QObject {
Q_OBJECT
class UrlOpener {
private:
/*!
* @brief Constructor.
*
* @param[in] parent Parent object.
*/
explicit UrlOpener(QObject *parent = Q_NULLPTR);
UrlOpener(void);
public:
/*!
......
......@@ -35,11 +35,6 @@
#include "ios/src/url_opener.h"
#endif /* Q_OS_IOS */
UrlOpener::UrlOpener(QObject *parent)
: QObject(parent)
{
}
void UrlOpener::openFile(const QString &filePath)
{
#ifndef Q_OS_IOS
......
......@@ -25,6 +25,7 @@
#include <QDesktopServices>
#include <QMimeDatabase>
#include <QMimeType>
#include <QObject>
#include <QUrl>
#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