X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fabout.cpp;h=7a8a210158736c5a5290be3fcf668d969253b107;hb=790c1a6d97f73f7457c7fad7e82fa29e5b6accd5;hp=47bde97eadcc436bc154e0da10ab828442b86294;hpb=4cb2b99e799d81dc8f589c54fb81fe20ef9ec2ad;p=architektonas
diff --git a/src/about.cpp b/src/about.cpp
index 47bde97..7a8a210 100644
--- a/src/about.cpp
+++ b/src/about.cpp
@@ -7,7 +7,7 @@
// JLH = James Hammons
//
// Who When What
-// --- ---------- -------------------------------------------------------------
+// --- ---------- ------------------------------------------------------------
// 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
@@ -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:"
-// "
"
- ""
- "- 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!
"
- "
"
- ));
-#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 Hammons (shamus) | "
@@ -73,6 +44,7 @@ AboutWindow::AboutWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog)
// "Testers: | shamus | "
"Homepage: | http://shamusworld.gotdns.org/architektonas/ | "
" "
+
"
"
"The authors of Architektonas would like to express their heartfelt gratitude to:"
""
@@ -84,7 +56,6 @@ AboutWindow::AboutWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog)
" |
"
"
"
));
-#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();
+}
+