src/facebook/facebookphotointerface.cpp
bool FacebookPhotoInterface::untagText(const QString &text)
{
// <<< untagText
    Q_D(FacebookPhotoInterface);
    QVariantMap extraData;
    extraData.insert("tag_text", text);

    // try to find which tag will be removed if it succeeds
    int tempPendingTagToRemoveIndex = -1;
    for (int i = 0; i < d->tags.count(); ++i) {
        QString tagText = d->tags.at(i)->text();
        if (!tagText.isEmpty() && tagText == text) {
            tempPendingTagToRemoveIndex = i;
            break;
        }
    }

    // possible that it's ok to not exist, since we might be out of sync with reality.
    if (tempPendingTagToRemoveIndex == -1)
        qWarning() << Q_FUNC_INFO << "Unknown tag specified for removal";

    bool requestMade = d->request(IdentifiableContentItemInterfacePrivate::Delete,
                                  identifier(), QLatin1String("tags"),
                                  QStringList(), QVariantMap(), extraData);

    if (!requestMade)
        return false;

    d->action = FacebookInterfacePrivate::DeleteTagAction;
    d->pendingTagToRemoveIndex = tempPendingTagToRemoveIndex;
    d->connectFinishedAndErrors();
    return true;
// >>> untagText
}
/*!
    \qmlmethod bool FacebookPhoto::untagText(const QString &text)
    Initiates a "delete tag" operation on the tag specified by
    the given text.
    
    If the network request was started successfully, the function
    will return true and the status of the photo will change to
    \c SocialNetwork::Busy.  Otherwise, the function will return
    false.*/
\qmlmethod bool FacebookPhoto::untagText(const QString &text)
Initiates a "delete tag" operation on the tag specified by
the given text.

If the network request was started successfully, the function
will return true and the status of the photo will change to
\c SocialNetwork::Busy.  Otherwise, the function will return
false.
\ qmlmethod bool FacebookPhoto :: untagText ( const QString &text ) Initiates a " delete tag " operation on the tag specified by the given text . If the network request was started successfully the function will return true and the status of the photo will change to \ c SocialNetwork :: Busy . Otherwise the function will return false .
bool FacebookPhotoInterface::untagText(const QString &text)
{
    Q_D(FacebookPhotoInterface);
    QVariantMap extraData;
    extraData.insert("tag_text", text);
    int tempPendingTagToRemoveIndex = -1;
    for (int i = 0; i < d->tags.count(); ++i) {
        QString tagText = d->tags.at(i)->text();
        if (!tagText.isEmpty() && tagText == text) {
            tempPendingTagToRemoveIndex = i;
            break;
        }
    }
    if (tempPendingTagToRemoveIndex == -1)
        qWarning() << Q_FUNC_INFO << "Unknown tag specified for removal";
    bool requestMade = d->request(IdentifiableContentItemInterfacePrivate::Delete,
                                  identifier(), QLatin1String("tags"),
                                  QStringList(), QVariantMap(), extraData);
    if (!requestMade)
        return false;
    d->action = FacebookInterfacePrivate::DeleteTagAction;
    d->pendingTagToRemoveIndex = tempPendingTagToRemoveIndex;
    d->connectFinishedAndErrors();
    return true;
}
bool FacebookPhotoInterface :: untagText ( const QString & text ) { Q_D ( FacebookPhotoInterface ) ; QVariantMap extraData ; extraData . insert ( " " , text ) ; int tempPendingTagToRemoveIndex = -1 ; for ( int i = 0 ; i < d -> tags . count ( ) ; ++ i ) { QString tagText = d -> tags . at ( i ) -> text ( ) ; if ( ! tagText . isEmpty ( ) && tagText == text ) { tempPendingTagToRemoveIndex = i ; break ; } } if ( tempPendingTagToRemoveIndex == -1 ) qWarning ( ) << Q_FUNC_INFO << " " ; bool requestMade = d -> request ( IdentifiableContentItemInterfacePrivate :: Delete , identifier ( ) , QLatin1String ( " " ) , QStringList ( ) , QVariantMap ( ) , extraData ) ; if ( ! requestMade ) return false ; d -> action = FacebookInterfacePrivate :: DeleteTagAction ; d -> pendingTagToRemoveIndex = tempPendingTagToRemoveIndex ; d -> connectFinishedAndErrors ( ) ; return true ; }
\qmlmethod bool FacebookPhoto::untagText(const QString &text)
Initiates a "delete tag" operation on the tag specified by
the given text.
\ qmlmethod bool FacebookPhoto :: untagText ( const QString &text ) Initiates a " delete tag " operation on the tag specified by the given text .
// <<< untagText // try to find which tag will be removed if it succeeds // possible that it's ok to not exist, since we might be out of sync with reality. // >>> untagText