Skip to content

Commit

Permalink
Add file path tooltips to tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
negasora committed Dec 27, 2023
1 parent 3007496 commit 7e566f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/tabwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ class BINARYNINJAUIAPI DockableTabBar : public QAbstractScrollArea
QRect m_placeholderRect;

QTimer* m_timer;
QTimer* m_hoverTimer;

void updateLayout();

Expand Down Expand Up @@ -211,6 +212,7 @@ class BINARYNINJAUIAPI DockableTabBar : public QAbstractScrollArea

private Q_SLOTS:
void underMouseTimerEvent();
void tabHoverTimerEvent();

protected:
virtual QSize sizeHint() const override;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 7e566f1

Please sign in to comment.