forked from keepassxreboot/keepassxc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Database Settings (keepassxreboot#9485)
Includes following changes: * Encryption Settings now has a similar key with the new database wizard for switching between Advanced and Simple Settings * The extra UI layer DatabaseSettingsDialog.ui has been removed. DatabaseSettingsDialog class now inherits EditWidget instead of DialogyWidget (just like Application Settings). * Extra classes for separate page settings (DatabaseSettingsPageFdoSecrets, DatabaseSettingsPageKeeShare) have been removed. Instead the widgets are used directly in DatabaseSettingsDialog. Same could be done later to Application --------- Co-authored-by: Jonathan White <[email protected]>
- Loading branch information
Showing
36 changed files
with
152 additions
and
391 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (C) 2018 KeePassXC Team <[email protected]> | ||
* Copyright (C) 2023 KeePassXC Team <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -22,8 +22,6 @@ SettingsWidget::SettingsWidget(QWidget* parent) | |
{ | ||
} | ||
|
||
SettingsWidget::~SettingsWidget() = default; | ||
|
||
void SettingsWidget::discard() | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (C) 2018 KeePassXC Team <[email protected]> | ||
* Copyright (C) 2023 KeePassXC Team <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -31,8 +31,7 @@ class SettingsWidget : public QWidget | |
|
||
public: | ||
explicit SettingsWidget(QWidget* parent = nullptr); | ||
Q_DISABLE_COPY(SettingsWidget); | ||
~SettingsWidget() override; | ||
~SettingsWidget() override = default; | ||
|
||
public slots: | ||
/** | ||
|
@@ -50,7 +49,7 @@ public slots: | |
* | ||
* @return true on success, false on failure | ||
*/ | ||
virtual bool save() = 0; | ||
virtual bool saveSettings() = 0; | ||
|
||
/** | ||
* Discard settings. | ||
|
@@ -62,6 +61,8 @@ public slots: | |
|
||
private: | ||
bool m_advancedMode = false; | ||
|
||
Q_DISABLE_COPY(SettingsWidget); | ||
}; | ||
|
||
#endif // KEEPASSXC_SETTINGSWIDGET_H |
Oops, something went wrong.