Reset & Clear all shortcuts

This closes #1517
This commit is contained in:
marco 2015-09-16 13:26:50 +02:00
parent 8eacd85d68
commit 0ce38ea88e
7 changed files with 95 additions and 3 deletions

View file

@ -71,6 +71,16 @@ void SequenceEdit::restoreDefault()
updateSettings();
}
void SequenceEdit::refreshShortcut()
{
lineEdit->setText(settingsCache->shortcuts().getShortcutString(shorcutName));
}
void SequenceEdit::clear()
{
this->lineEdit->setText("");
}
bool SequenceEdit::eventFilter(QObject *, QEvent * event)
{
if(event->type() == QEvent::KeyPress || event->type() == QEvent::KeyRelease)