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:
@@ -92,8 +92,23 @@ public:
|
||||
void setMainSplitterSizes(const QList<int>& sizes);
|
||||
QList<int> detailSplitterSizes() const;
|
||||
void setDetailSplitterSizes(const QList<int>& sizes);
|
||||
QList<int> entryHeaderViewSizes() const;
|
||||
void setEntryViewHeaderSizes(const QList<int>& sizes);
|
||||
|
||||
/**
|
||||
* @author Fonic <https://github.com/fonic>
|
||||
* Methods to get/set state of entry view 'Hide Usernames'/'Hide
|
||||
* Passwords' settings
|
||||
*/
|
||||
bool entryViewHideUsernames() const;
|
||||
void setEntryViewHideUsernames(const bool hide);
|
||||
bool entryViewHidePasswords() const;
|
||||
void setEntryViewHidePasswords(const bool hide);
|
||||
/**
|
||||
* @author Fonic <https://github.com/fonic>
|
||||
* Methods to get/set state of entry view view state
|
||||
*/
|
||||
QByteArray entryViewViewState() const;
|
||||
bool setEntryViewViewState(const QByteArray& state) const;
|
||||
|
||||
void clearAllWidgets();
|
||||
bool currentEntryHasTitle();
|
||||
bool currentEntryHasUsername();
|
||||
@@ -127,7 +142,13 @@ signals:
|
||||
void searchModeActivated();
|
||||
void mainSplitterSizesChanged();
|
||||
void detailSplitterSizesChanged();
|
||||
void entryColumnSizesChanged();
|
||||
|
||||
/**
|
||||
* @author Fonic <https://github.com/fonic>
|
||||
* Signal to notify about state changes entry view view
|
||||
*/
|
||||
void entryViewStateChanged();
|
||||
|
||||
void updateSearch(QString text);
|
||||
|
||||
public slots:
|
||||
|
||||
Reference in New Issue
Block a user