aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/plaintexteditorfactory.h
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/texteditor/plaintexteditorfactory.h
parent8bb87fcda497d09ac3ba39b38b9c229d02022b09 (diff)
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/texteditor/plaintexteditorfactory.h')
-rw-r--r--src/plugins/texteditor/plaintexteditorfactory.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/texteditor/plaintexteditorfactory.h b/src/plugins/texteditor/plaintexteditorfactory.h
index 9f3f8b4b2c6..f9a812bdb5b 100644
--- a/src/plugins/texteditor/plaintexteditorfactory.h
+++ b/src/plugins/texteditor/plaintexteditorfactory.h
@@ -52,14 +52,15 @@ public:
virtual QStringList mimeTypes() const;
//Core::IEditorFactory
- QString kind() const;
+ QString id() const;
+ QString displayName() const;
+
Core::IFile *open(const QString &fileName);
Core::IEditor *createEditor(QWidget *parent);
TextEditor::TextEditorActionHandler *actionHandler() const { return m_actionHandler; }
private:
- const QString m_kind;
QStringList m_mimeTypes;
TextEditor::TextEditorActionHandler *m_actionHandler;
};