<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Consolas'; font-size:11pt; font-weight:400; font-style:normal;">On Sunday 13 July 2008, Rafael Fernández López wrote:<br>
> > However I pretty much agree with your idea on making it an enum in<br>
> > general for readability.<br>
><br>
> I think that lots of classes could have some benefit of defining virtual<br>
> hooks... If we take this as a general approach for writing extendable<br>
> classes, it will be trivial to merge them on later big versions of KDE.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>Well the virtual_hook() mechanism is already well-established in kdelibs (which is why it's present in KAbstractFileWidget I'll bet).  I believe it's also discussed on the TechBase binary compatibility page.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>Regards,<br>
 - Michael Pyne</p></body></html>