X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fabout.cpp;h=17b4f963c058d37ac203876d369d0d286421d085;hb=ea7712f342020baf61cf33ba98b12140da6aecf7;hp=acf06163b87fe87b6dbdb967e716a4dee63a7a65;hpb=043ecf4d074909ba2f7f53237962f9eaa72f19c2;p=architektonas diff --git a/src/about.cpp b/src/about.cpp index acf0616..17b4f96 100644 --- a/src/about.cpp +++ b/src/about.cpp @@ -17,55 +17,26 @@ // #include "about.h" +//testing... #include "structs.h" + 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( "" "" - "" + "" "" "" "
" +// "" + "" -// "" - "" + "" "" "" "" @@ -73,18 +44,18 @@ AboutWindow::AboutWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog) // "" "" "
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 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 +63,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(); +} +