52 #include "aboutWidget.hh"
56 AboutWidget::AboutWidget(QWidget *parent )
62 icon.addFile(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"window-close.png");
63 actionClose->setIcon(icon);
65 setWindowTitle(tr(
"About %1").arg(
TOSTRING(PRODUCT_NAME)));
66 const int idx = About->indexOf(tab_2);
67 About->setTabText(idx, tr(
TOSTRING(PRODUCT_NAME),
"about box tab title"));
69 if (QFile::exists(
":/branding/license_text.html")) {
70 OpenFlipperLicense->setText(
"");
71 QFile licenseTextFile(
":/branding/license_text.html");
72 licenseTextFile.open(QFile::ReadOnly);
73 QByteArray licenseTextBA = licenseTextFile.readAll();
74 QString licenseText = QString::fromUtf8(licenseTextBA.data(), licenseTextBA.size());
75 OpenFlipperLicense->setHtml(licenseText.arg(
TOSTRING(PRODUCT_NAME)));
77 OpenFlipperLicense->setHtml(OpenFlipperLicense->toHtml().arg(
TOSTRING(PRODUCT_NAME)));
80 connect( actionClose , SIGNAL(triggered() ) ,
this, SLOT(hide()) );
81 connect( closeButton , SIGNAL(clicked() ) ,
this, SLOT(hide()) );
82 closeButton->setFocus();
85 void AboutWidget::keyPressEvent(QKeyEvent * event) {
86 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.