Example #1
0
void PropertiesDock::on_tag_cleared(QString k)
{
    if (!FullSelection.size())
        return;
    Feature* F = FullSelection[0];
    Main->document()->addHistory(new ClearTagCommand(F,k,Main->document()->getDirtyOrOriginLayer(F->layer())));
    Main->invalidateView();
}
Example #2
0
void PropertiesDock::on_tag_changed(QString k, QString v)
{
    if (!FullSelection.size())
        return;
    Feature* F = FullSelection[0];
    if (F->tagValue(k, "__NULL__") != v) {
        Main->document()->addHistory(new SetTagCommand(F,k,v,Main->document()->getDirtyOrOriginLayer(F->layer())));
        Main->invalidateView();
    }
}