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:
parent
6d622cc787
commit
a4a799feef
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue