MCPcopy Create free account
hub / github.com/QNapi/qnapi / frmAbout

Method frmAbout

gui/src/forms/frmabout.cpp:18–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16#include "libqnapi.h"
17
18frmAbout::frmAbout(QWidget* parent, Qt::WindowFlags f) : QDialog(parent, f) {
19 ui.setupUi(this);
20
21 setAttribute(Qt::WA_QuitOnClose, false);
22 ui.lbTitle->setText(QString("QNapi ") + LibQNapi::displayableVersion());
23 ui.lbQtVersion->setText(QString("Qt version: ") + qVersion());
24
25 QRect position = frameGeometry();
26 position.moveCenter(QDesktopWidget().availableGeometry().center());
27 move(position.topLeft());
28
29 ui.lbQNapiIcon->setPixmap(QIcon(":/icon/qnapi.png").pixmap(64));
30 ui.lbNPBanner->setPixmap(QIcon(":/icon/napiprojekt.jpg").pixmap(128, 35));
31 ui.lbOSBanner->setPixmap(QIcon(":/icon/opensubtitles.png").pixmap(150, 51));
32 ui.lbN24Banner->setPixmap(QIcon(":/icon/napisy24.gif").pixmap(130, 34));
33}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected