DiffEditor: Remove DescriptionEditor helper class.

With value-based ids it's just a normal BaseTextEditor.

Change-Id: Ie9d28a92c48cb222eb9173bd432f08f4fe628bed
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
hjk
2014-02-24 17:29:09 +01:00
parent c17cd92073
commit 27ae878040

View File

@@ -56,17 +56,6 @@ namespace DiffEditor {
namespace Internal {
class DescriptionEditor : public BaseTextEditor
{
Q_OBJECT
public:
DescriptionEditor(BaseTextEditorWidget *editorWidget)
: BaseTextEditor(editorWidget)
{
setId("DescriptionEditor");
}
};
class DescriptionEditorWidget : public BaseTextEditorWidget
{
Q_OBJECT
@@ -78,9 +67,12 @@ public slots:
void setDisplaySettings(const DisplaySettings &ds);
protected:
BaseTextEditor *createEditor() { return new DescriptionEditor(this); }
private:
BaseTextEditor *createEditor()
{
BaseTextEditor *editor = new BaseTextEditor(this);
editor->setId("DescriptionEditor");
return editor;
}
};
DescriptionEditorWidget::DescriptionEditorWidget(QWidget *parent)