X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Fabout.cpp;h=db688f47f18798e33e434a54b36c7e93c0d6e973;hb=80871c4045dd1aa9b60e03b9cc92e7d2835a2387;hp=d964ed5ece2eb18fce8d34fe0d0c922cbfc8bef9;hpb=34c2f4526d11f2139130c4c94920dd7b1c7a6124;p=virtualjaguar diff --git a/src/gui/about.cpp b/src/gui/about.cpp index d964ed5..db688f4 100644 --- a/src/gui/about.cpp +++ b/src/gui/about.cpp @@ -11,6 +11,7 @@ // 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: @@ -32,7 +33,6 @@ AboutWindow::AboutWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog) image->setPixmap(QPixmap(":/res/vj_title_small.png")); layout->addWidget(image); -// QString s = QString(tr("SVN %1
")).arg(__DATE__); QString s;// = QString(""); s.append(tr( "" @@ -40,7 +40,8 @@ AboutWindow::AboutWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog) 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/
" "

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