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.

This commit is contained in:
harry 2023-01-22 10:00:00 -05:00
parent 6d622cc787
commit a4a799feef
1 changed files with 9 additions and 0 deletions

View File

@ -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)