From fc9e7c792b7ca2a93062fe355fd2999d2bc7742b Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Tue, 17 May 2016 22:54:39 +0400 Subject: [PATCH] CheckBox editor has been fixed ( Qt4 ) --- limereport/lrpreviewreportwindow.cpp | 12 +----------- .../objectinspector/editors/lrcheckboxeditor.cpp | 2 ++ 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/limereport/lrpreviewreportwindow.cpp b/limereport/lrpreviewreportwindow.cpp index 7ca7f7c..441b77a 100644 --- a/limereport/lrpreviewreportwindow.cpp +++ b/limereport/lrpreviewreportwindow.cpp @@ -312,14 +312,4 @@ void PreviewReportWindow::on_actionShowMessages_toggled(bool value) m_previewReportWidget->setErrorsMesagesVisible(value); } -}// namespace LimeReport - - - - - - - - - - +}// namespace LimeReport \ No newline at end of file diff --git a/limereport/objectinspector/editors/lrcheckboxeditor.cpp b/limereport/objectinspector/editors/lrcheckboxeditor.cpp index ec61301..1247ceb 100644 --- a/limereport/objectinspector/editors/lrcheckboxeditor.cpp +++ b/limereport/objectinspector/editors/lrcheckboxeditor.cpp @@ -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);