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

List:       kde-commits
Subject:    Re: kdeutils/kdepasswd/userinfo
From:       Frerich Raabe <frerich.raabe () gmx ! de>
Date:       2003-04-19 0:59:55
[Download RAW message or body]

On Saturday 19 April 2003 02:52, Benjamin Meyer wrote:
> --- kdeutils/kdepasswd/userinfo/userinfo_chface.h  #1.1:1.2
> @@ -24,5 +24,10 @@ public:
>    KUserInfoChFaceDlg(const QString& picsdirs, QWidget *parent=0, const
> char *name=0, bool modal=true);
>
> -  QPixmap getFaceImage() const { return
> *(m_FacesWidget->currentItem()->pixmap()); } +  QPixmap getFaceImage()
> const {
> +    if(m_FacesWidget->currentItem())
> +      return *(m_FacesWidget->currentItem()->pixmap());
> +    else
> +      return NULL;
> +  }

That works? I don't have a CVS checkout here, but don't you mean "return 
QPixmap()" instad of "return NULL"?

- Frerich

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

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