mirror of
https://github.com/TASEmulators/fceux.git
synced 2026-10-12 02:09:51 +00:00
Modified Qt GUI recent ROM menu items to show the ROM base name following by a tab space and then the full path. This allows for the ROM file name to be in view in the event that the full path is excessively long.
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
#include <QWindow>
|
||||
#include <QScreen>
|
||||
#include <QHeaderView>
|
||||
#include <QFileInfo>
|
||||
#include <QFileDialog>
|
||||
#include <QMessageBox>
|
||||
#include <QInputDialog>
|
||||
@@ -4779,7 +4780,16 @@ void consoleMenuBar::keyReleaseEvent(QKeyEvent *event)
|
||||
consoleRecentRomAction::consoleRecentRomAction(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 );
|
||||
}
|
||||
//----------------------------------------------------------------------------
|
||||
consoleRecentRomAction::~consoleRecentRomAction(void)
|
||||
|
||||
Reference in New Issue
Block a user