From kde-kimageshop Thu Jan 10 09:19:10 2013 From: Boudewijn Rempt Date: Thu, 10 Jan 2013 09:19:10 +0000 To: kde-kimageshop Subject: Re: kis_custom_image_widget.h - mostly empty derived class Message-Id: X-MARC-Message: https://marc.info/?l=kde-kimageshop&m=135780955903386 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--8323584-2051306418-1357809550=:5163" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323584-2051306418-1357809550=:5163 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8BIT On Thu, 10 Jan 2013, Foss Phreak wrote: > Hi, > In the file kis_custom_image_widget.h I see that the class WdgNewImage is very minimal, and that another > class KisCustomImageWidget is derived from it and does most of the actual work. Can anyone please tell me why > this is so? Is there some benefit or is it just a cleaner/better design? It's a bit roundabout, but basically, WdgNewImage is a wrapper for the code generated by the wdg_new_image.ui file, which is a Qt Designer file. Check http://qt-project.org/doc/qt-4.8/designer-manual.html for more information, especially http://qt-project.org/doc/qt-4.8/designer-using-a-ui-file.html. Boud --8323584-2051306418-1357809550=:5163 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kimageshop mailing list kimageshop@kde.org https://mail.kde.org/mailman/listinfo/kimageshop --8323584-2051306418-1357809550=:5163--