X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fabout.cpp;h=f821b21903fabfad166512151799a378a65be140;hb=6ce9d9112c232f02b2be6cbdedbeb89c28bc713a;hp=25cd93eaec454ae9bc2018fd1384b6beab115e40;hpb=d41ddd699001f6bbf6ac621f5c467bd13efb6087;p=architektonas diff --git a/src/about.cpp b/src/about.cpp index 25cd93e..f821b21 100644 --- a/src/about.cpp +++ b/src/about.cpp @@ -1,10 +1,10 @@ // // about.cpp - Credits // -// by James L. Hammons +// by James Hammons // (C) 2011 Underground Software // -// JLH = James L. Hammons +// JLH = James Hammons // // Who When What // --- ---------- ------------------------------------------------------------- @@ -23,68 +23,37 @@ AboutWindow::AboutWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog) setWindowTitle(tr("About Architektonas...")); layout = new QVBoxLayout(); - layout->setSizeConstraint(QLayout::SetFixedSize); +// layout->setSizeConstraint(QLayout::SetFixedSize); setLayout(layout); -// image = new QLabel(); -// image->setAlignment(Qt::AlignRight); -// image->setPixmap(QPixmap(":/res/atns-icon.png")); -// layout->addWidget(image); - -#if 0 -// QString s = QString(tr("(Last full build was on %1 %2)
")).arg(__DATE__).arg(__TIME__); - QString s = QString(tr(""//"//)); -// s.append(tr( -//"This is some random text. I wonder if it will be rendered correctly or not???

" - "" - "
" - "" - "" - "" - "" - "" - "" -// "" - "" - "
Architektonas: Free, Industrial Strength 2D Computer Aided Design
Version: 1.0.0
License: GPL v3 or later
Chief Architect: James L. Hammons (shamus)
Coders: James L. Hammons (shamus)
Testers: shamus
Homepage: http://shamusworld.gotdns.org/architektonas/
" - "
" - "

" - "The authors of Architektonas would like to express their heartfelt gratitude to:" -// "
" - "" - )); -#else QString s = QString(tr( "" "" - "" + "" "" "" "
" +// "" + "" -// "" - "" + "" "" "" - "" - "" + "" + "" // "" "" "
Architektonas: Free, Industrial Strength 2D Computer Aided Design
Architektonas: Free, Industrial Strength 2D Computer Aided Design
Architektonas: Free, Industrial Strength 2D Computer Aided Design
Version: 1.0.0
License: GPL v3 or later
Chief Architect: James L. Hammons (shamus)
Coders: James L. Hammons (shamus)
Chief Architect: James Hammons (shamus)
Coders: James Hammons (shamus)
Testers: shamus
Homepage: http://shamusworld.gotdns.org/architektonas/
" + "

" "The authors of Architektonas would like to express their heartfelt gratitude to:" "
    " "
  • The authors of Inkscape, whose incredible GUI was a huge inspiration for us
  • " "
  • QCad for sucking so bad that we just had to write something better
  • " - "
  • Every other 2D CAD package out there that's mired in a legacy of the bad old days of pencil and paper, and all the attendant horrors that came along with that. We couldn't have done it without you!
  • " + "
  • Every other 2D CAD package out there that's mired in a legacy of the bad old days of pencil and paper, and all the attendant horrors that come along with that. We couldn't have done it without you!
  • " "
" "
" )); -#endif text = new QLabel(s); text->setWordWrap(true); @@ -92,3 +61,11 @@ AboutWindow::AboutWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog) // text->setMaximumWidth(800); layout->addWidget(text); } + + +void AboutWindow::keyPressEvent(QKeyEvent * e) +{ + if (e->key() == Qt::Key_Escape || e->key() == Qt::Key_Return) + hide(); +} +