Commit 0d112894 authored by Shubham  .'s avatar Shubham .
Browse files

Change the way backend widget is created

parent ed65ab5f
......@@ -6,6 +6,7 @@ set( MaximaBackend_SRCS
maximahighlighter.cpp
maximakeywords.cpp
maximacompletionobject.cpp
maximasettingswidget.cpp
maximasyntaxhelpobject.cpp
maximavariablemodel.cpp
)
......
......@@ -22,10 +22,9 @@
#include "maximabackend.h"
#include "maximaextensions.h"
#include "maximasession.h"
#include "maximasettingswidget.h"
#include "settings.h"
#include "../qthelpconfig.h"
MaximaBackend::MaximaBackend( QObject* parent,const QList<QVariant> args ) : Cantor::Backend( parent,args )
{
//initialize the supported extensions
......@@ -92,14 +91,7 @@ QUrl MaximaBackend::helpUrl() const
QWidget* MaximaBackend::settingsWidget(QWidget* parent) const
{
QWidget* widget = new QWidget(parent);
Ui::MaximaSettingsBase s;
s.setupUi(widget);
QtHelpConfig* docWidget = new QtHelpConfig();
static_cast<QGridLayout*>(widget->layout())->addWidget(docWidget, 6, 0, 1, 3);
return widget;
return new MaximaSettingsWidget(parent);
}
KConfigSkeleton* MaximaBackend::config() const
......
......@@ -7,6 +7,7 @@ set( PythonBackend_SRCS
pythonhighlighter.cpp
pythoncompletionobject.cpp
pythonextensions.cpp
pythonsettingswidget.cpp
)
set(PythonServer_SRCS
......@@ -23,6 +24,7 @@ kconfig_add_kcfg_files(PythonBackend_SRCS settings.kcfgc)
add_backend(pythonbackend ${PythonBackend_SRCS} ${PythonBackend_RSCS})
target_link_libraries(cantor_pythonbackend
cantorlibs
cantor_help
KF5::KIOCore
KF5::ConfigCore
KF5::ConfigGui
......
......@@ -21,6 +21,7 @@
#include "pythonbackend.h"
#include "pythonsession.h"
#include "pythonextensions.h"
#include "pythonsettingswidget.h"
#include "settings.h"
#include "ui_settings.h"
......@@ -40,10 +41,7 @@ PythonBackend::PythonBackend(QObject* parent, const QList<QVariant>& args) : Can
QWidget* PythonBackend::settingsWidget(QWidget* parent) const
{
QWidget* widget=new QWidget(parent);
Ui::PythonSettingsBase s;
s.setupUi(widget);
return widget;
return new PythonSettingsWidget(parent);
}
Cantor::Session* PythonBackend::createSession()
......
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