never use onFooChanged on signal names

those are autogenerated slot names from fooChanged
This commit is contained in:
Marco Martin 2012-10-03 12:47:43 +02:00
parent 13cba92e54
commit 4540203aa1
2 changed files with 6 additions and 6 deletions

View File

@ -40,7 +40,7 @@ void FallbackComponent::setBasePath(const QString &basePath)
{
if (basePath != m_basePath) {
m_basePath = basePath;
emit onBasePathChanged();
emit basePathChanged();
}
}
@ -52,7 +52,7 @@ QStringList FallbackComponent::candidates() const
void FallbackComponent::setCandidates(const QStringList &candidates)
{
m_candidates = candidates;
emit onCandidatesChanged();
emit candidatesChanged();
}
QString FallbackComponent::filePath(const QString &key)

View File

@ -29,8 +29,8 @@ class FallbackComponent : public QObject
{
Q_OBJECT
Q_PROPERTY(QString basePath READ basePath WRITE setBasePath NOTIFY onBasePathChanged)
Q_PROPERTY(QStringList candidates READ candidates WRITE setCandidates NOTIFY onCandidatesChanged)
Q_PROPERTY(QString basePath READ basePath WRITE setBasePath NOTIFY basePathChanged)
Q_PROPERTY(QStringList candidates READ candidates WRITE setCandidates NOTIFY candidatesChanged)
public:
FallbackComponent(QObject *parent = 0);
@ -46,8 +46,8 @@ public:
Q_SIGNALS:
void onBasePathChanged();
void onCandidatesChanged();
void basePathChanged();
void candidatesChanged();
private:
QCache<QString, QString> m_possiblePaths;