X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Fabout.cpp;h=c00711a7cf5a5b0f991b193377437cfe335bf9ed;hb=7a92a3a54da8634b6765fafd8e5a5724838941b1;hp=5a3c02ce9fd539c817013622be0f8f8cc68fe040;hpb=7de4f207c14185e6fceb8f6b0c63e7ec5bb5d546;p=virtualjaguar diff --git a/src/gui/about.cpp b/src/gui/about.cpp index 5a3c02c..c00711a 100644 --- a/src/gui/about.cpp +++ b/src/gui/about.cpp @@ -11,16 +11,18 @@ // JLH 01/21/2010 Created this file // JLH 01/22/2010 Fleshed out the credits a bit more // JLH 01/22/2010 Fixed centering and decorating of window +// JLH 10/08/2011 Updated credits, added Esc & Return as exit keys // // STILL TO DO: // #include "about.h" +#include "version.h" AboutWindow::AboutWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog) { - setWindowTitle("About Virtual Jaguar..."); + setWindowTitle(tr("About Virtual Jaguar...")); layout = new QVBoxLayout(); layout->setSizeConstraint(QLayout::SetFixedSize); @@ -31,13 +33,15 @@ AboutWindow::AboutWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog) image->setPixmap(QPixmap(":/res/vj_title_small.png")); layout->addWidget(image); -// QString s = QString(tr("(Last full build was on %1 %2)
")).arg(__DATE__).arg(__TIME__); - QString s = QString(tr("SVN %1
")).arg(__DATE__); + QString s; s.append(tr( "" - "" + "" "" - "" + "" + "" "" "
Version: 2.0.0
Version: " + VJ_RELEASE_VERSION " (" VJ_RELEASE_SUBVERSION ")" + "
Coders: James L. Hammons (shamus)
Niels Wagenaar (nwagenaar)
Carwin Jones (Caz)
Adam Green
Testers: Guruma
Testers: Cyrano Jones, LinkoVitch, neo-rg, Robert R,
TheUMan, Dissection, overridex, geormetal
Build Team: ggn (win32)
LinkoVitch, goldenegg (MacOS)
Homepage: http://icculus.org/virtualjaguar/
" "

" @@ -45,7 +49,7 @@ AboutWindow::AboutWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog) "

" "Aaron Giles for the original CoJag sources
" "David Raingeard for the original Virtual Jaguar sources
" - "Karl Stenerud for his Musashi 68K emulator
" + "Bernd Schmidt for his UAE 68K emulator
" "Sam Lantinga for his amazing SDL libraries
" "Ryan C. Gordon for Virtual Jaguar's web presence
" "Curt Vendel for various Jaguar & other goodies (you rock!)
" @@ -57,3 +61,9 @@ AboutWindow::AboutWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog) text = new QLabel(s); layout->addWidget(text); } + +void AboutWindow::keyPressEvent(QKeyEvent * e) +{ + if (e->key() == Qt::Key_Escape || e->key() == Qt::Key_Return) + hide(); +}