VCS/git: Make blame go to current editor line

using queued slot/variant cookie magic in command
This commit is contained in:
Friedemann Kleint
2009-10-01 17:50:24 +02:00
parent 01877b2c86
commit 9d4aafebac
6 changed files with 44 additions and 9 deletions

View File

@@ -184,5 +184,14 @@ void GitEditor::setPlainTextDataFiltered(const QByteArray &a)
}
}
void GitEditor::commandFinishedGotoLine(bool ok, const QVariant &v)
{
if (ok && v.type() == QVariant::Int) {
const int line = v.toInt();
if (line >= 0)
gotoLine(line);
}
}
} // namespace Internal
} // namespace Git