CheckBox editor has been fixed ( Qt4 )

This commit is contained in:
Arin Alexander 2016-05-17 22:54:39 +04:00
parent 80f2a135cd
commit fc9e7c792b
2 changed files with 3 additions and 11 deletions

View File

@ -312,14 +312,4 @@ void PreviewReportWindow::on_actionShowMessages_toggled(bool value)
m_previewReportWidget->setErrorsMesagesVisible(value);
}
}// namespace LimeReport
}// namespace LimeReport

View File

@ -57,7 +57,9 @@ void CheckBoxEditor::init()
QVBoxLayout *layout=new QVBoxLayout(this);
layout->addStretch();
layout->addWidget(m_checkBox);
#ifdef HAVE_QT5
m_checkBox->setFocusPolicy(Qt::NoFocus);
#endif
connect(m_checkBox, SIGNAL(stateChanged(int)), this, SLOT(slotStateChanged(int)));
layout->addStretch();
layout->setContentsMargins(2,1,1,1);