The version number is only used for packaging.

Disable the spinboxes once we disable packaging.

Reviewed-by: ck
This commit is contained in:
kh1
2010-07-08 16:50:06 +02:00
parent 72b78c22de
commit 5265c25b56

View File

@@ -83,7 +83,9 @@ MaemoPackageCreationWidget::MaemoPackageCreationWidget(MaemoPackageCreationStep
m_ui->major->setValue(list.value(0, QLatin1String("0")).toInt()); m_ui->major->setValue(list.value(0, QLatin1String("0")).toInt());
m_ui->minor->setValue(list.value(1, QLatin1String("0")).toInt()); m_ui->minor->setValue(list.value(1, QLatin1String("0")).toInt());
m_ui->patch->setValue(list.value(2, QLatin1String("0")).toInt()); m_ui->patch->setValue(list.value(2, QLatin1String("0")).toInt());
versionInfoChanged(); // workaround for missing minor and patch update notifications
versionInfoChanged();
handleSkipButtonToggled(m_ui->skipCheckBox->isChecked());
} }
void MaemoPackageCreationWidget::init() void MaemoPackageCreationWidget::init()
@@ -145,6 +147,9 @@ void MaemoPackageCreationWidget::enableOrDisableRemoveButton()
void MaemoPackageCreationWidget::handleSkipButtonToggled(bool checked) void MaemoPackageCreationWidget::handleSkipButtonToggled(bool checked)
{ {
m_ui->major->setEnabled(!checked);
m_ui->minor->setEnabled(!checked);
m_ui->patch->setEnabled(!checked);
m_step->setPackagingEnabled(!checked); m_step->setPackagingEnabled(!checked);
} }