Commit 49713d8a authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Enforce Qt-specific keywords

Reviewed by Albert Vaca
parent f9406e8a
......@@ -29,7 +29,7 @@ include(FeatureSummary)
include(KDEConnectMacros.cmake)
add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
add_definitions(-DQT_NO_URL_CAST_FROM_STRING -DQT_NO_KEYWORDS)
include(GenerateExportHeader)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
......
......@@ -42,11 +42,11 @@ public:
uint ensureContact(const QString &identifier);
public slots:
public Q_SLOTS:
bool receiveMessage(const QString &sender, const QString &message);
void setContactList(const QStringList &identifiers);
signals:
Q_SIGNALS:
void messageReceived(const QString &sender, const QString &message);
private:
......
......@@ -31,11 +31,11 @@ public:
QString connectionManagerName() const;
void setConnectionManagerName(const QString &newName);
public slots:
public Q_SLOTS:
bool sendMessage(QString sender, QString message);
void setContactList(QStringList list);
signals:
Q_SIGNALS:
void contactsListChanged(QStringList);
void messageReceived(QString sender, QString message);
......
......@@ -54,7 +54,7 @@ SendSmsDialog::SendSmsDialog(const QString& originalMessage, const QString& phon
void SendSmsDialog::sendButtonClicked()
{
emit sendSms(mPhoneNumber, mTextEdit->toPlainText());
Q_EMIT sendSms(mPhoneNumber, mTextEdit->toPlainText());
close();
}
......
......@@ -48,7 +48,7 @@ class PluginLoadTest : public QObject
void testPlugins() {
Device* d = nullptr;
mDaemon->acquireDiscoveryMode("plugintest");
foreach(Device* id, mDaemon->devicesList()) {
Q_FOREACH(Device* id, mDaemon->devicesList()) {
if (id->isReachable()) {
if (!id->isTrusted())
id->requestPair();
......
......@@ -48,7 +48,7 @@ class TestSendFile : public QObject
void testSend() {
mDaemon->acquireDiscoveryMode("test");
Device* d = nullptr;
foreach(Device* id, mDaemon->devicesList()) {
Q_FOREACH(Device* id, mDaemon->devicesList()) {
if (id->isReachable()) {
if (!id->isTrusted())
id->requestPair();
......
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