forked from qt-creator/qt-creator
Designer: Remove some redirections.
Instead of keeping a separate plain text editor and document, the FormWindowEditor and FormWindowFile are directly derived from PlainTextEditor and BaseTextDocument respectively. Change-Id: I4319904dea769ec31900061bc7c3a3c5c22e0e8a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
#ifndef FORMWINDOWFILE_H
|
||||
#define FORMWINDOWFILE_H
|
||||
|
||||
#include <coreplugin/textdocument.h>
|
||||
#include <texteditor/basetextdocument.h>
|
||||
|
||||
#include <QPointer>
|
||||
|
||||
@@ -42,12 +42,13 @@ QT_END_NAMESPACE
|
||||
namespace Designer {
|
||||
namespace Internal {
|
||||
|
||||
class FormWindowFile : public Core::TextDocument
|
||||
class FormWindowFile : public TextEditor::BaseTextDocument
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit FormWindowFile(QDesignerFormWindowInterface *form, QObject *parent = 0);
|
||||
~FormWindowFile() { }
|
||||
|
||||
// IDocument
|
||||
virtual bool save(QString *errorString, const QString &fileName, bool autoSave);
|
||||
@@ -68,8 +69,7 @@ public:
|
||||
|
||||
signals:
|
||||
// Internal
|
||||
void reload(QString *errorString, const QString &);
|
||||
void setDisplayName(const QString &);
|
||||
void reloadRequested(QString *errorString, const QString &);
|
||||
|
||||
public slots:
|
||||
void setFilePath(const QString &);
|
||||
|
||||
Reference in New Issue
Block a user