never use onFooChanged on signal names
those are autogenerated slot names from fooChanged
This commit is contained in:
parent
13cba92e54
commit
4540203aa1
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user