Abdelrazak Younes wrote:
You might want to change "const XXX" into "XXX const" is you don't want
Lars to shout at you...
i think i did that once with a slot in order to respect qt's convention,
don't know whether that is necessary though...
void BulletsModule::showLevel(int level)
{
if (current_font_>-1)
qobject_cast<QListWidget
*>(bulletpaneSW->widget(current_font_))->setItemSelected(current_item_,
false);
What's that?
you are asking why
1. i need a cast
2. what is qobject_cast
?
well...
1. widget() returns a qwidget and i need qlistwidget
2. http://doc.trolltech.com/4.1/qobject.html#qobject_cast
wrt 2. i never know which cast to use, so guidance is appreciated
(probably should do some reading...)