示例#1
0
void RoaMainWidget::on_qpNext_clicked()
{
    hideContent(currentIndex);
    currentIndex++;
    changeContent(currentIndex);

    // Start installation
    if(currentIndex == 4)
    {
        emit readyToInstall();
    }
}
void UpdateCheckerDialog::transferFinished(const bool success)
{
	if (success)
	{
		readyToInstall();
	}
	else
	{
		m_ui->label->setText(tr("Download failed!"));

		QLabel *informationLabel = new QLabel(tr("Check Error Console for more information."), this);
		informationLabel->setWordWrap(true);

		m_ui->gridLayout->addWidget(informationLabel);
	}

	m_ui->buttonBox->setEnabled(true);
}