Commit 26f05746 authored by Shubham  .'s avatar Shubham .
Browse files

Add trial code

parent be749b7b
......@@ -18,14 +18,39 @@
Copyright (C) 2020 Shubham <aryan100jangid@gmail.com>
*/
#include <QTreeWidgetItem>
#include "maximasettingswidget.h"
#include "../qthelpconfig.h"
#include <KConfigGroup>
#include <KSharedConfig>
MaximaSettingsWidget::MaximaSettingsWidget(QWidget *parent) : QWidget(parent)
{
setupUi(this);
// Add QtHelp widget
QtHelpConfig* docWidget = new QtHelpConfig();
/*QtHelpConfig**/ docWidget = new QtHelpConfig();
static_cast<QGridLayout*>(this->layout())->addWidget(docWidget, 6, 0, 1, 3);
}
MaximaSettingsWidget::~MaximaSettingsWidget()
{
/*KConfigGroup group = KSharedConfig::openConfig()->group(QLatin1String("Settings_Documentation"));
QString name;
QString path;
for (int i = 0; i < docWidget->qchTable->topLevelItemCount(); i++)
{
const QTreeWidgetItem* item = docWidget->qchTable->topLevelItem(i);
name = item->text(0);
path = item->text(1);
}
group.writeEntry(QLatin1String("Name"), name);
group.writeEntry(QLatin1String("Path"), path);*/
}
......@@ -21,6 +21,7 @@
#ifndef _MAXIMASETTINGSWIDGET_H
#define _MAXIMASETTINGSWIDGET_H
#include "../qthelpconfig.h"
#include "ui_settings.h"
class MaximaSettingsWidget : public QWidget, public Ui::MaximaSettingsBase
......@@ -29,6 +30,10 @@ class MaximaSettingsWidget : public QWidget, public Ui::MaximaSettingsBase
public:
explicit MaximaSettingsWidget(QWidget *parent = nullptr);
~MaximaSettingsWidget();
private:
QtHelpConfig* docWidget;
};
#endif /* _MAXIMASETTINGSWIDGET_H */
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