Commit b6e41ea2 authored by Ralf Habacker's avatar Ralf Habacker

Fixed "custom line width is applied but check box selection isn't"

BUG:327051
FIXED-IN:4.11.3
parent a7459afd
......@@ -134,7 +134,8 @@ void SettingsDlg::setupUIPage()
connect(m_UiWidgets.fillColorCB, SIGNAL(toggled(bool)), this, SLOT(slotFillCBChecked(bool)));
connect(m_UiWidgets.gridColorCB, SIGNAL(toggled(bool)), this, SLOT(slotGridCBChecked(bool)));
connect(m_UiWidgets.bgColorCB, SIGNAL(toggled(bool)), this, SLOT(slotBgCBChecked(bool)));
connect(m_UiWidgets.lineWidthCB, SIGNAL(toggled(bool)), this, SLOT(slotLineWidthCBChecked(bool)));
//TODO Once the new scene is complete, so something better, it does not worth it for now
if (m_UiWidgets.textColorB->color() == TEXT_COLOR) {
m_UiWidgets.textColorCB->setChecked(false);
......@@ -159,6 +160,15 @@ void SettingsDlg::setupUIPage()
else {
m_UiWidgets.lineColorCB->setChecked(true);
}
if (m_UiWidgets.lineWidthB->value() == 0) {
m_UiWidgets.lineWidthCB->setChecked(false);
m_UiWidgets.lineWidthB->setDisabled(true);
}
else {
m_UiWidgets.lineWidthCB->setChecked(true);
m_UiWidgets.lineWidthB->setDisabled(false);
}
}
void SettingsDlg::setupGeneralPage()
......@@ -400,6 +410,17 @@ void SettingsDlg::slotBgCBChecked(bool value)
}
}
void SettingsDlg::slotLineWidthCBChecked(bool value)
{
if (value == false) {
m_UiWidgets.lineWidthB->setValue(0);
m_UiWidgets.lineWidthB->setDisabled(true);
}
else {
m_UiWidgets.lineWidthB->setDisabled(false);
}
}
QString SettingsDlg::getCodeGenerationLanguage()
{
return m_pCodeGenPage->getLanguage();
......
......@@ -121,6 +121,7 @@ private slots:
void slotFillCBChecked(bool value);
void slotGridCBChecked(bool value);
void slotBgCBChecked(bool value);
void slotLineWidthCBChecked(bool value);
};
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment