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

List:       kde-devel
Subject:    Re: Patch for KTeaTime
From:       Jens Herden <jens () kdewebdev ! org>
Date:       2007-08-27 8:57:49
Message-ID: 200708271057.54188.jens () kdewebdev ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


> +int TeaListModel::rowCount(const QModelIndex &parent) const
> +{
> +    Q_UNUSED(parent);
> +    return m_tealist.size();
> +}
>
> Hmm, this is actually wrong. The correct code is:
> if(parent.isValid())
>    return 0;
> else
>    return m_tealist.size();
>
> (Pretty clear, right?)

Not for me :-(
This code returns something if the index is _not_ valid? Is this the=20
intention?

Jens

[Attachment #5 (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


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

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