mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-02-11 10:49:58 +01:00
Delete htmleditor, add ritchEdit
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2095 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -20,7 +20,8 @@
|
||||
#include "qet.h"
|
||||
#include "qetapp.h"
|
||||
|
||||
#include "htmleditor/htmleditor.h"
|
||||
#include "richtext/richtexteditor_p.h"
|
||||
|
||||
/**
|
||||
Constructeur
|
||||
@param parent Le QGraphicsItem parent du champ de texte
|
||||
@@ -313,13 +314,11 @@ void DiagramTextItem::setHtmlText(const QString &txt) {
|
||||
*/
|
||||
void DiagramTextItem::edit() {
|
||||
//Open the HtmlEditor
|
||||
HtmlEditor *editor = new HtmlEditor();
|
||||
qdesigner_internal::RichTextEditorDialog *editor = new qdesigner_internal::RichTextEditorDialog();
|
||||
// connect the in/out
|
||||
connect(editor, SIGNAL(applyEditText(const QString &)), this, SLOT(setHtmlText(const QString &)));
|
||||
// load the Html txt
|
||||
editor->loadHtml( toHtml() );
|
||||
// set the minimum controls
|
||||
editor->setSimpleDisplay(true);
|
||||
editor->setText( toHtml() );
|
||||
// show
|
||||
editor->show();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user