Le 6 mars 07 à 17:50, [EMAIL PROTECTED] a écrit :

        std::string contactGroupId = cprofile.getGroupId();
        //DGA
//char * charIdTemp = (char*) groupIdTemp;//Creando el casting de QString a Char *
        QString paVer = (Qstring)contactGroupId;
        if(strcmp(groupIdTemp,paVer))
        {
              //groupIdTemp = contactGroupId.c_str ();
            //strcpy(groupIdTemp, contactGroupId);
            _tree->setItemExpanded(group,true);

The code should better be:

       std::string contactGroupId = cprofile.getGroupId();
        QString paVer = QString::fromStdString(contactGroupId);
        if(paVer == groupIdTemp)
        {
            _tree->setItemExpanded(group,true);

--
Philippe BERNERY <[EMAIL PROTECTED]>
http://dev.openwengo.org


_______________________________________________
Wengophone-devel mailing list
[email protected]
http://dev.openwengo.com/mailman/listinfo/wengophone-devel

Reply via email to