nsbaci 1.0
Loading...
Searching...
No Matches
nsbaci::ui::PreferencesDialog Class Reference

A dialog that allows the user to configure application preferences. More...

#include <preferencesDialog.h>

Inheritance diagram for nsbaci::ui::PreferencesDialog:
Collaboration diagram for nsbaci::ui::PreferencesDialog:

Signals

void preferencesChanged (const nsbaci::ui::Preferences &prefs)
 Emitted when the user accepts the dialog with changed preferences.

Public Member Functions

 PreferencesDialog (const Preferences &current, QWidget *parent=nullptr)
Preferences result () const
 Returns the (possibly modified) preferences after the dialog is accepted.

Static Public Member Functions

static Preferences load ()
 Load preferences from QSettings.
static void save (const Preferences &prefs)
 Save preferences to QSettings.

Detailed Description

A dialog that allows the user to configure application preferences.

Features a side menu for browsing preference categories and a stacked panel on the right that shows the appropriate settings widgets for each category. Changes are persisted to QSettings on accept.

Member Function Documentation

◆ preferencesChanged

void nsbaci::ui::PreferencesDialog::preferencesChanged ( const nsbaci::ui::Preferences & prefs)
signal

Emitted when the user accepts the dialog with changed preferences.

Parameters
prefsThe new preference values.

The documentation for this class was generated from the following files: