Commit d1bd29e6 authored by Laurent Montel's avatar Laurent Montel 😁

Read test app

parent 487e2181
set(composerhtmlSources
main.cpp
composerhtmleditor.cpp
)
main.cpp
composerhtmleditor.cpp
)
add_executable(composerhtmleditor ${composerhtmlSources} )
target_link_libraries(composerhtmleditor KF5::ComposerEditorWebEngine KF5::XmlGui KF5::I18n)
target_link_libraries(composerhtmleditor KF5::ComposerEditorWebEngine
KF5::XmlGui
KF5::I18n
Qt5::WebEngine
Qt5::WebEngineWidgets
)
install(TARGETS composerhtmleditor ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
install(FILES
composerhtmleditorui.rc
DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/composerhtmleditor)
composerhtmleditorui.rc
DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/composerhtmleditor)
......@@ -32,22 +32,17 @@ ComposerHtmlEditor::ComposerHtmlEditor()
{
QSplitter *w = new QSplitter;
#if 0
editor = new ComposerEditorNG::ComposerEditor(this);
ComposerEditorNG::DomTreeWidget *domWidget = new ComposerEditorNG::DomTreeWidget(editor->view(), this);
w->addWidget(domWidget);
w->addWidget(editor);
mEditor = new ComposerEditorWebEngine::ComposerWebEngine(this);
w->addWidget(mEditor);
setCentralWidget(w);
mEditor->createAllActions();
mEditor->addCreatedActionsToActionCollection(actionCollection());
//QList<ComposerEditorNG::ComposerView::ComposerViewAction> lst;
//lst << ComposerEditorNG::ComposerView::Bold;
//mEditor->createToolBar(lst);
editor->createAllActions();
editor->addCreatedActionsToActionCollection(actionCollection());
QList<ComposerEditorNG::ComposerView::ComposerViewAction> lst;
lst << ComposerEditorNG::ComposerView::Bold;
editor->createToolBar(lst);
setupActions();
setupGUI();
#endif
}
ComposerHtmlEditor::~ComposerHtmlEditor()
......
......@@ -22,7 +22,7 @@
#define COMPOSERHTMLEDITOR_H
#include <kxmlguiwindow.h>
//#include "composereditor-ng/composereditor.h"
#include "composerwebengine.h"
class ComposerHtmlEditor : public KXmlGuiWindow
{
......@@ -34,7 +34,7 @@ public:
private:
void setupActions();
//ComposerEditorNG::ComposerEditor *editor;
ComposerEditorWebEngine::ComposerWebEngine *mEditor;
};
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment