1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

cleanup inheritance QThread --> QObject and includes

IPC is actually not running in a thread; And if, QThread should not be inherited.
This commit is contained in:
Nils Fenner 2015-10-11 13:49:22 +02:00
parent 42a917fc58
commit 5ddfc2eefe
No known key found for this signature in database
GPG Key ID: 9591A163FF9BE04C
2 changed files with 7 additions and 7 deletions

View File

@ -19,8 +19,9 @@
#include "src/ipc.h"
#include "src/persistence/settings.h"
#include <QDebug>
#include <QCoreApplication>
#include <QDebug>
#include <QThread>
#include <random>
#include <unistd.h>

View File

@ -21,20 +21,19 @@
#ifndef IPC_H
#define IPC_H
#include <ctime>
#include <functional>
#include <QMap>
#include <QObject>
#include <QSharedMemory>
#include <QTimer>
#include <QObject>
#include <QThread>
#include <QVector>
#include <QMap>
#include <functional>
#include <ctime>
using IPCEventHandler = std::function<bool (const QByteArray&)>;
#define IPC_PROTOCOL_VERSION "2"
class IPC : public QThread
class IPC : public QObject
{
Q_OBJECT
IPC();