Commit 4a640796 authored by Shubham  .'s avatar Shubham .
Browse files

Remove extra fucntion

parent 4d62fc55
......@@ -40,23 +40,6 @@
#include <QUrl>
DocumentationPanelWidget::DocumentationPanelWidget(Cantor::Session* session, QWidget* parent) :QWidget(parent), m_engine(nullptr), m_path(QString())
{
addWidgets();
setSession(session);
}
void DocumentationPanelWidget::setSession(Cantor::Session* session)
{
m_session=session;
/*if(session)
{
m_model=session->variableDataModel();
if(m_table)
m_table->setModel(m_model);
}*/
}
void DocumentationPanelWidget::addWidgets()
{
//QPointer<QSplitter> m_splitter;
m_engine = new QHelpEngine(QLatin1String("documentation/maxima/maxima_help_collection.qhc"), this);
......@@ -77,7 +60,7 @@ void DocumentationPanelWidget::addWidgets()
m_tabWidget->addTab(m_engine->contentWidget(), i18n("Contents"));
QPointer<QTextBrowser> m_textBrowser = new QTextBrowser(this);
QPointer<QTextBrowser> m_textBrowser = new QTextBrowser(parentWidget());
m_textBrowser->setSource(QUrl(QLatin1String("qthelp://org.kde.cantor/doc/maxima.html#SEC_Top")), QTextDocument::HtmlResource);
connect(m_engine->contentWidget(), SIGNAL(linkActivated(QUrl)), m_textBrowser, SLOT(setSource(QUrl)));
......@@ -88,6 +71,19 @@ void DocumentationPanelWidget::addWidgets()
layout->addWidget(m_textBrowser, 2);
// Connect to various signals and slots
setSession(session);
}
void DocumentationPanelWidget::setSession(Cantor::Session* session)
{
m_session=session;
/*if(session)
{
m_model=session->variableDataModel();
if(m_table)
m_table->setModel(m_model);
}*/
}
void DocumentationPanelWidget::loadDocumentation()
......
......@@ -38,7 +38,6 @@ class DocumentationPanelWidget : public QWidget
~DocumentationPanelWidget() override = default;
void setSession(Cantor::Session* session);
void addWidgets();
/** @return icon of the current backend **/
QIcon icon() const;
......
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