forked from qt-creator/qt-creator
Allow the user to set the version number used for the build deb package.
Cherry-picked from 2.0 branch. Task-number: QTCREATORBUG-1670 Reviewed-by: ck
This commit is contained in:
@@ -78,6 +78,12 @@ MaemoPackageCreationWidget::MaemoPackageCreationWidget(MaemoPackageCreationStep
|
||||
m_ui->packageContentsView->resizeColumnsToContents();
|
||||
m_ui->packageContentsView->horizontalHeader()->setStretchLastSection(true);
|
||||
enableOrDisableRemoveButton();
|
||||
|
||||
const QStringList list = m_step->versionString().split(QLatin1Char('.'),
|
||||
QString::SkipEmptyParts);
|
||||
m_ui->major->setValue(list.value(0, QLatin1String("0")).toInt());
|
||||
m_ui->minor->setValue(list.value(1, QLatin1String("0")).toInt());
|
||||
m_ui->patch->setValue(list.value(2, QLatin1String("0")).toInt());
|
||||
}
|
||||
|
||||
void MaemoPackageCreationWidget::init()
|
||||
@@ -149,5 +155,12 @@ void MaemoPackageCreationWidget::handleSkipButtonToggled(bool checked)
|
||||
m_step->setPackagingEnabled(!checked);
|
||||
}
|
||||
|
||||
void MaemoPackageCreationWidget::versionInfoChanged()
|
||||
{
|
||||
m_step->setVersionString(m_ui->major->text() + QLatin1Char('.')
|
||||
+ m_ui->minor->text() + QLatin1Char('.') + m_ui->patch->text());
|
||||
emit updateSummary();
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Qt4ProjectManager
|
||||
|
||||
Reference in New Issue
Block a user