forked from qt-creator/qt-creator
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:
@@ -336,9 +336,9 @@ Core::IEditor *VCSBaseSubmitEditor::duplicate(QWidget * /*parent*/)
|
||||
return 0;
|
||||
}
|
||||
|
||||
const char *VCSBaseSubmitEditor::kind() const
|
||||
QString VCSBaseSubmitEditor::id() const
|
||||
{
|
||||
return m_d->m_parameters->kind;
|
||||
return m_d->m_parameters->id;
|
||||
}
|
||||
|
||||
static QToolBar *createToolBar(const QWidget *someWidget, QAction *submitAction, QAction *diffAction)
|
||||
@@ -624,7 +624,7 @@ QStringList VCSBaseSubmitEditor::currentProjectFiles(bool nativeSeparators, QStr
|
||||
if (const ProjectExplorer::Project *currentProject = pe->currentProject()) {
|
||||
QStringList files = currentProject->files(ProjectExplorer::Project::ExcludeGeneratedFiles);
|
||||
if (name)
|
||||
*name = currentProject->name();
|
||||
*name = currentProject->displayName();
|
||||
if (nativeSeparators && !files.empty()) {
|
||||
const QStringList::iterator end = files.end();
|
||||
for (QStringList::iterator it = files.begin(); it != end; ++it)
|
||||
|
||||
Reference in New Issue
Block a user