From 93aaca10cd4f9422c1d82a17a4a0ef482e6184db Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Sat, 11 May 2024 10:19:44 +0800 Subject: [PATCH] enhancement: Show full filepath in the tooltip of editor tab. --- NEWS.md | 1 + RedPandaIDE/editor.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/NEWS.md b/NEWS.md index 51c77552..d4753ba4 100644 --- a/NEWS.md +++ b/NEWS.md @@ -167,6 +167,7 @@ Red Panda C++ Version 2.27 - fix: Fail to evaluate expressions if macro can't be expanded. - enhancement: New menu item "Code completion" in "Code" menu. - fix: Can't compile / run assembly files in gcc 13/14 . + - enhancement: Show full filepath in the tooltip of editor tab. Red Panda C++ Version 2.26 - enhancement: Code suggestion for embedded std::vectors. diff --git a/RedPandaIDE/editor.cpp b/RedPandaIDE/editor.cpp index 689a1fbe..99ea2fcc 100644 --- a/RedPandaIDE/editor.cpp +++ b/RedPandaIDE/editor.cpp @@ -5547,4 +5547,5 @@ void Editor::updateCaption(const QString& newCaption) { } caption = caption.replace("&","&&"); mParentPageControl->setTabText(index,caption); + mParentPageControl->setTabToolTip(index, mFilename); }