[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    Re: =?UTF-8?Q?kis=5Fcustom=5Fimage=5Fwidget=2Eh=20-=20mostly=20em?= =?UTF-8?Q?pty=20derived=20class?
From:       Cyrille Berger <cberger () cberger ! net>
Date:       2013-01-10 14:39:15
Message-ID: a0c8462d645b485140d2bc04a301139c () diwi ! org
[Download RAW message or body]

On 2013-01-10 10:15, Foss Phreak wrote:
> 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 is actually an artefact of the conversion scripts from Qt3 to Qt4. 
Nowdays the better design would be to have:


class KisCustomImageWidget : public QWidget
{
     Q_OBJECT
public:
     KisCustomImageWidget(QWidget *parent, KisDoc2 *doc, qint32 
defWidth, qint32 defHeight, bool clipAvailable, double resolution, const 
QString & defColorModel, const QString & defColorDepth, const QString & 
defColorProfile, const QString & imageName)

{
   m_wdgNewImage.setupUi(this);
}


private:
    Ui::WdgNewImage m_wdgNewImage;
};

-- 
Cyrille Berger Skott
_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic