mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-08 14:32:39 -04:00
Update state syncer to account for new features
Update state syncer (class DatabaseWidgetStateSync) to account for new features: - properly sync view state when switching tabs - properly read/write view state from/to config Update classes EntryModel and EntryView to consistenly name list/search modes. Before, both classes defined list mode as 'group mode' and search mode as 'entry list mode', which differed from naming in other classes such as DatabaseWidget.
This commit is contained in:
parent
18be1a0254
commit
e3a5a22b84
9 changed files with 408 additions and 111 deletions
|
@ -37,7 +37,12 @@ public slots:
|
|||
private slots:
|
||||
void blockUpdates();
|
||||
void updateSplitterSizes();
|
||||
void updateColumnSizes();
|
||||
|
||||
/**
|
||||
* @author Fonic <https://github.com/fonic>
|
||||
* Slot to update entry view view state
|
||||
*/
|
||||
void updateViewState();
|
||||
|
||||
private:
|
||||
static QList<int> variantToIntList(const QVariant& variant);
|
||||
|
@ -48,8 +53,22 @@ private:
|
|||
bool m_blockUpdates;
|
||||
QList<int> m_mainSplitterSizes;
|
||||
QList<int> m_detailSplitterSizes;
|
||||
QList<int> m_columnSizesList;
|
||||
QList<int> m_columnSizesSearch;
|
||||
|
||||
/**
|
||||
* @author Fonic <https://github.com/fonic>
|
||||
* Properties to store state of entry view 'Hide Usernames'/'Hide
|
||||
* Passwords' settings
|
||||
*/
|
||||
bool m_entryHideUsernames;
|
||||
bool m_entryHidePasswords;
|
||||
|
||||
/**
|
||||
* @author Fonic <https://github.com/fonic>
|
||||
* Properties to store states of entry view list/search view (replaces
|
||||
* m_columnSizesList/m_columnSizesSearch)
|
||||
*/
|
||||
QByteArray m_entryListViewState;
|
||||
QByteArray m_entrySearchViewState;
|
||||
};
|
||||
|
||||
#endif // KEEPASSX_DATABASEWIDGETSTATESYNC_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue