summaryrefslogtreecommitdiff
path: root/src/plugins/coreplugin/editmode.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@nokia.com>2010-01-07 18:17:24 +0100
committerTobias Hunger <tobias.hunger@nokia.com>2010-01-07 18:17:24 +0100
commita6ad773722a758df46813afd7af42625a0f3e276 (patch)
tree8a74e3bb0fe819603e3ce5ed867116e75acc8d64 /src/plugins/coreplugin/editmode.cpp
parent8bb87fcda497d09ac3ba39b38b9c229d02022b09 (diff)
downloadqt-creator-a6ad773722a758df46813afd7af42625a0f3e276.tar.gz
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
Diffstat (limited to 'src/plugins/coreplugin/editmode.cpp')
-rw-r--r--src/plugins/coreplugin/editmode.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/coreplugin/editmode.cpp b/src/plugins/coreplugin/editmode.cpp
index 8a6fef9569..6ff8aa8099 100644
--- a/src/plugins/coreplugin/editmode.cpp
+++ b/src/plugins/coreplugin/editmode.cpp
@@ -90,7 +90,7 @@ EditMode::~EditMode()
delete m_splitter;
}
-QString EditMode::name() const
+QString EditMode::displayName() const
{
return tr("Edit");
}
@@ -110,9 +110,9 @@ QWidget* EditMode::widget()
return m_splitter;
}
-const char* EditMode::uniqueModeName() const
+QString EditMode::id() const
{
- return Constants::MODE_EDIT;
+ return QLatin1String(Constants::MODE_EDIT);
}
QList<int> EditMode::context() const