diff options
| author | Josh Ferrell <josh@vector35.com> | 2023-12-27 17:32:50 -0500 |
|---|---|---|
| committer | Josh Ferrell <josh@vector35.com> | 2023-12-27 17:32:50 -0500 |
| commit | 7e566f1a998ad46509815e601e7aa0499a0ced8b (patch) | |
| tree | 7b860fe556aecd3af6815edb00cb7ea68bc8a054 | |
| parent | 3007496dbbc0613373ac1160a1f3d85c88d6fe92 (diff) | |
Add file path tooltips to tabs
| -rw-r--r-- | ui/tabwidget.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/tabwidget.h b/ui/tabwidget.h index ba2b6b54..08ce60ea 100644 --- a/ui/tabwidget.h +++ b/ui/tabwidget.h @@ -167,6 +167,7 @@ class BINARYNINJAUIAPI DockableTabBar : public QAbstractScrollArea QRect m_placeholderRect; QTimer* m_timer; + QTimer* m_hoverTimer; void updateLayout(); @@ -211,6 +212,7 @@ class BINARYNINJAUIAPI DockableTabBar : public QAbstractScrollArea private Q_SLOTS: void underMouseTimerEvent(); + void tabHoverTimerEvent(); protected: virtual QSize sizeHint() const override; @@ -287,6 +289,7 @@ class BINARYNINJAUIAPI DockableTabWidget : public QWidget void setCurrentIndex(int idx); void setTabText(int idx, const QString& title); + void setTabToolTip(int idx, const QString& toolTip); void setTabModifiedIndicator(int idx, bool indicator); void setCanCloseTab(int idx, bool canClose); void setCanCreateNewWindow(bool canCreate); |
