initial commit

This commit is contained in:
2024-06-22 20:01:42 +08:00
commit a75a4aeee8
10 changed files with 425 additions and 0 deletions

35
mainwindow.h Normal file
View File

@ -0,0 +1,35 @@
#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;
};