Пример #1
0
void
MainWindow::checkVersion(Backend *b)
{
    connect(b, SIGNAL(versionChecked(QString, QString)),
            this, SLOT(versionChecked(QString, QString)));
    connect(b, SIGNAL(backendError(QString)),
            this, SLOT(backendError(QString)));
    b->checkVersion();
}
AboutMyProgram::AboutMyProgram(QWidget *xParent) : QDialog(xParent), mUI(new Ui::AboutMyProgram)
{
    mUI->setupUi(this);

    mUI->programName->setText(tr("Имя программы:") + " " + program_name);
    mUI->programVersion->setText(tr("Версия программы:") + " " + program_version);
    mUI->programSite->setText(tr("Сайт программы:")+" <a href='http://hronom.github.com/CodeListingGenerator/'>http://hronom.github.com/CodeListingGenerator</a>");

    mUI->programAuthor->setText(tr("Автор:") + " Hronom");
    mUI->authorEmail->setText("Email: <a href='mailto:[email protected]'>[email protected]</a>");
    mUI->authorBlog->setText("Blog: <a href='http://hronom.blogspot.com/'>http://hronom.blogspot.com</a>");

    mNewVersionChecker = new NewVersionChecker(this);
    connect(mNewVersionChecker, SIGNAL(versionChecked(QString,QString)),this,SLOT(versionChecked(QString,QString)));
    connect(mNewVersionChecker, SIGNAL(versionNotChecked(QString)),this,SLOT(versionNotChecked(QString)));
}