Mercurial > hg > forks > UniversalIndentGUI
changeset 193:7d66d89cbcd2
Added the full file path of each recently opened file entry as status tip.
Spell correction.
git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@397 59b1889a-e5ac-428c-b0c7-476e01d41282
author | thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282> |
---|---|
date | Thu, 07 Jun 2007 13:03:44 +0000 |
parents | 0d96ed653504 |
children | e5a931733a98 |
files | src/mainwindow.cpp |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/mainwindow.cpp Thu Jun 07 11:40:09 2007 +0000 +++ b/src/mainwindow.cpp Thu Jun 07 13:03:44 2007 +0000 @@ -1205,7 +1205,7 @@ QString fileExtensions = tr("Shell Script")+" (*."+shellScriptExtension+");;"+tr("All files")+" (*.*)"; //QString openedSourceFileContent = openFileDialog( tr("Choose source code file"), "./", fileExtensions ); - QString fileName = QFileDialog::getSaveFileName( this, tr("Save chell script"), "callIndenter."+shellScriptExtension, fileExtensions); + QString fileName = QFileDialog::getSaveFileName( this, tr("Save shell script"), "callIndenter."+shellScriptExtension, fileExtensions); // Saving has been canceled if the filename is empty if ( fileName.isEmpty() ) { @@ -1265,7 +1265,9 @@ // else if its not already in the menu, add it to the menu. else { if ( i >= recentlyOpenedActionList.size() ) { - recentlyOpenedActionList.append( new QAction(fileInfo.fileName(), menuRecently_Opened_Files) ); + QAction *recentlyOpenedAction = new QAction(fileInfo.fileName(), menuRecently_Opened_Files); + recentlyOpenedAction->setStatusTip(filePath); + recentlyOpenedActionList.append( recentlyOpenedAction ); } i++; }