Skip to content

Commit c11de5d

Browse files
committed
Add functions for saving StringsView column state
1 parent 1efada4 commit c11de5d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ui/stringsview.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,14 @@ class BINARYNINJAUIAPI StringsView : public QTableView, public View, public Filt
148148
uint64_t m_selectionBegin, m_selectionEnd;
149149
uint64_t m_currentlySelectedDataAddress;
150150

151+
QPointer<QHeaderView> m_horizontalHeader;
152+
QPointer<QHeaderView> m_verticalHeader;
153+
QTimer m_headerSaveDebounce;
154+
155+
void restoreHeaderState() const;
156+
void saveHeaderState() const;
157+
void scheduleSaveHeaderState();
158+
151159
public:
152160
StringsView(BinaryViewRef data, StringsContainer* container);
153161

@@ -178,6 +186,7 @@ class BINARYNINJAUIAPI StringsView : public QTableView, public View, public Filt
178186
void toggleIncludeOnlyReferenced() const { m_list->toggleIncludeOnlyReferenced(); };
179187
void toggleIncludeOnlyFromCurrentFunction() const { m_list->toggleIncludeOnlyFromCurrentFunction(); };
180188

189+
void resetColumnLayout() const;
181190
void resetFilterOptions();
182191

183192
void copyText();

0 commit comments

Comments
 (0)