src/settingseditor/settingseditor.h

Sun, 03 Nov 2019 12:56:42 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Sun, 03 Nov 2019 12:56:42 +0200
changeset 9
8b9780700b5e
parent 7
68443f5be176
child 16
aeb5f203b3eb
permissions
-rw-r--r--

added saving of splitter state and recent files

#pragma once
#include <QDialog>
#include "main.h"
#include "librarieseditor.h"
#include "libraries.h"

class SettingsEditor : public QDialog
{
	Q_OBJECT
public:
	SettingsEditor(QSettings* settings, QWidget* parent = nullptr);
	~SettingsEditor();
private slots:
	void handleAccepted();
private:
	class Ui_SettingsEditor& ui;
	QSettings* const settings;
	LibraryManager libraries;
	LibrariesEditor librariesEditor;
	void loadLocales();
	void setDefaults();
	void setCurrentLanguage(const QString& localeCode);
};

mercurial