Add unlock dialog on Autotype and show default Autotype sequence (#89)

* Add unlockdialog on autotype. Fix #10
* Show default autotype sequence for existing entries
* NOTE: New entries/groups do not show the default autotype sequence
This commit is contained in:
TheZ3ro 2016-11-11 22:26:07 +01:00 committed by Jonathan White
parent 0657d343bf
commit 6927158daa
13 changed files with 202 additions and 11 deletions

View file

@ -187,6 +187,23 @@ QString Group::defaultAutoTypeSequence() const
return m_data.defaultAutoTypeSequence;
}
QString Group::effectiveAutoTypeSequence() const
{
QString sequence;
const Group* group = this;
do {
if (group->autoTypeEnabled() == Group::Disable) {
return QString();
}
sequence = group->defaultAutoTypeSequence();
group = group->parentGroup();
} while (group && sequence.isEmpty());
return sequence;
}
Group::TriState Group::autoTypeEnabled() const
{
return m_data.autoTypeEnabled;