src/settingseditor/settingseditor.h

Wed, 08 Jun 2022 23:14:55 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Wed, 08 Jun 2022 23:14:55 +0300
changeset 208
930928b760a2
parent 206
654661eab7f3
child 218
63125c36de73
permissions
-rw-r--r--

Add model icons back into the list view

#pragma once
#include <QDialog>
#include "basics.h"
#include "librarieseditor.h"
#include "libraries.h"
#include "uiutilities.h"
#include "configuration.h"

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

mercurial