<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
<tr>
<td>
This is an automatically generated e-mail. To reply, visit:
<a href="http://git.reviewboard.kde.org/r/102895/">http://git.reviewboard.kde.org/r/102895/</a>
</td>
</tr>
</table>
<br />
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Hi Samikshan! At first I was like "WTF?!", but now I see where the problem is. Actually, there is no problem - the code does exactly what it should :-)
The problem is that you're setting 'enabled' property which represents whether widget is disabled or enabled (i.e. accepts user input). So when you call setEnabled(false), for the instance of QCheckBox class it won't accept user input anymore.
What you probably wanted to set, is check state of the QCheckBox, accessible through QCheckBox::checkState() and QCheckBox::setCheckState(), which deal with Qt::CheckState enumerations instead of boolean values, to facilitate for tristate checkboxes.
I hope that this solves your problem :-)
Anyway, I guess you'll want to set some options in slots?</pre>
<br />
<p>- Rafal</p>
<br />
<p>On October 16th, 2011, 3:10 p.m., Samikshan Bairagya wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('http://git.reviewboard.kde.org/media/rb/images/review_request_box_top_bg.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
<tr>
<td>
<div>Review request for KStars, Rafal Kulaga and Akarsh Simha.</div>
<div>By Samikshan Bairagya.</div>
<p style="color: grey;"><i>Updated Oct. 16, 2011, 3:10 p.m.</i></p>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
<tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">When the check boxes in Supernova Options tab is clicked twice the check boxes get disabled. I am not being able to figure out where the problem is. I have created three new files opssupernovae.ui, opssupernovae.h and opssupernovae.cpp. I designed the UI file using QtDesigner. </pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>kstars/CMakeLists.txt <span style="color: grey">(6f7ed20)</span></li>
<li>kstars/kstars.kcfg <span style="color: grey">(e8c9bf7)</span></li>
<li>kstars/kstarsactions.cpp <span style="color: grey">(15d2552)</span></li>
<li>kstars/kstarsdcop.cpp <span style="color: grey">(c045e47)</span></li>
<li>kstars/options/opssupernovae.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>kstars/options/opssupernovae.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>kstars/options/opssupernovae.ui <span style="color: grey">(PRE-CREATION)</span></li>
<li>kstars/skycomponents/supernovaecomponent.h <span style="color: grey">(ab824c6)</span></li>
<li>kstars/skycomponents/supernovaecomponent.cpp <span style="color: grey">(5c3c8bb)</span></li>
</ul>
<p><a href="http://git.reviewboard.kde.org/r/102895/diff/" style="margin-left: 3em;">View Diff</a></p>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Screenshots </h1>
<div>
<a href="http://git.reviewboard.kde.org/r/102895/s/310/"><img src="http://git.reviewboard.kde.org/media/uploaded/images/2011/10/16/SupernovaDialog_400x100.png" style="border: 1px black solid;" alt="Screenshot" /></a>
</div>
</td>
</tr>
</table>
</div>
</body>
</html>