Make method naming more consistent.

* Use id() for methods returning a string used to represent
    some type of object.
  * Use displayName() for strings that are meant to be user
    visible.
  * Quieten some warnings while touching the files anyway.
  * Move Factories to their products in the plugins where that
    was not done before.

Reviewed-by: dt
This commit is contained in:
Tobias Hunger
2010-01-07 18:17:24 +01:00
parent 8bb87fcda4
commit a6ad773722
332 changed files with 1666 additions and 1543 deletions

View File

@@ -58,7 +58,8 @@ class ExternalQtEditor : public Core::IExternalEditor
Q_OBJECT
public:
virtual QStringList mimeTypes() const;
virtual QString kind() const;
virtual QString id() const;
virtual QString displayName() const;
protected:
// Method pointer for a QtVersion method return a string (command)
@@ -71,7 +72,8 @@ protected:
QString workingDirectory;
};
explicit ExternalQtEditor(const QString &kind,
explicit ExternalQtEditor(const QString &id,
const QString &displayName,
const QString &mimetype,
QObject *parent = 0);
@@ -91,7 +93,8 @@ protected:
private:
const QStringList m_mimeTypes;
const QString m_kind;
const QString m_id;
const QString m_displayName;
};
// Qt Linguist