User Q_ macros for signals and slots
This commit is contained in:
parent
fae07da91c
commit
6389825172
|
@ -143,7 +143,7 @@ public:
|
||||||
*/
|
*/
|
||||||
Plasma::FrameSvg *frameSvg() const;
|
Plasma::FrameSvg *frameSvg() const;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void imagePathChanged();
|
void imagePathChanged();
|
||||||
void prefixChanged();
|
void prefixChanged();
|
||||||
void enabledBordersChanged();
|
void enabledBordersChanged();
|
||||||
|
|
|
@ -64,7 +64,7 @@ public:
|
||||||
|
|
||||||
void clear();
|
void clear();
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Finds the parent id of the string with id @p searchId.
|
Finds the parent id of the string with id @p searchId.
|
||||||
|
|
|
@ -117,7 +117,7 @@ public:
|
||||||
|
|
||||||
DeclarativeMimeData* mimeData() const;
|
DeclarativeMimeData* mimeData() const;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void dragStarted();
|
void dragStarted();
|
||||||
void delegateChanged();
|
void delegateChanged();
|
||||||
void sourceChanged();
|
void sourceChanged();
|
||||||
|
|
|
@ -91,7 +91,7 @@ public:
|
||||||
void setHtml(const QString &html);
|
void setHtml(const QString &html);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void textChanged(); //FIXME not being used
|
void textChanged(); //FIXME not being used
|
||||||
void htmlChanged(); //FIXME not being used
|
void htmlChanged(); //FIXME not being used
|
||||||
void urlChanged();
|
void urlChanged();
|
||||||
|
|
|
@ -47,7 +47,7 @@ class ColumnProxyModel : public QAbstractListModel
|
||||||
virtual int rowCount(const QModelIndex& parent = QModelIndex()) const;
|
virtual int rowCount(const QModelIndex& parent = QModelIndex()) const;
|
||||||
virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
|
virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void rootIndexChanged();
|
void rootIndexChanged();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -58,7 +58,7 @@ class ColumnProxyModel : public QAbstractListModel
|
||||||
QModelIndex m_index;
|
QModelIndex m_index;
|
||||||
QAbstractItemModel* m_sourceModel;
|
QAbstractItemModel* m_sourceModel;
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void considerRowsAboutToBeInserted(const QModelIndex&,int,int);
|
void considerRowsAboutToBeInserted(const QModelIndex&,int,int);
|
||||||
void considerRowsAboutToBeMoved(const QModelIndex& sourceParent, int rA, int rB, const QModelIndex& destParent, int rD);
|
void considerRowsAboutToBeMoved(const QModelIndex& sourceParent, int rA, int rB, const QModelIndex& destParent, int rD);
|
||||||
void considerRowsAboutToBeRemoved(const QModelIndex&,int,int);
|
void considerRowsAboutToBeRemoved(const QModelIndex&,int,int);
|
||||||
|
|
|
@ -117,7 +117,7 @@ public:
|
||||||
bool m_resetTimer;
|
bool m_resetTimer;
|
||||||
bool m_queued;
|
bool m_queued;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void dataUpdated(const QString &, const Plasma::DataEngine::Data &);
|
void dataUpdated(const QString &, const Plasma::DataEngine::Data &);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
|
@ -55,7 +55,7 @@ public:
|
||||||
ByteArrayPrototype(QObject *parent = 0);
|
ByteArrayPrototype(QObject *parent = 0);
|
||||||
~ByteArrayPrototype();
|
~ByteArrayPrototype();
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
void chop(int n);
|
void chop(int n);
|
||||||
bool equals(const QByteArray &other);
|
bool equals(const QByteArray &other);
|
||||||
QByteArray left(int len) const;
|
QByteArray left(int len) const;
|
||||||
|
|
|
@ -115,7 +115,7 @@ private:
|
||||||
QStringList m_favorites;
|
QStringList m_favorites;
|
||||||
KConfigGroup m_configGroup;
|
KConfigGroup m_configGroup;
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void populateModel(const QStringList &whatChanged = QStringList());
|
void populateModel(const QStringList &whatChanged = QStringList());
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user