diff --git a/core/backends/lan/lanlinkprovider.cpp b/core/backends/lan/lanlinkprovider.cpp index 86730b3a0..82d45a1ba 100644 --- a/core/backends/lan/lanlinkprovider.cpp +++ b/core/backends/lan/lanlinkprovider.cpp @@ -420,7 +420,7 @@ void LanLinkProvider::deviceLinkDestroyed(QObject* destroyedDeviceLink) void LanLinkProvider::configureSslSocket(QSslSocket* socket, const QString& deviceId, bool isDeviceTrusted) { // Setting supported ciphers manually - // Top 3 ciphers are for new Android devices, botton two are for old Android devices + // Top 3 ciphers are for new Android devices, bottom two are for old Android devices // FIXME : These cipher suites should be checked whether they are supported or not on device QList socketCiphers; socketCiphers.append(QSslCipher(QStringLiteral("ECDHE-ECDSA-AES256-GCM-SHA384"))); diff --git a/core/backends/lan/lanlinkprovider.h b/core/backends/lan/lanlinkprovider.h index 3988e3a77..a9bbc947b 100644 --- a/core/backends/lan/lanlinkprovider.h +++ b/core/backends/lan/lanlinkprovider.h @@ -27,7 +27,6 @@ #include #include #include -#include #include "kdeconnectcore_export.h" #include "backends/linkprovider.h" diff --git a/core/daemon.cpp b/core/daemon.cpp index c123e47a5..e52335465 100644 --- a/core/daemon.cpp +++ b/core/daemon.cpp @@ -80,7 +80,7 @@ Daemon::Daemon(QObject* parent, bool testMode) #endif } - //Read remebered paired devices + //Read remembered paired devices const QStringList& list = KdeConnectConfig::instance()->trustedDevices(); for (const QString& id : list) { addDevice(new Device(this, id)); diff --git a/core/kdeconnectconfig.cpp b/core/kdeconnectconfig.cpp index 84f63c4dc..dbd2ce0f3 100644 --- a/core/kdeconnectconfig.cpp +++ b/core/kdeconnectconfig.cpp @@ -33,7 +33,6 @@ #include #include #include -#include #include "core_debug.h" #include "dbushelper.h" @@ -115,7 +114,7 @@ KdeConnectConfig::KdeConnectConfig() qCDebug(KDECONNECT_CORE) << "My id:" << uuid; // FIXME: We only use QCA here to generate the cert and key, would be nice to get rid of it completely. - // The same thing we are doing with QCA could be done invoking openssl (altought it's potentially less portable): + // The same thing we are doing with QCA could be done invoking openssl (although it's potentially less portable): // openssl req -new -x509 -sha256 -newkey rsa:2048 -nodes -keyout privateKey.pem -days 3650 -out certificate.pem -subj "/O=KDE/OU=KDE Connect/CN=_e6e29ad4_2b31_4b6d_8f7a_9872dbaa9095_" QCA::CertificateOptions certificateOptions = QCA::CertificateOptions(); diff --git a/declarativeplugin/kdeconnectdeclarativeplugin.cpp b/declarativeplugin/kdeconnectdeclarativeplugin.cpp index d86c0b117..d42425cff 100644 --- a/declarativeplugin/kdeconnectdeclarativeplugin.cpp +++ b/declarativeplugin/kdeconnectdeclarativeplugin.cpp @@ -97,12 +97,12 @@ void KdeConnectDeclarativePlugin::registerTypes(const char* uri) qmlRegisterType(uri, 1, 0, "RemoteCommandsModel"); qmlRegisterType(uri, 1, 0, "DBusAsyncResponse"); qmlRegisterType(uri, 1, 0, "DevicesSortProxyModel"); - qmlRegisterUncreatableType(uri, 1, 0, "MprisDbusInterface", QStringLiteral("You're not supposed to instantiate interfacess")); - qmlRegisterUncreatableType(uri, 1, 0, "LockDeviceDbusInterface", QStringLiteral("You're not supposed to instantiate interfacess")); - qmlRegisterUncreatableType(uri, 1, 0, "FindMyPhoneDbusInterface", QStringLiteral("You're not supposed to instantiate interfacess")); - qmlRegisterUncreatableType(uri, 1, 0, "RemoteKeyboardDbusInterface", QStringLiteral("You're not supposed to instantiate interfacess")); - qmlRegisterUncreatableType(uri, 1, 0, "DeviceDbusInterface", QStringLiteral("You're not supposed to instantiate interfacess")); - qmlRegisterUncreatableType(uri, 1, 0, "RemoteCommandsDbusInterface", QStringLiteral("You're not supposed to instantiate interfacess")); + qmlRegisterUncreatableType(uri, 1, 0, "MprisDbusInterface", QStringLiteral("You're not supposed to instantiate interfaces")); + qmlRegisterUncreatableType(uri, 1, 0, "LockDeviceDbusInterface", QStringLiteral("You're not supposed to instantiate interfaces")); + qmlRegisterUncreatableType(uri, 1, 0, "FindMyPhoneDbusInterface", QStringLiteral("You're not supposed to instantiate interfaces")); + qmlRegisterUncreatableType(uri, 1, 0, "RemoteKeyboardDbusInterface", QStringLiteral("You're not supposed to instantiate interfaces")); + qmlRegisterUncreatableType(uri, 1, 0, "DeviceDbusInterface", QStringLiteral("You're not supposed to instantiate interfaces")); + qmlRegisterUncreatableType(uri, 1, 0, "RemoteCommandsDbusInterface", QStringLiteral("You're not supposed to instantiate interfaces")); qmlRegisterSingletonType(uri, 1, 0, "DaemonDbusInterface", [](QQmlEngine*, QJSEngine*) -> QObject* { return new DaemonDbusInterface; diff --git a/declarativeplugin/responsewaiter.h b/declarativeplugin/responsewaiter.h index 35c8abc8c..92c9873eb 100644 --- a/declarativeplugin/responsewaiter.h +++ b/declarativeplugin/responsewaiter.h @@ -17,7 +17,7 @@ public: static DBusResponseWaiter* instance(); - ///extract QDbusPendingCall from \p variant and blocks untill completed + ///extract QDbusPendingCall from \p variant and blocks until completed Q_INVOKABLE QVariant waitForReply(QVariant variant) const; const QDBusPendingCall* extractPendingCall(QVariant& variant) const; diff --git a/interfaces/modeltest.cpp b/interfaces/modeltest.cpp index c3c86aeb5..9fb6d998d 100644 --- a/interfaces/modeltest.cpp +++ b/interfaces/modeltest.cpp @@ -23,7 +23,7 @@ #include "modeltest.h" -#include +#include Q_DECLARE_METATYPE(QModelIndex) diff --git a/interfaces/modeltest.h b/interfaces/modeltest.h index befe270e6..30e39b439 100644 --- a/interfaces/modeltest.h +++ b/interfaces/modeltest.h @@ -24,9 +24,9 @@ #ifndef MODELTEST_H #define MODELTEST_H -#include -#include -#include +#include +#include +#include class ModelTest : public QObject { diff --git a/kio/kiokdeconnect.cpp b/kio/kiokdeconnect.cpp index 02243d09a..e0d7973de 100644 --- a/kio/kiokdeconnect.cpp +++ b/kio/kiokdeconnect.cpp @@ -21,7 +21,7 @@ #include "kiokdeconnect.h" -#include +#include #include #include diff --git a/plasmoid/package/contents/ui/RemoteKeyboard.qml b/plasmoid/package/contents/ui/RemoteKeyboard.qml index b82f29f2d..e3a925469 100644 --- a/plasmoid/package/contents/ui/RemoteKeyboard.qml +++ b/plasmoid/package/contents/ui/RemoteKeyboard.qml @@ -46,7 +46,7 @@ QtObject { var transEvent = JSON.parse(JSON.stringify(event)); // transform to anonymous object if (transEvent.modifiers & Qt.ControlModifier) { // special handling for ctrl+c/v/x/a, for which only 'key' gets - // set, but no visbile 'text', which is expected by the remoteKeyboard + // set, but no visible 'text', which is expected by the remoteKeyboard // wire-format: if (transEvent.key === Qt.Key_C) transEvent.text = 'c'; diff --git a/plugins/contacts/CMakeLists.txt b/plugins/contacts/CMakeLists.txt index 9e3bbe479..a94244fc1 100644 --- a/plugins/contacts/CMakeLists.txt +++ b/plugins/contacts/CMakeLists.txt @@ -8,4 +8,4 @@ target_link_libraries(kdeconnect_contacts kdeconnectcore Qt5::DBus KF5::I18n -) \ No newline at end of file +) diff --git a/plugins/notifications/notification.cpp b/plugins/notifications/notification.cpp index 97d1cb894..fcd73cd37 100644 --- a/plugins/notifications/notification.cpp +++ b/plugins/notifications/notification.cpp @@ -162,7 +162,7 @@ void Notification::applyIcon() void Notification::applyNoIcon() { - //HACK The only way to display no icon at all is trying to load a non-existant icon + //HACK The only way to display no icon at all is trying to load a non-existent icon m_notification->setIconName(QStringLiteral("not_a_real_icon")); } diff --git a/plugins/notifications/notificationsdbusinterface.cpp b/plugins/notifications/notificationsdbusinterface.cpp index a8aa7faa6..683043230 100644 --- a/plugins/notifications/notificationsdbusinterface.cpp +++ b/plugins/notifications/notificationsdbusinterface.cpp @@ -160,7 +160,7 @@ void NotificationsDbusInterface::dismissRequested(const QString& internalId) np.set(QStringLiteral("cancel"), internalId); m_plugin->sendPacket(np); - //Workaround: we erase notifications without waiting a repsonse from the + //Workaround: we erase notifications without waiting a response from the //phone because we won't receive a response if we are out of sync and this //notification no longer exists. Ideally, each time we reach the phone //after some time disconnected we should re-sync all the notifications. diff --git a/plugins/sendnotifications/notificationslistener.cpp b/plugins/sendnotifications/notificationslistener.cpp index 235a5d0ac..b87d951ce 100644 --- a/plugins/sendnotifications/notificationslistener.cpp +++ b/plugins/sendnotifications/notificationslistener.cpp @@ -18,9 +18,9 @@ * along with this program. If not, see . */ -#include -#include -#include +#include +#include +#include #include #include #include diff --git a/plugins/sendnotifications/notificationslistener.h b/plugins/sendnotifications/notificationslistener.h index adddfdc0c..48b875a38 100644 --- a/plugins/sendnotifications/notificationslistener.h +++ b/plugins/sendnotifications/notificationslistener.h @@ -18,8 +18,8 @@ * along with this program. If not, see . */ -#include -#include +#include +#include #include #include #include diff --git a/plugins/sftp/sftpplugin.h b/plugins/sftp/sftpplugin.h index 8539e31d9..32ca85be3 100644 --- a/plugins/sftp/sftpplugin.h +++ b/plugins/sftp/sftpplugin.h @@ -53,7 +53,7 @@ public Q_SLOTS: Q_SCRIPTABLE bool startBrowsing(); Q_SCRIPTABLE QString mountPoint(); - Q_SCRIPTABLE QVariantMap getDirectories(); //Actually a QMap, but QDBus preffers this + Q_SCRIPTABLE QVariantMap getDirectories(); //Actually a QMap, but QDBus prefers this private Q_SLOTS: void onMounted(); @@ -70,7 +70,7 @@ private: QScopedPointer d; QString deviceId; //Storing it to avoid accessing device() from the destructor which could cause a crash - QVariantMap remoteDirectories; //Actually a QMap, but QDBus preffers this + QVariantMap remoteDirectories; //Actually a QMap, but QDBus prefers this }; diff --git a/smsapp/conversationlistmodel.cpp b/smsapp/conversationlistmodel.cpp index 1bbbcc548..0f905c763 100644 --- a/smsapp/conversationlistmodel.cpp +++ b/smsapp/conversationlistmodel.cpp @@ -60,7 +60,7 @@ void ConversationListModel::setDeviceId(const QString& deviceId) m_deviceId = deviceId; m_conversationsInterface = new DeviceConversationsDbusInterface(deviceId, this); connect(m_conversationsInterface, SIGNAL(conversationCreated(QString)), this, SLOT(handleCreatedConversation(QString))); - connect(m_conversationsInterface, SIGNAL(conversationMessageReceived(QVariantMap, int)), this, SLOT(createRowFromMessage(QVariantMap, int))); + connect(m_conversationsInterface, SIGNAL(conversationMessageReceived(QVariantMap,int)), this, SLOT(createRowFromMessage(QVariantMap,int))); prepareConversationsList(); m_conversationsInterface->requestAllConversationThreads(); diff --git a/smsapp/conversationmodel.cpp b/smsapp/conversationmodel.cpp index b1a8e2c73..675bf596f 100644 --- a/smsapp/conversationmodel.cpp +++ b/smsapp/conversationmodel.cpp @@ -66,7 +66,7 @@ void ConversationModel::setDeviceId(const QString& deviceId) m_deviceId = deviceId; m_conversationsInterface = new DeviceConversationsDbusInterface(deviceId, this); - connect(m_conversationsInterface, SIGNAL(conversationMessageReceived(QVariantMap, int)), this, SLOT(createRowFromMessage(QVariantMap, int))); + connect(m_conversationsInterface, SIGNAL(conversationMessageReceived(QVariantMap,int)), this, SLOT(createRowFromMessage(QVariantMap,int))); connect(m_conversationsInterface, SIGNAL(conversationUpdated(QVariantMap)), this, SLOT(handleConversationUpdate(QVariantMap))); } diff --git a/tests/lanlinkprovidertest.cpp b/tests/lanlinkprovidertest.cpp index 0bc17d08e..89ae08dd4 100644 --- a/tests/lanlinkprovidertest.cpp +++ b/tests/lanlinkprovidertest.cpp @@ -178,7 +178,7 @@ void LanLinkProviderTest::pairedDeviceUdpPacketReceived() QByteArray receivedPacket = m_reader->readLine(); testIdentityPacket(receivedPacket); - // Received identiy packet from LanLinkProvider now start ssl + // Received identity packet from LanLinkProvider now start ssl QSignalSpy spy3(serverSocket, SIGNAL(encrypted())); QVERIFY(connect(serverSocket, static_cast(&QSslSocket::error), diff --git a/tests/testnotificationlistener.cpp b/tests/testnotificationlistener.cpp index 346432a15..bf781e6a4 100644 --- a/tests/testnotificationlistener.cpp +++ b/tests/testnotificationlistener.cpp @@ -371,7 +371,7 @@ void TestNotificationListener::testNotify() QCOMPARE(++proxiedNotifications, d->getSentPackets()); QVERIFY(d->getLastPacket()->hasPayload()); QCOMPARE(d->getLastPacket()->payloadSize(), fi.size()); - // works also with abolute paths + // works also with absolute paths retId = listener->Notify(appName, replacesId, iconName, summary, body, {}, {{}}, 0); QCOMPARE(retId, replacesId); QCOMPARE(++proxiedNotifications, d->getSentPackets());