From a4a799feefffbbb637fcb8dc3808c5fe0a5c7223 Mon Sep 17 00:00:00 2001 From: harry Date: Sun, 22 Jan 2023 10:00:00 -0500 Subject: [PATCH] Changed Qt GUI TAS editor recent menu to show file name separated by some space and then full path to file. This is so that the file name can still be read when the full path is ridiculusly long. --- src/drivers/Qt/TasEditor/TasEditorWindow.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/drivers/Qt/TasEditor/TasEditorWindow.cpp b/src/drivers/Qt/TasEditor/TasEditorWindow.cpp index 3d919a92..6005bf0a 100644 --- a/src/drivers/Qt/TasEditor/TasEditorWindow.cpp +++ b/src/drivers/Qt/TasEditor/TasEditorWindow.cpp @@ -7305,7 +7305,16 @@ void TasFindNoteWindow::findNextClicked(void) TasRecentProjectAction::TasRecentProjectAction(QString desc, QWidget *parent) : QAction( desc, parent ) { + QString txt; + QFileInfo fi(desc); + path = desc.toStdString(); + + txt = fi.fileName(); + txt += QString("\t"); + txt += desc; + + setText( txt ); } //---------------------------------------------------------------------------- TasRecentProjectAction::~TasRecentProjectAction(void)