Replace QKeySequence::Cancel (#226)
This commit is contained in:
@@ -125,7 +125,7 @@ QColor ColorPickerWidget::grabPixmapColor(const QPoint &p) {
|
||||
}
|
||||
|
||||
bool ColorPickerWidget::handleKeyPress(QKeyEvent *e) {
|
||||
if (e->matches(QKeySequence::Cancel)) {
|
||||
if (e->key() == Qt::Key_Escape) {
|
||||
releaseColorGrab();
|
||||
updateColor(m_colorBackup);
|
||||
} else if (e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter) {
|
||||
|
||||
Reference in New Issue
Block a user