Drop obsolete QT_VERSION_CHECK ifdefs from code
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
parent
7ca32817f3
commit
6e99c00d76
7 changed files with 1 additions and 36 deletions
|
@ -7,17 +7,12 @@
|
|||
#ifndef LANLINKPROVIDER_H
|
||||
#define LANLINKPROVIDER_H
|
||||
|
||||
#include <QNetworkInformation>
|
||||
#include <QObject>
|
||||
#include <QSslSocket>
|
||||
#include <QTcpServer>
|
||||
#include <QTimer>
|
||||
#include <QUdpSocket>
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||
#include <QNetworkConfigurationManager>
|
||||
#include <QNetworkSession>
|
||||
#else
|
||||
#include <QNetworkInformation>
|
||||
#endif
|
||||
|
||||
#include "backends/linkprovider.h"
|
||||
#include "kdeconnectcore_export.h"
|
||||
|
|
|
@ -26,13 +26,6 @@ public:
|
|||
KdeConnectKcm(QObject *parent, const QVariantList &);
|
||||
~KdeConnectKcm() override;
|
||||
|
||||
#if KCONFIGWIDGETS_VERSION < QT_VERSION_CHECK(5, 105, 0)
|
||||
QWidget *widget()
|
||||
{
|
||||
return this;
|
||||
}
|
||||
#endif
|
||||
|
||||
private:
|
||||
void save() override;
|
||||
|
||||
|
|
|
@ -40,13 +40,6 @@ public:
|
|||
return m_config;
|
||||
}
|
||||
|
||||
#if KCONFIGWIDGETS_VERSION < QT_VERSION_CHECK(5, 105, 0)
|
||||
QWidget *widget()
|
||||
{
|
||||
return this;
|
||||
}
|
||||
#endif
|
||||
|
||||
private:
|
||||
const QString m_deviceId;
|
||||
const QString m_pluginName;
|
||||
|
|
|
@ -9,11 +9,7 @@
|
|||
|
||||
#include <QCursor>
|
||||
#include <QDebug>
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||
#include <QX11Info>
|
||||
#else
|
||||
#include <private/qtx11extras_p.h>
|
||||
#endif
|
||||
|
||||
#include <X11/extensions/XTest.h>
|
||||
#include <X11/keysym.h>
|
||||
|
|
|
@ -13,12 +13,8 @@
|
|||
#include <KPluginFactory>
|
||||
#if !defined(Q_OS_WIN) && !defined(Q_OS_MAC)
|
||||
#include <KStartupInfo>
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||
#include <QX11Info>
|
||||
#else
|
||||
#include <private/qtx11extras_p.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
K_PLUGIN_CLASS_WITH_JSON(NotificationsPlugin, "kdeconnect_notifications.json")
|
||||
|
||||
|
|
|
@ -22,10 +22,6 @@ NotificationsListener::NotificationsListener(KdeConnectPlugin *aPlugin)
|
|||
: QObject(aPlugin)
|
||||
, m_plugin(aPlugin)
|
||||
{
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||
qRegisterMetaTypeStreamOperators<NotifyingApplication>("NotifyingApplication");
|
||||
#endif
|
||||
|
||||
setTranslatedAppName();
|
||||
loadApplications();
|
||||
|
||||
|
|
|
@ -16,10 +16,6 @@ SendNotificationsConfig::SendNotificationsConfig(QObject *parent, const KPluginM
|
|||
: KdeConnectPluginKcm(parent, data, args)
|
||||
, appModel(new NotifyingApplicationModel)
|
||||
{
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||
qRegisterMetaTypeStreamOperators<NotifyingApplication>("NotifyingApplication");
|
||||
#endif
|
||||
|
||||
m_ui.setupUi(widget());
|
||||
m_ui.appList->setIconSize(QSize(32, 32));
|
||||
|
||||
|
|
Loading…
Reference in a new issue