Source Code (Use browser search to find items of interest.)
Class Index
kreversi'About (./kdegames/kreversi/about.h:45)
class About : public QDialog {
Q_OBJECT
public:
About(QWidget *parent = 0);
};
kreversi'About::About() (./kdegames/kreversi/about.cpp:53)
About::About(QWidget *parent) : QDialog(parent, "About kreversi", TRUE) {
setCaption(i18n("About kreversi"));
QPixmap pm(PICDATA("logo.xpm"));
QLabel *logo = new QLabel(this);
logo->setPixmap(pm);
logo->setFixedSize(logo->sizeHint());
QLabel *l;
l = new QLabel("kreversi", this);
l->setFont(QFont("Times", 25, QFont::Bold));
l->setFixedSize(l->sizeHint());
QString s;
s = i18n("Version ");
s += KREVERSI_VERSION;
s += i18n("\n(c) 1997 Mario Weilguni <mweilguni@sime.com>\n\n" \
"This program is free software\npublished under the GNU General\n" \
"Public License (take a look\ninto help for details)\n\n" \
"Thanks to:\n" \
"\tMats Luthman for the game engine\n" \
"\t(I've ported it from his JAVA applet)\n\n" \
"\tStephan Kulow\n\tfor comments "\
"and bugfixes\n\n" \
"\tArne Klaassen\n\t "\
"for the raytraced chips");
QLabel *l1 = new QLabel(s, this);
l1->setAlignment(AlignLeft|ExpandTabs);
l1->setFixedSize(l1->sizeHint());
l1->show();
QPushButton *b_ok = new QPushButton(i18n("Close"), this);
b_ok->setDefault(TRUE);
if(style() == MotifStyle)
b_ok->setFixedSize(b_ok->sizeHint().width() + 10, // for
b_ok->sizeHint().height() + 10);
else
b_ok->setFixedSize(b_ok->sizeHint());
connect(b_ok, SIGNAL(clicked()),
this, SLOT(accept()));
b_ok->setFocus();
// create layout
QVBoxLayout *tl = new QVBoxLayout(this, 10);
tl->addWidget(l, 0);
QHBoxLayout *tl1 = new QHBoxLayout(0);
tl->addLayout(tl1);
tl1->addWidget(logo);
tl1->addSpacing(15);
tl1->addWidget(l1);
tl->addSpacing(10);
tl->addWidget(b_ok);
tl->activate();
tl->freeze();
}