X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Fabout.cpp;h=db688f47f18798e33e434a54b36c7e93c0d6e973;hb=6fb8c1441184b33847cfe668022aaf31b54a71e0;hp=dc8a93a1d5b28c645c5c4038317ec1d2daad22f6;hpb=0231914da63ed8c44751d7c7ef07f8e311ae0db1;p=virtualjaguar diff --git a/src/gui/about.cpp b/src/gui/about.cpp index dc8a93a..db688f4 100644 --- a/src/gui/about.cpp +++ b/src/gui/about.cpp @@ -11,12 +11,14 @@ // 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) { @@ -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;// = QString(""); 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, Robert R, TheUMan, Dissection,
overridex, geormetal
Build Team: ggn (win32)
goldenegg (MacOS)
Homepage: http://icculus.org/virtualjaguar/
" "

" @@ -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(); +}