forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user