Enforce Qt-specific keywords

Reviewed by Albert Vaca
This commit is contained in:
Aleix Pol 2016-06-21 20:19:14 +02:00
parent f9406e8afc
commit 49713d8aca
6 changed files with 8 additions and 8 deletions

View file

@ -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})

View file

@ -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:

View file

@ -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);

View file

@ -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();
}

View file

@ -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();

View file

@ -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();