2 // help.cpp - Help file
5 // (C) 2011 Underground Software
7 // JLH = James L. Hammons <jlhamm@acm.org>
10 // --- ---------- -------------------------------------------------------------
11 // JLH 08/01/2011 Created this file
12 // JLH 10/08/2011 Added Esc & Return as exit keys
21 HelpWindow::HelpWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog)
23 setWindowTitle(tr("Virtual Jaguar Help"));
25 // Need to set the size as well...
28 layout = new QVBoxLayout();
29 // layout->setSizeConstraint(QLayout::SetFixedSize);
32 text = new QTextBrowser;
33 text->setSource(QUrl("qrc:/res/help.html"));
34 layout->addWidget(text);
37 void HelpWindow::keyPressEvent(QKeyEvent * e)
39 if (e->key() == Qt::Key_Escape || e->key() == Qt::Key_Return)