46 #include "aboutWidget.hh" 52 AboutWidget::AboutWidget(QWidget *parent )
58 icon.addFile(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"window-close.png");
59 actionClose->setIcon(icon);
61 setWindowTitle(tr(
"About %1").arg(
TOSTRING(PRODUCT_NAME)));
62 const int idx = About->indexOf(tab_2);
63 About->setTabText(idx, tr(
TOSTRING(PRODUCT_NAME),
"about box tab title"));
65 if (QFile::exists(
":/branding/license_text.html")) {
66 OpenFlipperLicense->setText(
"");
67 QFile licenseTextFile(
":/branding/license_text.html");
68 licenseTextFile.open(QFile::ReadOnly);
69 QByteArray licenseTextBA = licenseTextFile.readAll();
70 QString licenseText = QString::fromUtf8(licenseTextBA.data(), licenseTextBA.size());
71 OpenFlipperLicense->setHtml(licenseText.arg(
TOSTRING(PRODUCT_NAME)));
73 OpenFlipperLicense->setHtml(OpenFlipperLicense->toHtml().arg(
TOSTRING(PRODUCT_NAME)));
76 connect( actionClose , SIGNAL(triggered() ) ,
this, SLOT(hide()) );
77 connect( closeButton , SIGNAL(clicked() ) ,
this, SLOT(hide()) );
78 closeButton->setFocus();
81 void AboutWidget::keyPressEvent(QKeyEvent * event) {
82 if (event->key() == Qt::Key_Escape ||
event->key() == Qt::Key_Enter ||
event->key() == Qt::Key_Space) {
#define TOSTRING(x)
QSettings object containing all program settings of OpenFlipper.