mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-10-15 06:51:04 -04:00
Introduce synchronize merge method
* Create history-based merging that keeps older data in history instead of discarding or deleting it * Extract merge logic into the Merger class * Allows special merge behavior * Improve handling of deletion and changes on groups * Enable basic change tracking while merging * Prevent unintended timestamp changes while merging * Handle differences in timestamp precision * Introduce comparison operators to allow for more sophisticated comparisons (ignore special properties, ...) * Introduce Clock class to handle datetime across the app Merge Strategies: * Default (use inherited/fallback method) * Duplicate (duplicate conflicting nodes, apply all deletions) * KeepLocal (use local values, but apply all deletions) * KeepRemote (use remote values, but apply all deletions) * KeepNewer (merge history only) * Synchronize (merge history, newest value stays on top, apply all deletions)
This commit is contained in:
parent
b40e5686dc
commit
c1e9f45df9
43 changed files with 2777 additions and 585 deletions
|
@ -60,11 +60,12 @@ private:
|
|||
Group::TriState triStateFromIndex(int index);
|
||||
|
||||
const QScopedPointer<Ui::EditGroupWidgetMain> m_mainUi;
|
||||
QWidget* const m_editGroupWidgetMain;
|
||||
EditWidgetIcons* const m_editGroupWidgetIcons;
|
||||
EditWidgetProperties* const m_editWidgetProperties;
|
||||
Group* m_group;
|
||||
Database* m_database;
|
||||
QPointer<QWidget> m_editGroupWidgetMain;
|
||||
QPointer<EditWidgetIcons> m_editGroupWidgetIcons;
|
||||
QPointer<EditWidgetProperties> m_editWidgetProperties;
|
||||
|
||||
QPointer<Group> m_group;
|
||||
QPointer<Database> m_database;
|
||||
|
||||
Q_DISABLE_COPY(EditGroupWidget)
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue