3 * Copyright 2001 the LyX Team
4 * Read the file COPYING
6 * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
12 #include "QAboutDialog.h"
15 #include <qpushbutton.h>
16 #include "QtLyXView.h"
18 #include "ButtonControllerBase.h"
20 #include "ControlAboutlyx.h"
23 typedef Qt2CB<ControlAboutlyx, Qt2DB<QAboutDialog> > base_class;
25 QAbout::QAbout(ControlAboutlyx & c)
26 : base_class(c, _("About LyX"))
33 dialog_.reset(new QAboutDialog());
34 connect(dialog_.get()->closePB, SIGNAL(clicked()),
35 this, SLOT(slotCancel()));
37 dialog_->copyrightLA->setText(controller().getCopyright().c_str());
38 dialog_->licenseLA->setText(controller().getLicense().c_str());
39 dialog_->disclaimerLA->setText(controller().getDisclaimer().c_str());
41 // Manage the cancel/close button
42 bc().setCancel(dialog_->closePB);