Trouble creating the Supernova Options tab in Configure KStars dialog.
Review Request #102895 - Created Oct. 16, 2011 and submitted
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.
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?