mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
Ref T163, using settings descriptions
* renamed to getUnsavedSettingsKeys * no private slots in close dialog * use descriptions instead of keys
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#include <QDialog>
|
||||
#include <QScopedPointer>
|
||||
#include <QAbstractButton>
|
||||
#include "blackcore/context/contextapplication.h"
|
||||
|
||||
namespace Ui { class CApplicationCloseDialog; }
|
||||
namespace BlackGui
|
||||
@@ -35,19 +36,19 @@ namespace BlackGui
|
||||
//! Destructor
|
||||
virtual ~CApplicationCloseDialog();
|
||||
|
||||
private slots:
|
||||
//! Accepted
|
||||
void ps_onAccepted();
|
||||
|
||||
//! Rejected
|
||||
void ps_onRejected();
|
||||
|
||||
//! Button pressed
|
||||
void ps_buttonClicked(QAbstractButton *button);
|
||||
|
||||
private:
|
||||
QScopedPointer<Ui::CApplicationCloseDialog> ui;
|
||||
QStringList m_settingskeys;
|
||||
QStringList m_settingsDescriptions; //!< values as displayed
|
||||
BlackCore::Context::CSettingsDictionary m_settingsDictionary; //!< values and descriptions, unsorted
|
||||
|
||||
//! Accepted
|
||||
void onAccepted();
|
||||
|
||||
//! Rejected
|
||||
void onRejected();
|
||||
|
||||
//! Button pressed
|
||||
void buttonClicked(QAbstractButton *button);
|
||||
|
||||
//! Init the settings view
|
||||
void initSettingsView();
|
||||
|
||||
Reference in New Issue
Block a user