36 lines
605 B
C
36 lines
605 B
C
|
#include <KXmlGuiWindow>
|
||
|
|
||
|
#include "ui_GeneralSettings.h"
|
||
|
|
||
|
class QsciScintilla;
|
||
|
class MainWindow : public KXmlGuiWindow
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
explicit MainWindow(QWidget *parent = nullptr);
|
||
|
~MainWindow();
|
||
|
|
||
|
private:
|
||
|
void setupActions();
|
||
|
void showSettings();
|
||
|
|
||
|
QsciScintilla * m_editor;
|
||
|
};
|
||
|
|
||
|
// plainly for KConfigDialog
|
||
|
// void setupUi(QWidget *GeneralSettings)
|
||
|
template <typename T>
|
||
|
class SettingsPage : public QWidget
|
||
|
{
|
||
|
public:
|
||
|
SettingsPage(QWidget *parent)
|
||
|
: QWidget(parent)
|
||
|
{
|
||
|
ui.setupUi(this);
|
||
|
}
|
||
|
|
||
|
private:
|
||
|
T ui;
|
||
|
};
|