User Q_ macros for signals and slots

This commit is contained in:
Sebastian Kügler 2013-06-21 02:22:02 +02:00
parent fae07da91c
commit 6389825172
8 changed files with 9 additions and 9 deletions

View File

@ -143,7 +143,7 @@ public:
*/
Plasma::FrameSvg *frameSvg() const;
signals:
Q_SIGNALS:
void imagePathChanged();
void prefixChanged();
void enabledBordersChanged();

View File

@ -64,7 +64,7 @@ public:
void clear();
protected slots:
protected Q_SLOTS:
/**
Finds the parent id of the string with id @p searchId.

View File

@ -117,7 +117,7 @@ public:
DeclarativeMimeData* mimeData() const;
signals:
Q_SIGNALS:
void dragStarted();
void delegateChanged();
void sourceChanged();

View File

@ -91,7 +91,7 @@ public:
void setHtml(const QString &html);
*/
signals:
Q_SIGNALS:
void textChanged(); //FIXME not being used
void htmlChanged(); //FIXME not being used
void urlChanged();

View File

@ -47,7 +47,7 @@ class ColumnProxyModel : public QAbstractListModel
virtual int rowCount(const QModelIndex& parent = QModelIndex()) const;
virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
signals:
Q_SIGNALS:
void rootIndexChanged();
private:
@ -58,7 +58,7 @@ class ColumnProxyModel : public QAbstractListModel
QModelIndex m_index;
QAbstractItemModel* m_sourceModel;
private slots:
private Q_SLOTS:
void considerRowsAboutToBeInserted(const QModelIndex&,int,int);
void considerRowsAboutToBeMoved(const QModelIndex& sourceParent, int rA, int rB, const QModelIndex& destParent, int rD);
void considerRowsAboutToBeRemoved(const QModelIndex&,int,int);

View File

@ -117,7 +117,7 @@ public:
bool m_resetTimer;
bool m_queued;
signals:
Q_SIGNALS:
void dataUpdated(const QString &, const Plasma::DataEngine::Data &);
protected:

View File

@ -55,7 +55,7 @@ public:
ByteArrayPrototype(QObject *parent = 0);
~ByteArrayPrototype();
public slots:
public Q_SLOTS:
void chop(int n);
bool equals(const QByteArray &other);
QByteArray left(int len) const;

View File

@ -115,7 +115,7 @@ private:
QStringList m_favorites;
KConfigGroup m_configGroup;
private slots:
private Q_SLOTS:
void populateModel(const QStringList &whatChanged = QStringList());
};