AboutForm::AboutForm() : GenericForm(QPixmap(":/img/settings/general.png")) { bodyUI = new Ui::AboutSettings; bodyUI->setupUi(this); replaceVersions(); if (QString(GIT_VERSION).indexOf(" ") > -1) bodyUI->gitVersion->setOpenExternalLinks(false); Translator::registerHandler(std::bind(&AboutForm::retranslateUi, this), this); }
AboutForm::AboutForm() : GenericForm(QPixmap(":/img/settings/general.png")) { bodyUI = new Ui::AboutSettings; bodyUI->setupUi(this); replaceVersions(); if (QString(GIT_VERSION).indexOf(" ") > -1) bodyUI->gitVersion->setOpenExternalLinks(false); showUpdateProgress(); progressTimer = new QTimer(); progressTimer->setInterval(500); progressTimer->setSingleShot(false); connect(progressTimer, &QTimer::timeout, this, &AboutForm::showUpdateProgress); Translator::registerHandler(std::bind(&AboutForm::retranslateUi, this), this); }
void AboutForm::retranslateUi() { bodyUI->retranslateUi(this); replaceVersions(); showUpdateProgress(); }
void AboutForm::retranslateUi() { bodyUI->retranslateUi(this); replaceVersions(); }