ShortcutLineEdit.cpp   ShortcutLineEdit.cpp 
skipping to change at line 67 skipping to change at line 67
} }
void ShortcutLineEdit::setContents(QKeySequence ks) void ShortcutLineEdit::setContents(QKeySequence ks)
{ {
// Avoiding infinite loop of same signal-slot emitting/calling // Avoiding infinite loop of same signal-slot emitting/calling
if (ks.toString(QKeySequence::NativeText) == text()) if (ks.toString(QKeySequence::NativeText) == text())
return; return;
// Set the keys from the given key sequence // Set the keys from the given key sequence
clear(); clear();
for (uint i = 0; i < ks.count(); ++i) for (int i = 0; i < ks.count(); ++i)
{ {
keys.append(ks[i]); keys.append(ks[i]);
} }
// Show Ctrl button as Cmd on Mac // Show Ctrl button as Cmd on Mac
setText(ks.toString(QKeySequence::NativeText)); setText(ks.toString(QKeySequence::NativeText));
emit contentsChanged(); emit contentsChanged();
} }
void ShortcutLineEdit::keyPressEvent(QKeyEvent *e) void ShortcutLineEdit::keyPressEvent(QKeyEvent *e)
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/