diff options
| author | Rusty Wagner <rusty.wagner@gmail.com> | 2025-08-06 16:41:26 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty.wagner@gmail.com> | 2025-08-29 15:42:09 -0400 |
| commit | 5c4abf48ab4b77555a79777bc37d52c842ee149a (patch) | |
| tree | a9daf8875c7ed70b55bc730de5a63621801a8019 /ui/sidebarwidget.h | |
| parent | 2303f75b080f6dd0c9a5c669a71f64ce830f5650 (diff) | |
Add a Pinned Cross References tab to hold pinned references
Diffstat (limited to 'ui/sidebarwidget.h')
| -rw-r--r-- | ui/sidebarwidget.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/sidebarwidget.h b/ui/sidebarwidget.h index 2ec0bb57..9567d344 100644 --- a/ui/sidebarwidget.h +++ b/ui/sidebarwidget.h @@ -53,6 +53,7 @@ public: SidebarWidget(const QString& title); ~SidebarWidget(); const QString& title() const { return m_title; } + void setTitle(const QString& title) { m_title = title; } void enableRefreshTimer(int interval); void setRefreshQuiesce(bool enable); @@ -103,6 +104,7 @@ public: ~SidebarWidgetAndHeader() override; SidebarWidget* widget() const { return m_widget; } + SidebarWidgetType* type() const { return m_type; } QWidget* header() const; void addWidget(SidebarWidget* widget, bool canClose = false); @@ -110,6 +112,7 @@ public: SidebarWidget* widgetWithTitle(const QString& title) const; bool hasWidgetWithTitle(const QString& title) const; bool activateWidgetWithTitle(const QString& title); + bool activateWidget(SidebarWidget* widget); bool hasContent() const; void updateTheme(); @@ -284,6 +287,8 @@ public: return nullptr; } + virtual bool deactivateOnLastTabClose() const { return false; } + void updateTheme(); }; |
