Fixed wrong compatibility with Qt 5.0.
--HG-- branch : develop
This commit is contained in:
parent
7950735833
commit
73bcc89107
|
@ -251,7 +251,11 @@ void DialogDetail::AddUpdate()
|
||||||
MaterialCutPlacement mcp;
|
MaterialCutPlacement mcp;
|
||||||
QStringList qslUserMaterials = qApp->Settings()->GetUserDefinedMaterials();
|
QStringList qslUserMaterials = qApp->Settings()->GetUserDefinedMaterials();
|
||||||
|
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK(5, 2, 0)
|
||||||
|
int i = ui.comboBoxMaterial->itemData(ui.comboBoxMaterial->currentIndex()).toInt();
|
||||||
|
#else
|
||||||
int i = ui.comboBoxMaterial->currentData().toInt();
|
int i = ui.comboBoxMaterial->currentData().toInt();
|
||||||
|
#endif
|
||||||
QString qsMat = ui.comboBoxMaterial->currentText();
|
QString qsMat = ui.comboBoxMaterial->currentText();
|
||||||
if (i < m_qslMaterials.count() && qsMat == m_qslMaterials[i])
|
if (i < m_qslMaterials.count() && qsMat == m_qslMaterials[i])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user