734 buttonBox->setObjectName(QString::fromUtf8("buttonBox")); |
734 buttonBox->setObjectName(QString::fromUtf8("buttonBox")); |
735 buttonBox->setGeometry(QRect(30, 510, 961, 32)); |
735 buttonBox->setGeometry(QRect(30, 510, 961, 32)); |
736 buttonBox->setOrientation(Qt::Horizontal); |
736 buttonBox->setOrientation(Qt::Horizontal); |
737 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok); |
737 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok); |
738 buttonBox->setCenterButtons(true); |
738 buttonBox->setCenterButtons(true); |
739 //buttonBox->button(QDialogButtonBox::Ok)->setDefault(false); |
|
740 //buttonBox->button(QDialogButtonBox::Cancel)->setDefault(false); |
|
741 QLabel *topLabel = new QLabel(dialog); |
739 QLabel *topLabel = new QLabel(dialog); |
742 topLabel->setObjectName(QString::fromUtf8("topLabel")); |
740 topLabel->setObjectName(QString::fromUtf8("topLabel")); |
743 topLabel->setGeometry(QRect(30, 20, 961, 31)); |
741 topLabel->setGeometry(QRect(30, 20, 961, 31)); |
744 topLabel->setText(tr("Split product")); |
742 topLabel->setText(tr("Split product")); |
745 QFont font; |
743 QFont font; |
928 toforumButton->setText(tr("Export to forum")); |
926 toforumButton->setText(tr("Export to forum")); |
929 QRadioButton *splitButton = new QRadioButton(dialog); |
927 QRadioButton *splitButton = new QRadioButton(dialog); |
930 splitButton->setObjectName(QString::fromUtf8("splitButton")); |
928 splitButton->setObjectName(QString::fromUtf8("splitButton")); |
931 splitButton->setGeometry(QRect(50, 140, 171, 21)); |
929 splitButton->setGeometry(QRect(50, 140, 171, 21)); |
932 splitButton->setText(tr("Split this batch")); |
930 splitButton->setText(tr("Split this batch")); |
|
931 if ((product->divide_type > 0) || (product->stage > PROD_STAGE_TERTIARY)) |
|
932 splitButton->setEnabled(false); // Disable if already splitted or past last possible splitpoint. |
933 |
933 |
934 QObject::connect(buttonBox, SIGNAL(accepted()), dialog, SLOT(accept())); |
934 QObject::connect(buttonBox, SIGNAL(accepted()), dialog, SLOT(accept())); |
935 QObject::connect(buttonBox, SIGNAL(rejected()), dialog, SLOT(reject())); |
935 QObject::connect(buttonBox, SIGNAL(rejected()), dialog, SLOT(reject())); |
936 |
936 |
937 dialog->setModal(true); |
937 dialog->setModal(true); |